libsql_core-0.0.1 has been yanked.
libSQL API for Rust
Getting Started
Connecting to a database
use Database;
let db = open;
let conn = db.connect.unwrap;
Creating a table
conn.execute.unwrap;
Inserting rows into a table
conn.execute.unwrap;
Querying rows from a table
let rows = conn.execute.unwrap.unwrap;
let row = rows.next.unwrap.unwrap;
// prints "alice@example.org"
println!;
Developing
Setting up the environment:
Building the APIs:
Running the tests:
Running the benchmarks:
Run benchmarks and generate flamegraphs:
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
cargo bench --bench benchmark -- --profile-time=5