dactyl-db-macros 0.2.4

Proc macros for dactyl-db. Implements the `query!` compile-time analyzer.
Documentation

dactyl::query! proc macro.

Lexically analyzes the SQL literal at compile time so:

  1. Hard-coded constructs are visible to the analyzer before the crate is built.
  2. The literal is rewritten (currently identity) at compile time so the runtime path stays allocation-light.
  3. Empty literals fail to compile with a clear message.

The expanded form returns a String containing the (rewritten) SQL. Callers wire it into dactyl::query directly:

let rows = dactyl_db::query(&dactyl_db::query!("select id, title from todos"), &[])?;