Skip to main content

Crate siderite_backends

Crate siderite_backends 

Source
Expand description

siderite-backends: query compilers and database adapters.

  • sql compiles a QueryPlan into parameterised SQL for a Dialect. Values are always bound, never interpolated.

  • sqlite (feature sqlite, default) executes plans with SQLx.

  • postgres (feature postgres) executes plans with SQLx.

  • mysql (feature mysql) executes plans with SQLx.

  • mongodb (feature mongodb) compiles the supported plan subset to filters and aggregation pipelines.

  • redis (feature redis) is a key/hash/set store (redis::RedisStore), not a QuerySet backend.

Modulesยง

connection_init
Explicit composition of SQLx connection initialization.
mongodb
MongoDB backend: compiles the supported subset of a QueryPlan / WritePlan to filters, update documents and aggregation pipelines.
mysql
MySQL backend built on SQLx (MySQL 8.0.31+, tested on 9.x).
postgres
PostgreSQL backend built on SQLx.
redis
Redis key, hash and set store.
sql
Dialect-aware SQL compilation.
sqlite
SQLite backend built on SQLx.