Registry / database / rusqlite

rusqlite

JSON →
library0.40.1rscratesunverified

Ergonomic wrapper for SQLite.

# Cargo.toml [dependencies] rusqlite = "0.40.1"
INSTALL
IMPORT
SIG · RUSQLITE
R
rusqlite
databaserustv0.40.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
use rusqlite::Connection;

Opens an in-memory SQLite database and creates a table.

use rusqlite::Connection; fn main() -> rusqlite::Result<()> { let conn = Connection::open_in_memory()?; conn.execute("CREATE TABLE user (id INTEGER PRIMARY KEY, name TEXT)", [])?; Ok(()) }
Debug
Known issues
gotchaRequires the `bundled` feature to include SQLite statically; otherwise, system SQLite must be installed.
fix
Add `rusqlite = { version = "0.40", features = ["bundled"] }` to Cargo.toml.
affects: >=0.40.0
Upgrade
Version history
0.40.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Meta
2
Resources
rusqlite — cargo add rusqlite · libregistry