Expand description
Shared SQL planning helpers for SQL-speaking database adapters.
Structs§
- Column
ToAdd - A column missing from an existing table and planned for additive creation.
- Index
ToCreate - A standalone index missing from the database and planned for creation.
- Migration
Statement - A SQL statement emitted by a migration plan.
- Native
Join - Schema
Migration Plan - Additive schema changes planned for a live database.
- SqlAdapter
Runner - Shared CRUD runner for SQL adapters that can execute raw SQL.
- SqlColumn
Snapshot - Introspected column metadata used by the pure migration planner.
- SqlDelete
OnePlan - Shared single-row delete statement.
- SqlFragment
- A SQL fragment plus its ordered parameters.
- SqlJoin
Read Statement - A native join read statement and borrowed metadata needed for row grouping.
- SqlParam
- A database value paired with the field type needed to bind NULLs correctly.
- SqlRate
Limit Names - Physical database names used by SQL-backed rate limit stores.
- SqlRate
Limit Plan - SQL statements used by database-backed rate limit stores.
- SqlRead
Statement - A read statement and the metadata needed to decode its result rows.
- SqlSchema
Snapshot - Introspected database schema used by the pure migration planner.
- SqlSelected
Field - Field selected by a SQL read statement.
- SqlStatement
- A complete SQL statement plus its ordered parameters.
- SqlTable
Snapshot - Introspected table metadata used by the pure migration planner.
- Table
ToCreate - A table missing from the database and planned for creation.
Enums§
- Delete
OneStrategy - Dialect strategy used to delete only one matching row.
- Migration
Statement Kind - The additive operation represented by a migration statement.
- Schema
Migration Warning - Non-executable findings discovered while planning migrations.
- SqlDialect
- SQL dialect supported by OpenAuth’s shared SQL planner.
- SqlUpdate
OnePlan - Shared single-row update strategy.
Traits§
- SqlExecutor
- Minimal async execution boundary required by the shared SQL runner.
- SqlRow
Reader - Driver row decoding boundary for converting raw driver rows into OpenAuth values.
Functions§
- base_
alias - consume_
sql_ rate_ limit_ record - Applies OpenAuth rate-limit semantics to a locked database record.
- count_
statement - create_
returning_ selection - create_
statement - delete_
many_ statement - delete_
one_ statement - execute_
schema_ migration_ plan - Executes a pure migration plan through any SQL executor.
- find_
many_ statement - find_
many_ with_ joins_ statement - find_
one_ statement - internal_
base_ selection - join_
alias - join_
field_ alias - joined_
rows - plan_
schema_ migration - Compares a target OpenAuth schema with a SQL schema snapshot and emits an additive plan.
- rate_
limit_ consume_ statements - Builds the dialect-specific statement trio used by SQL-backed rate-limit stores.
- resolve_
field - resolve_
field_ from_ selection - resolve_
native_ joins - resolve_
table - resolve_
table_ with_ logical - select_
fields - select_
record - table_
has_ database_ generated_ id - update_
many_ statement - update_
one_ plan