Sha256: d0b10b3f625417ffd278f3f296b73d7eb8a5740b2373325b2ad37b1253f7c067

Contents?: true

Size: 410 Bytes

Versions: 66

Compression:

Stored size: 410 Bytes

Contents

module Bmg
  module Sql
    module NameIntro
      include Expr

      def table_name
        self[1]
      end

      def subquery
        self[2]
      end

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

    end # module WithSpec
  end # module Sql
end # module Bmg

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
bmg-0.18.13 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.12 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.11 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.10 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.9 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.8 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.7 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.6 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.5 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.4 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.3 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.2 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.1 lib/bmg/sql/nodes/name_intro.rb
bmg-0.18.0 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.8 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.7 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.6 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.5 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.4 lib/bmg/sql/nodes/name_intro.rb
bmg-0.17.3 lib/bmg/sql/nodes/name_intro.rb