Skip to main content

Crate easy_sql

Crate easy_sql 

Source

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! and query_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! and query_lazy!.

Structs§

Connection
Wrapper around sqlx::pool::PoolConnection
EasySqlTables
Internal metadata table used by Easy SQL to track per-table schema versions.
Transaction
Wrapper around sqlx::Transaction

Traits§

DatabaseSetup
Defines part of the database to initialize
Driver
Driver backend integration.
EasyExecutor
Abstraction over sqlx::Executor used 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§

DatabaseSetup
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.