class Marten::DB::Query::SQL::PredicateNode
- Marten::DB::Query::SQL::PredicateNode
- Reference
- Object
Included Modules
Defined in:
marten/db/query/sql/predicate_node.crConstructors
- .new(raw_predicate : String, params : Array(::DB::Any) | Hash(String, ::DB::Any) = [] of ::DB::Any, children : Array(Marten::DB::Query::SQL::PredicateNode) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
- .new(children : Array(self), connector : PredicateConnector, negated : Bool, predicates : RawPredicate | FilterPredicates)
- .new(children : Array(Marten::DB::Query::SQL::PredicateNode) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false, *args)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #add(other : self, conn : SQL::PredicateConnector)
- #children : Array(Marten::DB::Query::SQL::PredicateNode)
- #clone
- #connector : Marten::DB::Query::SQL::PredicateConnector
- #filter_predicates : FilterPredicates
- #filter_predicates? : Bool
- #negated : Bool
- #predicates : Array(Marten::DB::Query::SQL::Predicate::Base) | {predicate: String, params: Array(Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil) | Hash(String, Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil)}
- #raw_predicate : RawPredicate
- #raw_predicate? : Bool
- #replace_table_alias_prefix(old_vs_new_table_aliases : Hash(String, String)) : Nil
- #to_sql(connection : Connection::Base)
Instance methods inherited from module Marten::DB::Query::SQL::Sanitizer
sanitize_named_parameters(query : String, params : Hash(String, ::DB::Any), connection : Connection::Base | Nil = nil)
sanitize_named_parameters,
sanitize_positional_parameters(query : String, params : Array(::DB::Any), connection : Connection::Base | Nil = nil)
sanitize_positional_parameters
Constructor Detail
def self.new(raw_predicate : String, params : Array(::DB::Any) | Hash(String, ::DB::Any) = [] of ::DB::Any, children : Array(Marten::DB::Query::SQL::PredicateNode) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
#
def self.new(children : Array(self), connector : PredicateConnector, negated : Bool, predicates : RawPredicate | FilterPredicates)
#
def self.new(children : Array(Marten::DB::Query::SQL::PredicateNode) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false, *args)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def predicates : Array(Marten::DB::Query::SQL::Predicate::Base) | {predicate: String, params: Array(Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil) | Hash(String, Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil)}
#
def replace_table_alias_prefix(old_vs_new_table_aliases : Hash(String, String)) : Nil
#