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)), predicate_node : PredicateNode | Nil, using : String | Nil)
- .new
Instance Method Summary
- #add_query_node(query_node : Node)
- #add_selected_join(relation : String) : Nil
- #clone
- #connection
- #count
- #default_ordering
- #default_ordering=(default_ordering : Bool)
- #distinct
- #distinct=(distinct : Bool)
- #distinct_columns
- #execute : Array(Model)
- #exists? : Bool
- #joins
- #joins?
- #limit
- #offset
- #order(fields : Array(String | Symbol)) : Nil
- #order(*fields : String) : Nil
- #order_clauses
- #ordered?
- #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?
- #to_empty
- #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)), predicate_node : PredicateNode | Nil, using : String | Nil)
#