On Wednesday, March 8, 2017 at 9:40:05 PM UTC+1, Ian Lance Taylor wrote:
>
> On Wed, Mar 8, 2017 at 11:34 AM, Basile Starynkevitch 
> <bas...@starynkevitch.net <javascript:>> wrote: 
> > 
> > On Wednesday, March 8, 2017 at 8:24:26 PM UTC+1, Ian Lance Taylor wrote: 
> >> 
> >> On Wed, Mar 8, 2017 at 7:54 AM, Basile Starynkevitch 
> >> <bas...@starynkevitch.net> wrote: 
> >> I don't have any particular recommendations but I believe that 
> >> github.com/mattn/go-sqlite3 works correctly with cgo.  I know that 
> >> because I sent in patches myself 
> >> 
> >> (
> https://github.com/mattn/go-sqlite3/commit/b76c61051faaf0baf3215e6f811003d98639b702,
>  
>
> >> 
> >> 
> https://github.com/mattn/go-sqlite3/commit/8c66b9cf5ed003dff18db01a55cbd45d35a0990f).
>  
>
> >> 
> > 
> > Thanks Ian. And what about sqlite3_config with SQLITE_CONFIG_LOG ? How 
> do I 
> > call that from Go code? I really want the sqlite log (error) message to 
> > appear somewhere 
> > (just C stderr could be enough). 
>
> I'm sorry, I have no idea.  I've never actually used go-sqlite except 
> to run the tests.  Perhaps someone else here knows more. 
>

Thanks Ian. I managed to write my first cgo thing calling it in my new file 
src/objvalmo/sqlitelog.go 
<https://github.com/bstarynk/monimelt/blob/master/src/objvalmo/sqlitelog.go>  



Basile

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to