class Marten::DB::Query::Node
- Marten::DB::Query::Node
- Reference
- Object
Defined in:
marten/db/query/node.crConstructors
- .new(filters : Hash | NamedTuple, children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
- .new(raw_predicate : String, params : Array(::DB::Any) | Hash(String, ::DB::Any) = [] of ::DB::Any, children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
- .new(children : Array(self), connector : SQL::PredicateConnector, negated : Bool, expression : Filters | RawPredicate)
- .new(children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false, **kwargs)
Instance Method Summary
- #&(other : Node)
- #- : self
-
#==(other : self)
Returns
true
if this reference is the same as other. - #^(other : Node)
- #|(other : Node)
- #children : Array(Marten::DB::Query::Node)
- #connector : Marten::DB::Query::SQL::PredicateConnector
- #expression : Hash(String, Array(Bool | File | Float32 | Float64 | Int32 | Int64 | JSON::Any | JSON::Serializable | Marten::DB::Field::File::File | Marten::HTTP::UploadedFile | String | Symbol | Time | Time::Span | UUID | Nil) | Array(Marten::DB::Model) | Bool | File | Float32 | Float64 | Int32 | Int64 | JSON::Any | JSON::Serializable | Marten::DB::Field::File::File | Marten::DB::Model | Marten::HTTP::UploadedFile | String | Symbol | Time | Time::Span | UUID | Nil) | {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)}
- #filters : Filters
- #filters? : Bool
- #negated : Bool
- #raw_predicate : RawPredicate
- #raw_predicate? : Bool
Constructor Detail
def self.new(filters : Hash | NamedTuple, children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
#
def self.new(raw_predicate : String, params : Array(::DB::Any) | Hash(String, ::DB::Any) = [] of ::DB::Any, children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false)
#
def self.new(children : Array(self), connector : SQL::PredicateConnector, negated : Bool, expression : Filters | RawPredicate)
#
def self.new(children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false, **kwargs)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def expression : Hash(String, Array(Bool | File | Float32 | Float64 | Int32 | Int64 | JSON::Any | JSON::Serializable | Marten::DB::Field::File::File | Marten::HTTP::UploadedFile | String | Symbol | Time | Time::Span | UUID | Nil) | Array(Marten::DB::Model) | Bool | File | Float32 | Float64 | Int32 | Int64 | JSON::Any | JSON::Serializable | Marten::DB::Field::File::File | Marten::DB::Model | Marten::HTTP::UploadedFile | String | Symbol | Time | Time::Span | UUID | Nil) | {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)}
#