Sha256: 79b1ca0a7b170b39465affec73e37b6bfb540e833effa1ac6d0ab3b381e26cfc
Contents?: true
Size: 643 Bytes
Versions: 5
Compression:
Stored size: 643 Bytes
Contents
module Alf module Sql class Cog include Alf::Compiler::Cog def initialize(expr, compiler, sexpr) super(expr, compiler) @sexpr = sexpr end attr_reader :sexpr alias :to_sexpr :sexpr def cog_orders [ sexpr.ordering ].compact end def should_be_reused? sexpr.should_be_reused? end def to_sql(buffer = "") sexpr.to_sql(buffer) end def each(&bl) raise NotSupportedError,\ "This is an abstract SQL compilation result. Please use alf-sequel." end end # module Cog end # module Sql end # module Alf
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
alf-sql-0.16.3 | lib/alf/sql/cog.rb |
alf-sql-0.16.2 | lib/alf/sql/cog.rb |
alf-sql-0.16.1 | lib/alf/sql/cog.rb |
alf-sql-0.16.0 | lib/alf/sql/cog.rb |
alf-sql-0.15.0 | lib/alf/sql/cog.rb |