Sha256: 3d99e3e80690a32bf402137e5991e18b822632bd7247fbf2498824ebc6db2330

Contents?: true

Size: 496 Bytes

Versions: 66

Compression:

Stored size: 496 Bytes

Contents

module Bmg
  module Sql
    module NativeTableAs
      include Expr

      def left
        self[1]
      end

      def right
        self[2]
      end

      def native_table
        self[1].last
      end

      def as_name
        self[2].last
      end

      def to_sql(buffer, dialect)
        buffer << self[1].to_s
        buffer << SPACE << AS << SPACE
        self[2].to_sql(buffer, dialect)
        buffer
      end

    end # module NativeTableAs
  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/native_table_as.rb
bmg-0.23.2 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.23.1 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.23.0 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.21.5 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.21.4 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.20.5 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.19.3 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.21.3 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.21.2 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.21.0 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.20.4 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.20.2 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.20.1 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.20.0 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.19.2 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.19.1 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.19.0 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.18.15 lib/bmg/sql/nodes/native_table_as.rb
bmg-0.18.14 lib/bmg/sql/nodes/native_table_as.rb