Expand description
Procedural macros for sqlw.
This crate provides the macros used by sqlw. You typically
don’t need to depend on it directly; use the re-exports from sqlw.
Macros§
- query_
numbered - Compiles a SQL query with
$1, $2placeholders. - query_
qmark - Compiles a SQL query with
?placeholders. - schema
- Defines a table schema with typed field constants and a value struct.
Derive Macros§
- FromRow
- Derives
FromRowfor a struct. - Into
Value - Derives [
From<T> for Value] for newtypes and enums. - TryFrom
Value Ref - Derives
TryFrom<ValueRef>for a single-field tuple struct (newtype).