Skip to main content

Crate sqlw_macro

Crate sqlw_macro 

Source
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, $2 placeholders.
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 FromRow for a struct.
IntoValue
Derives [From<T> for Value] for newtypes and enums.
TryFromValueRef
Derives TryFrom<ValueRef> for a single-field tuple struct (newtype).