Sha256: 59d3011ca8b47eea14bfe8a1234df6271a48af03b6ff4cf342796ca7e017a19b

Contents?: true

Size: 615 Bytes

Versions: 39

Compression:

Stored size: 615 Bytes

Contents

module Bmg
  module Sql
    #
    # [:qualified_name,
    #   [:range_var_name `qualifier`],
    #   [:column_name, `as_name`] ]
    #
    module QualifiedName
      include Expr

      def qualifier
        self[1].qualifier
      end

      def as_name
        last.as_name
      end

      def would_be_name
        as_name
      end

      def is_computed?
        false
      end

      def to_sql(buffer, dialect)
        self[1].to_sql(buffer, dialect)
        buffer << '.'
        self[2].to_sql(buffer, dialect)
        buffer
      end

    end # module QualifiedName
  end # module Sql
end # module Bmg

Version data entries

39 entries across 39 versions & 1 rubygems

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