Sha256: b605ce85f3bd251ee0d37074ca43975962fe8489a3dfd146ddb29c885e9087f5

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

module Alf
  module Sql
    module NameIntro
      include Expr

      def table_name
        self[1]
      end

      def subquery
        self[2]
      end

      def to_sql(buffer = "")
        table_name.to_sql(buffer)
        buffer << SPACE << AS << SPACE
        subquery.to_sql(buffer, true)
        buffer
      end

    end # module WithSpec
  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/nodes/name_intro.rb
alf-sql-0.16.2 lib/alf/sql/nodes/name_intro.rb
alf-sql-0.16.1 lib/alf/sql/nodes/name_intro.rb
alf-sql-0.16.0 lib/alf/sql/nodes/name_intro.rb
alf-sql-0.15.0 lib/alf/sql/nodes/name_intro.rb