Crate real_time_sqlx

Source
Expand description

Real-time SQLx library

Modules§

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

Macros§

  • Returns the appropriate database pool type based on the database type.
  • Returns the appropriate database row type based on the database type.
  • Returns the appropriate database query fetching function depending on the database type.
  • Returns the appropriate granular operation processing function depending on the database type.
  • 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.
  • Macro that generates the static rows serialization dispatcher function, that given sqlite rows, serializes them to the appropriate model based on the table name.