Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-le97/vlibsql
vlang wrapper for libsql
https://github.com/daniel-le97/vlibsql
libsql turso vlang
Last synced: 24 days ago
JSON representation
vlang wrapper for libsql
- Host: GitHub
- URL: https://github.com/daniel-le97/vlibsql
- Owner: daniel-le97
- License: mit
- Created: 2024-10-24T21:38:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T22:52:17.000Z (about 2 months ago)
- Last Synced: 2024-12-09T14:58:00.115Z (about 1 month ago)
- Topics: libsql, turso, vlang
- Language: V
- Homepage: https://daniel-le97.github.io/vlibsql/
- Size: 24.8 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vlibsql
## vlang bindings for libsql-c
learn more at
[libsql-c](https://github.com/tursodatabase/libsql-c)## note
- V ORM is supported, but it still needs tests
- [libsql-c](https://github.com/tursodatabase/libsql-c) SDK is currently in technical preview, and mostly used for internal use when building other libSQL SDKs
- libsql-c does not expose the sqlite compatible C api# building
cargo and rust need to be installed [Rust and Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
1. this will install libsql-c if not found
```bash
make update
```2. dynamic library (example)
```bash
make update LIBRARY_LIB=liblibsql.dylib
```## manually
1. Clone the repository:
```bash
git clone https://github.com/tursodatabase/libsql-c.git
cd libsql-c
```2. Build the library:
- default: `cargo build --release`
- with encryption: `cargo build --release --features encryption`3. The compiled library will be in `libsql-c/target/release/`:
- `liblibsql.so` (Linux)
- `liblibsql.dylib` (macOS)
- `liblibsql.dll` (Windows)
- `liblibsql.a` (static)4. Copy `libsql.h` and the compiled library to ./thirdparty
5. this wrapper supports static library or dynamic library