libsql-d ~main
D bindings for libsql.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
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 LIBSQLPATH environment variable, to the the location of libsqlexperimental.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"
- Registered by Pablo De Nápoli
- ~main released 6 months ago
- pdenapo/libsql-d
- MIT
- Copyright © 2023, Pablo De Napoli
- Authors:
- Dependencies:
- vibe-d:data, silly
- Versions:
-
0.1.0 2024-Jun-11 ~main 2024-Jun-22 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
6 downloads total
-
- Score:
- 0.3
- Short URL:
- libsql-d.dub.pm