Skip to main content

Module database

Module database 

Source
Expand description

Database Adapter — unified interface for SQLite, Cloudflare D1, and Supabase backends

Configured via [database] in what.toml. Defaults to SQLite when no config is present.

Re-exports§

pub use d1::D1Database;
pub use supabase::SupabaseDatabase;

Modules§

d1
Cloudflare D1 database backend
supabase
Supabase database backend (PostgREST API)

Structs§

CollectionQuery
Query options for collection retrieval
SqliteDatabase
SQLite-backed database for collections and key-value storage. Uses a connection pool for concurrent reads and spawn_blocking to keep the async runtime responsive.

Enums§

DatabaseAdapter
Unified database adapter — dispatches to SQLite, D1, or Supabase