class Marten::DB::Query::Node

Defined in:

marten/db/query/node.cr

Constructors

Instance Method Summary

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

[View source]
def self.new(children : Array(self), connector : SQL::PredicateConnector, negated : Bool, filters : FilterHash) #

[View source]
def self.new(children : Array(Marten::DB::Query::Node) = [] of self, connector : Marten::DB::Query::SQL::PredicateConnector = SQL::PredicateConnector::AND, negated : Bool = false, **kwargs) #

[View source]

Instance Method Detail

def &(other : self) #

[View source]
def - : self #

[View source]
def ==(other : self) #
Description copied from class Reference

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


[View source]
def |(other : self) #

[View source]
def children : Array(Marten::DB::Query::Node) #

[View source]

[View source]
def filters : Hash(String, Array(Bool | File | Float64 | Int32 | Int64 | Marten::DB::Field::File::File | Marten::HTTP::UploadedFile | String | Symbol | Time | UUID | Nil) | Bool | File | Float64 | Int32 | Int64 | Marten::DB::Field::File::File | Marten::DB::Model | Marten::HTTP::UploadedFile | String | Symbol | Time | UUID | Nil) #

[View source]
def negated : Bool #

[View source]