take a look at how the mysql driver is handled in gerbil -- there is a background posix thread for each database connection.

-- vyzo

On Mon, Nov 4, 2019 at 10:47 AM Amirouche Boubekki <amirouche.boubekki@gmail.com> wrote:
Can I have some guidance on how to create bindings for sqlite lsm extensions?

sqlite lsm extension is similar to leveldb used in gerbil. But unlike
gerbil bindings, I would like the db calls to not block other gambit
threads [0].

[0] https://github.com/vyzo/gerbil/blob/master/src/std/db/_leveldb.scm

I was said on gitter to rely on some kind of socket to do that. But I
am not sure how to proceed.

To get started I would like to have a single POSIX thread database
side and the gambit main thread communicating via a pipe or something
similar. Eventually, my program must not require multiple programs to
be started ie. a single command, possibly with multiple POSIX
processus or threads (prefered).

It will be nice if it is portable across OS.

Thanks in advance for your help!

--
Amirouche ~ https://hyper.dev

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list