Skip to main content

Crate oxilite_d1

Crate oxilite_d1 

Source
Expand description

Cloudflare D1 backend for oxilite in Rust Workers.

ⓘ
let store = oxilite::AsyncStore::open(oxilite_d1::D1Backend::new(env.d1("DB")?)).await?;

Atomic requests run as one batch() (D1’s only transaction); single reads use raw(). 64-bit ids travel as TEXT because D1 returns JavaScript numbers.

Functions§

migration_sql
The oxilite schema as a D1 migration script.