Skip to main content

Crate rustauth_diesel

Crate rustauth_diesel 

Source
Expand description

Diesel database adapters for RustAuth.

§Row decoding strategy

Chosen: dynamic row capture via [postgres::row::DieselPostgresRow], which implements diesel::deserialize::QueryableByName by storing raw column bytes and type OIDs at build time, then decoding through tokio_postgres [FromSql] in the shared [SqlRowReader] boundary.

Direct diesel::row::NamedRow decoding remains available for feasibility tests in [row].

§Adapter shape

  • Crate name: rustauth-diesel (async-only on diesel-async; no sync adapter).
  • Initial backends: Postgres and MySQL (postgres / mysql features).
  • SQLite and sync Diesel are deferred by design.