HTTP API servers backed by turbolite-compressed SQLite. Uses net/http (stdlib) + cgo.
make lib-bundled
make example-gomake lib-bundled
TURBOLITE_BUCKET=my-bucket make example-go-tieredcurl -X POST localhost:8080/books -d '{"title":"Dune","year":1965}'
curl localhost:8080/books- Declare FFI functions in the cgo preamble (
externdeclarations) turbolite_register_local(local) orturbolite_register_cloud(S3)turbolite_open- open a database through the VFS- HTTP handlers call
turbolite_exec(writes) andturbolite_query_json(reads)
Strings passed to C must be allocated with C.CString and freed with C.free.