class Marten::DB::Query::SQL::PredicateNode

Included Modules

Defined in:

marten/db/query/sql/predicate_node.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(children : Array(self), connector : PredicateConnector, negated : Bool, predicates : RawPredicate | FilterPredicates) #

[View source]
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) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def add(other : self, conn : SQL::PredicateConnector) #

[View source]

[View source]
def clone #

[View source]

[View source]
def filter_predicates : FilterPredicates #

[View source]
def filter_predicates? : Bool #

[View source]
def negated : Bool #

[View source]
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)} #

[View source]
def raw_predicate : RawPredicate #

[View source]
def raw_predicate? : Bool #

[View source]
def replace_table_alias_prefix(old_vs_new_table_aliases : Hash(String, String)) : Nil #

[View source]
def to_sql(connection : Connection::Base) #

[View source]