Sha256: eb5e99465c185587027f4334483f72b4a2396cc344c9b61490626abb1af7c8eb

Contents?: true

Size: 455 Bytes

Versions: 26

Compression:

Stored size: 455 Bytes

Contents

module Bmg
  module Sql
    module CrossJoin
      include Expr

      def join?
        true
      end

      def left
        self[1]
      end

      def right
        self[2]
      end

      def to_sql(buffer, dialect)
        each_child do |child, index|
          buffer << COMMA << SPACE unless index == 0
          child.to_sql(buffer, dialect)
        end
        buffer
      end

    end # module CrossJoin
  end # module Sql
end # module Bmg

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
bmg-0.14.0 lib/bmg/sql/nodes/cross_join.rb
bmg-0.13.0 lib/bmg/sql/nodes/cross_join.rb
bmg-0.12.0 lib/bmg/sql/nodes/cross_join.rb
bmg-0.11.0 lib/bmg/sql/nodes/cross_join.rb
bmg-0.10.1 lib/bmg/sql/nodes/cross_join.rb
bmg-0.10.0 lib/bmg/sql/nodes/cross_join.rb