tank-sqlite

Crates.iotank-sqlite
lib.rstank-sqlite
version0.16.0
created_at2025-09-28 14:54:50.129077+00
updated_at2026-01-20 23:42:23.475524+00
descriptionSQLite driver implementation for Tank: the Rust data layer
homepage
repositoryhttps://github.com/TankHQ/tank
max_upload_size
id1858403
size82,215
BarsDev (barsdeveloper)

documentation

README

Tank: Table Abstraction & Navigation Kit logo featuring a green tank with a gear background and stacked database cylinders

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?;
Commit count: 401

cargo fmt