Sha256: 73e221a37888e52e19ca2c6e2a5db3d2a124813002c2c85f20cba0e3441a6836

Contents?: true

Size: 467 Bytes

Versions: 66

Compression:

Stored size: 467 Bytes

Contents

module Bmg
  module Sql
    module SubqueryAs
      include Expr

      def left
        self[1]
      end
      alias :subquery :left

      def right
        self[2]
      end

      def as_name
        self[2].last
      end

      def to_sql(buffer, dialect)
        left.to_sql(buffer, dialect)
        buffer << SPACE << AS << SPACE
        right.to_sql(buffer, dialect)
        buffer
      end

    end # module SubqueryAs
  end # module Sql
end # module Bmg

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.23.2 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.23.1 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.23.0 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.21.5 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.21.4 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.20.5 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.19.3 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.21.3 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.21.2 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.21.0 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.20.4 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.20.2 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.20.1 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.20.0 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.19.2 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.19.1 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.19.0 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.18.15 lib/bmg/sql/nodes/subquery_as.rb
bmg-0.18.14 lib/bmg/sql/nodes/subquery_as.rb