struct
Prostore::Schema::Call
- Prostore::Schema::Call
- Struct
- Value
- Object
Overview
A named query declaration (ADR-0006).
Captures the name and the chain of DSL calls observed in the lambda
body (e.g., where, order_by, limit). The Query::Analyzer
consumes this to classify field accesses (filtered/sorted) and drive
index planning plus the eager-vs-lazy override.
Defined in:
prostore/schema/query.crConstructors
Instance Method Summary
- #arity : Int32
- #clone
- #copy_with(name _name = @name, arity _arity = @arity, named_arg_keys _named_arg_keys = @named_arg_keys, positional_symbols _positional_symbols = @positional_symbols)
- #name : String
- #named_arg_keys : Array(String)
-
#positional_symbols : Array(String)
Positional
SymbolLiteralarguments — e.g., the:scoreinorder_by(:score, desc: true).
Constructor Detail
def self.new(name : String, arity : Int32, named_arg_keys : Array(String), positional_symbols : Array(String) = [] of String)
#
Instance Method Detail
def copy_with(name _name = @name, arity _arity = @arity, named_arg_keys _named_arg_keys = @named_arg_keys, positional_symbols _positional_symbols = @positional_symbols)
#
def positional_symbols : Array(String)
#
Positional SymbolLiteral arguments — e.g., the :score in
order_by(:score, desc: true). Captured at macro time so the
analyzer can recognize positional sort fields without forcing the
named-arg form on users.