Sha256: 0132d7012698845565ac3d8c7c353b8d1176b0679867848e7e76e141e30a2efa

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

module Alf
  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 to_sql(buffer = "")
        self[1].to_sql(buffer)
        buffer << '.'
        self[2].to_sql(buffer)
        buffer
      end

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