class Marten::DB::Query::SQL::Query(Model)
- Marten::DB::Query::SQL::Query(Model)
- Reference
- Object
Direct Known Subclasses
Defined in:
marten/db/query/sql/query.crConstructors
- .new(default_ordering : Bool, distinct : Bool, distinct_columns : Array(String), joins : Array(Join), limit : Int64 | Nil, offset : Int64 | Nil, order_clauses : Array(Tuple(String, Bool)), parent_model_joins : Array(Join) | Nil, predicate_node : PredicateNode | Nil, using : String | Nil)
- .new
Instance Method Summary
- #add_query_node(query_node)
- #add_selected_join(relation : String) : Nil
- #average(raw_field : String)
- #clone
- #combine(other : Query(Model), connector : PredicateConnector) : Nil
- #connection
- #count(raw_field : String | Nil = nil)
- #default_ordering
- #default_ordering=(default_ordering : Bool)
- #distinct
- #distinct=(distinct : Bool)
- #distinct_columns
- #execute : Array(Model)
- #exists? : Bool
- #joins
- #joins?
- #limit
- #maximum(raw_field : String)
- #minimum(raw_field : String)
- #offset
- #order(fields : Array(String | Symbol)) : Nil
- #order(*fields : String) : Nil
- #order_clauses
- #ordered?
- #parent_model_joins
- #pluck(fields : Array(String)) : Array(Array(Field::Any))
- #predicate_node
- #quote(*args, **options)
- #quote(*args, **options, &)
- #raw_delete
- #setup_distinct_clause(fields : Array(String) | Nil = nil) : Nil
- #slice(from, size = nil)
- #sliced?
- #sum(raw_field : String)
- #to_empty
- #to_sql : String
- #update_with(values : Hash(String | Symbol, Field::Any | DB::Model))
- #using
- #using=(using : Nil | String)
Constructor Detail
def self.new(default_ordering : Bool, distinct : Bool, distinct_columns : Array(String), joins : Array(Join), limit : Int64 | Nil, offset : Int64 | Nil, order_clauses : Array(Tuple(String, Bool)), parent_model_joins : Array(Join) | Nil, predicate_node : PredicateNode | Nil, using : String | Nil)
#