Skip to main content

Crate authkestra_store_sqlx

Crate authkestra_store_sqlx 

Source
Expand description

Native, batteries-included SQL storage for authkestra-op’s OpStore, via sqlx. Split out of authkestra-op itself (authkestra#289) so that core has zero sqlx dependency — anyone wanting SQL-backed storage adds this satellite crate explicitly, selecting one or more of the postgres/mysql/sqlite features for the backend(s) they need.

While a generic KvStore exists in authkestra-engine for JSON blob persistence across the framework, the OpenID Provider’s SqlxOpStore is deliberately opinionated instead: highly normalized SQL tables with proper relational foreign keys, ON DELETE CASCADE constraints, and strictly defined columns (client_id, scopes, expires_at, …).

Structs§

SqlxOpStore
Opinionated, native SQL implementation of OpStore using sqlx.
SqlxOpStoreTx
A SqlxOpStore scoped to one open sqlx transaction — every store method called on it runs inside that transaction, and nothing lands until commit.