Skip to main content

Module args

Module args 

Source
Expand description

Per-operation argument containers.

Each struct is the layer-2 “explicit form” of an operation request: the macro DSL (phase 3+) expands to a *Args { ... } literal that the operation builder consumes via .with_args(args). Direct construction by hand is fully supported.

Generic parameters:

  • M — the model
  • WWhereInput impl for that model
  • IIncludeInput impl
  • SSelectInput impl
  • DCreateInput::Data / UpdateInput::Data payload (operation-specific)
  • OOrderByInput impl

Phase 1 keeps the bounds open so hand-construction works even before codegen lands. Phase 2 narrows them when the per-model types exist.

Structs§

AggregateArgs
Args for aggregate. The aggregate spec parameter is filled in by phase 6.
CountArgs
Args for count.
CreateArgs
Args for create.
CreateManyArgs
Args for create_many.
DeleteArgs
Args for delete.
DeleteManyArgs
Args for delete_many.
FindFirstArgs
Args for find_first.
FindManyArgs
Args for find_many.
FindUniqueArgs
Args for find_unique. where must identify at most one row.
GroupByArgs
Args for group_by. The grouping spec parameter is filled in by phase 6.
UpdateArgs
Args for update.
UpdateManyArgs
Args for update_many.
UpsertArgs
Args for upsert.