Skip to main content

Crate depot_client

Crate depot_client 

Source
Expand description

Depot-backed SQLite client.

Provides the native SQLite VFS used by Rivet actors.

This is a pure Rust library. N-API bindings and transport clients live in separate crates that compose this one.

The SQLite implementation used by rivetkit-napi is defined in this crate. Keep its storage layout and behavior in sync with the internal SQLite data-channel spec.

Key invariants:

  • PRAGMA settings
  • Delete and truncate behavior
  • Journal and BATCH_ATOMIC behavior

Re-exports§

pub use depot_client_types as types;

Modules§

database
Unified native database handles and open helpers.
optimization_flags
SQLite optimization feature flags. Central SQLite optimization feature flags.
query
SQLite query execution helpers.
sqlite_page
Lightweight SQLite page classification for prefetch planning. Lightweight SQLite page classification for the VFS prefetch planner.
vfs
Custom SQLite VFS for actor-side depot transport. Custom SQLite VFS backed by KV operations over the KV channel.
worker
Single-threaded native SQLite command worker.