Skip to main content

Crate sqlsrv

Crate sqlsrv 

Source
Expand description

A library for implementing an in-process SQLite database server.

§Connection pooling

sqlsrv implements connection pooling that reflects the concurrency model of SQLite: It supports multiple parallel readers, but only one writer.

§Thread pooling

In addition to pooling connections, the library supports optionally using a thread pool for diaptching database operations onto threads.

§Features

FeatureFunction
tpoolEnable functions/methods that use a thread pool.

Re-exports§

pub use r2d2;
pub use rusqlite;

Modules§

autovacuum
Auto-vacuum runtime.
utils
Utility functions around SQL commands.

Structs§

Builder
Builder for constructing a ConnPool object.
ConnPool
SQLite connection pool.
SqliteConnectionManager
An r2d2::ManageConnection for rusqlite::Connections.
WrConn
SQLite connection object that can be used for operations that modify the database.

Enums§

Action
Database hook action type.
Error
Errors that are returned by sqlsrv.
RegOn
Wrapper around a SQL functions registration callback used to select which connection types to perform registrations on.

Traits§

ChangeLogHook
Application callback used to process committed changes to the database.
Hook
Application callback used to process changes to the database.
SchemaMgr
Used to register application callbacks to set up database schema.