tank-sqlite 0.13.0

SQLite driver implementation for Tank: the Rust data layer
Documentation

tank-sqlite

SQLite driver implementation for Tank: the Rust data layer.

Implements Tank’s Driver and related traits for SQLite, mapping Tank operations and queries into direct SQLite commands. It does not replace the main tank crate. you still use it to define entities, manage schemas, and build queries.

https://tankhq.github.io/tank/

https://github.com/TankHQ/tank

https://crates.io/crates/tank

Features

  • SQLite C API (FFI) using libsqlite3-sys
  • Queries are streamed row by row using try_stream! (async_stream): each statement is stepped with sqlite3_step and results are yielded immediately (no buffering occurs)

Install

cargo add tank
cargo add tank-sqlite

Connect

use tank::{Connection, Driver, Executor};
use tank_sqlite::SQLiteDriver;

let driver = SQLiteDriver::new();
let connection = driver
    .connect("sqlite://path/to/database.sqlite?mode=rw".into())
    .await?;