class Marten::DB::Query::SQL::EmptyQuery(Model)
Defined in:
marten/db/query/sql/empty_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
- #count
- #execute : Array(Model)
- #exists? : Bool
- #raw_delete
- #update_with(values : Hash(String | Symbol, Field::Any | DB::Model))
Instance methods inherited from class Marten::DB::Query::SQL::Query(Model)
add_query_node(query_node : Node)
add_query_node,
add_selected_join(relation : String) : Nil
add_selected_join,
clone
clone,
connection
connection,
count
count,
default_ordering
default_ordering,
default_ordering=(default_ordering : Bool)
default_ordering=,
distinct
distinct,
distinct=(distinct : Bool)
distinct=,
distinct_columns
distinct_columns,
execute : Array(Model)
execute,
exists? : Bool
exists?,
joins
joins,
joins?
joins?,
limit
limit,
offset
offset,
order(fields : Array(String | Symbol)) : Nilorder(*fields : String) : Nil order, order_clauses order_clauses, ordered? ordered?, pluck(fields : Array(String)) : Array(Array(Field::Any)) pluck, predicate_node predicate_node, quote(*args, **options)
quote(*args, **options, &) quote, raw_delete raw_delete, setup_distinct_clause(fields : Array(String) | Nil = nil) : Nil setup_distinct_clause, slice(from, size = nil) slice, sliced? sliced?, to_empty to_empty, update_with(values : Hash(String | Symbol, Field::Any | DB::Model)) update_with, using using, using=(using : Nil | String) using=
Constructor methods inherited from class Marten::DB::Query::SQL::Query(Model)
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 new
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)
#