Sha256: ec6a5ca48b85bcc207c01486812197e576e7b80e2700f7e4cd44a200e181c148

Contents?: true

Size: 273 Bytes

Versions: 10

Compression:

Stored size: 273 Bytes

Contents

require_relative 'binary_operator_node'

module ConceptQL
  module Nodes
    class PersonFilter < BinaryOperatorNode
      def query(db)
        db.from(left.evaluate(db))
          .where(person_id: right.evaluate(db).select_group(:person_id))
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
conceptql-0.1.1 lib/conceptql/nodes/person_filter.rb
conceptql-0.1.0 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.9 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.8 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.7 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.6 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.5 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.4 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.3 lib/conceptql/nodes/person_filter.rb
conceptql-0.0.1 lib/conceptql/nodes/person_filter.rb