Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 854 Bytes

README.md

File metadata and controls

31 lines (17 loc) · 854 Bytes

libsql-d

Dlang bindings for Libsql, an Sqlite fork created by Turso, that supports remote connections to a server. Based on the C bindings (experimental).

(C) 2024 by Pablo De Nápoli (pdenapo AT gmail.com)

To use it, you need first to build libsql from the sources with

cargo xtask build

and set the LIBSQL_PATH environment variable, to the the location of libsql_experimental.a in your system (like in my set_env.sh script).

Then build it with

dub build

Testing

We use Silly for testing. You can run the tests using

dub test

By default, the tests uses the in memory database, but you can use a different one by setting the LIBSQL_URL environment variable. For instance, run

turso dev

and set

export LIBSQL_URL="http://127.0.0.1:8080"