Skip to content

daniel-le97/vlibsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vlibsql

vlang bindings for libsql-c

learn more at libsql-c

note

  • V ORM is supported, but it still needs tests
  • 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

  1. this will install libsql-c if not found ( copies liblibsql.a to ./thirdparty)
    • this will also prompt to install rust if not found in $PATH
make update
  1. dynamic library (example)
make update LIBRARY_LIB=liblibsql.dylib

manually

  1. Clone the repository:

    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
    • currently ive only gotten encryption on darwin, feel free to test this
  1. The compiled library will be in libsql-c/target/release/:

    • liblibsql.so (Linux)
    • liblibsql.dylib (macOS)
    • liblibsql.dll (Windows)
    • liblibsql.a (static)
  2. Copy libsql.h and the compiled library to ./thirdparty

  3. this wrapper supports static library or dynamic library

About

vlang wrapper for libsql

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published