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