Modules§
- driver
- Driver-facing traits and helper types.
- markers
- Marker traits used by the macros to enforce query constraints.
- supported
- Built-in SQL functions and operators supported by the easy-sql macros.
Macros§
- custom_
sql_ function - Define a custom SQL function for use in
query!andquery_lazy!. - query
- Type-safe SQL macro that builds and executes a query with compile-time checks.
- query_
lazy - Type-safe SQL macro that builds a lazy query and returns a stream on execution.
- table_
join - Defines a joined table type for use in
query!andquery_lazy!.
Structs§
- Connection
- Wrapper around
sqlx::pool::PoolConnection - Easy
SqlTables - Internal metadata table used by Easy SQL to track per-table schema versions.
- Transaction
- Wrapper around
sqlx::Transaction
Traits§
- Database
Setup - Defines part of the database to initialize
- Driver
- Driver backend integration.
- Easy
Executor - Abstraction over
sqlx::Executorused by the query macros. - Insert
- Insert payload mapping for a table.
- Output
- Output mapping for query results.
- Table
- Table metadata used by the query macros.
- ToDefault
- Converts a Rust value into a SQL default expression.
- Update
- Update payload mapping for a table.
Derive Macros§
- Database
Setup - Composes database structure from nested types.
- Insert
- Defines insertable data for a table.
- Output
- Defines a SQL output mapping.
- Table
- Defines a SQL table schema.
- Update
- Defines update data for a table.