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(children : Array(self), connector : SQL::PredicateConnector, negated : Bool, filters : FilterHash)
- .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 : self)
- #- : self
- 
        #==(other : self)
        
          Returns trueif this reference is the same as other.
- #|(other : self)
- #children : Array(Marten::DB::Query::Node)
- #connector : Marten::DB::Query::SQL::PredicateConnector
- #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)
- #negated : 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(children : Array(self), connector : SQL::PredicateConnector, negated : Bool, filters : FilterHash)
        #
      
      
      
        
        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 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)
        #