Re: [go-nuts] Looking for a SQLite statement parser

2024-11-25 Thread Julian Peterson
Hi, For lexer/parser generation, I've used antlr with some success. https://www.antlr.org/ The go code generation is a little rough atm, but not a show stopper. Also, they have grammars for many languages, so they might be useful even on their own: https://github.com/antlr/grammars-v4 (sqlite is

Re: [go-nuts] Looking for a SQLite statement parser

2024-11-25 Thread 'Jacob Shandling' via golang-nuts
*> parse the SQLite command, create an AST* Hello Mr. O'Toole, This is precisely the task I am looking to carry out, followed by walking the AST. Did you ever end up finding a good Go parser for SQLite, or building one yourself? I see your rqlite/sql

Re: [go-nuts] reset sync.OnceValue

2024-11-25 Thread burak serdar
You can switch an active configuration using atomic.Value, after initializing it with a Once. If your config is not initialized, atomic.Value will not block others. On Mon, Nov 25, 2024 at 1:05 AM 'Hartmut Wieselburger' via golang-nuts wrote: > > Ok, thanks, once means once. So https://pkg.go.dev

Re: [go-nuts] reset sync.OnceValue

2024-11-25 Thread 'Hartmut Wieselburger' via golang-nuts
Ok, thanks, once means once. So https://pkg.go.dev/sync/atomic#Value seems to be a better fit, do you agree? burak serdar schrieb am Freitag, 22. November 2024 um 16:10:00 UTC+1: > On Fri, Nov 22, 2024 at 1:53 AM 'Hartmut Wieselburger' via golang-nuts > wrote: > > > > var configOnce sync.Once >