ruststream-sqlx-dialect 0.7.0

SQL text generation for ruststream-sqlx: the statements its procedural macros and its runtime build for each database.
Documentation
  • Coverage
  • 100%
    149 out of 149 items documented70 out of 70 items with examples
  • Size
  • Source code size: 616.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • powersemmi/ruststream-sqlx
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • powersemmi

ruststream-sqlx-dialect

SQL text generation for ruststream-sqlx, the SQL database crate of the RustStream messaging framework.

The procedural macros of ruststream-sqlx and its runtime build their statements here, so both produce the same SQL for a table. The crate generates plain text, free of any database driver, so a procedural macro can run it at compile time.

A TableSpec describes a queue table, and a Dialect turns it into the statement each queue event runs. Three dialects are built in, each behind its feature: Postgres (postgres) and MySQL with MariaDB (mysql) build the row lock, lease and advisory lock forms, and SQLite (sqlite) builds the lease and advisory lock forms. A database without a built-in dialect is served by a type of the service's own that implements Dialect and the trait of each form it builds.

License

Apache-2.0.