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.