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)), parent_model_joins : Array(Join) | Nil, predicate_node : PredicateNode | Nil, using : String | Nil)
- .new
Instance Method Summary
- #count(field : String | Symbol | Nil = nil)
- #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)
add_query_node,
add_selected_join(relation : String) : Nil
add_selected_join,
average(raw_field : String)
average,
clone
clone,
combine(other : Query(Model), connector : PredicateConnector) : Nil
combine,
connection
connection,
count(raw_field : String | Nil = nil)
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,
maximum(raw_field : String)
maximum,
minimum(raw_field : String)
minimum,
offset
offset,
order(fields : Array(String | Symbol)) : Nilorder(*fields : String) : Nil order, order_clauses order_clauses, ordered? ordered?, parent_model_joins parent_model_joins, 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?, sum(raw_field : String) sum, to_empty to_empty, to_sql : String to_sql, 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)), parent_model_joins : Array(Join) | Nil, 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)), parent_model_joins : Array(Join) | Nil, predicate_node : PredicateNode | Nil, using : String | Nil)
#