Sha256: 5356efc420ae34e64d254eedf1b0fd818376b14a4ac5e90110786558cee44150

Contents?: true

Size: 444 Bytes

Versions: 14

Compression:

Stored size: 444 Bytes

Contents

module Bmg
  module Sequel
    class PredicateTranslator < Sexpr::Processor
      include ::Predicate::ToSequel::Methods

      def initialize(parent)
        @parent = parent
      end

    public ### Predicate hack

      def on_opaque(sexpr)
        @parent.apply(sexpr.last)
      end

      def on_exists(sexpr)
        @parent.apply(sexpr.last).exists
      end

    end # class PredicateTranslator
  end # module Sequel
end # module Bmg

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sequel/predicate_translator.rb
bmg-0.23.2 lib/bmg/sequel/predicate_translator.rb
bmg-0.23.1 lib/bmg/sequel/predicate_translator.rb
bmg-0.23.0 lib/bmg/sequel/predicate_translator.rb
bmg-0.21.5 lib/bmg/sequel/predicate_translator.rb
bmg-0.21.4 lib/bmg/sequel/predicate_translator.rb
bmg-0.20.5 lib/bmg/sequel/predicate_translator.rb
bmg-0.21.3 lib/bmg/sequel/predicate_translator.rb
bmg-0.21.2 lib/bmg/sequel/predicate_translator.rb
bmg-0.21.0 lib/bmg/sequel/predicate_translator.rb
bmg-0.20.4 lib/bmg/sequel/predicate_translator.rb
bmg-0.20.2 lib/bmg/sequel/predicate_translator.rb
bmg-0.20.1 lib/bmg/sequel/predicate_translator.rb
bmg-0.20.0 lib/bmg/sequel/predicate_translator.rb