Expand description
The queryweave derives, under the default conventions.
Each derive forwards to its function in queryweave-codegen with
DefaultConventions; see there for what each one generates. A crate
wanting other naming rules or runtime paths writes its own proc-macro crate
calling those functions with its own conventions.
Derive Macrosยง
- Append
Conditions - The SQL of a wrapper of a domain filter-options model; see
queryweave_codegen::append_conditions. - Append
ToQuery - The SQL of a wrapper of a domain query model; see
queryweave_codegen::append_to_query. - Columns
queryweave_sql::Columnsfor asqlxentity (#[columns(model = Model)]); seequeryweave_codegen::columns.- Filters
- The filtering, sorting and paging types of a root model, or of a struct
mirroring a model (
#[filters(mirrors = path)]: a root model, or another mirror); seequeryweave_codegen::filters. - Merge
Patch - Merge patching a model with its merge patch model
(
#[merge_patch(patch = path)]); seequeryweave_codegen::merge_patch. - Merge
Patch Nullable Fields - The nullable (
Option<Option<T>>) fields of a merge patch model; seequeryweave_codegen::merge_patch_nullable_fields. - RawValue
queryweave::RawValuefor a value object; seequeryweave_codegen::raw_value.- Validate
NonNullable - The non-nullable validation of a merge patch DTO mirroring a domain merge
patch model; see
queryweave_codegen::validate_non_nullable.