Crate real_time_sqlx

Source
Expand description

Real-time SQLx library

Modules§

backends
Implementations for different backends.
database
Query utilities and particularized database implementations Some implementations need to be particularized because of trait generics hell.
error
Custom errors
macros
Helper macros to automatically generate static dispatcher code between models.
operations
Granular database operations and updates
queries
Query system for real-time SQLX
utils

Macros§

database_pool
Returns the appropriate database pool type based on the database type.
database_row
Returns the appropriate database row type based on the database type.
fetch_query_fn
Returns the appropriate database query fetching function depending on the database type.
granular_operation_fn
Returns the appropriate granular operation processing function depending on the database type.
granular_operations
Macro that generates a static operation executor and serializer function, that given a granular operation, executes it, parses the result into the data structure corresponding to the table name, and serializes it to JSON. This is useful for simple operation processing, without real-time updates.
serialize_rows_static
Macro that generates the static rows serialization dispatcher function, that given sqlite rows, serializes them to the appropriate model based on the table name.