Sha256: 1ea5f135cfb575d1c87a15fb0fd8bc49b1caff8485b2cd315a01a89456d7bcb9

Contents?: true

Size: 483 Bytes

Versions: 66

Compression:

Stored size: 483 Bytes

Contents

module Bmg
  module Sql
    module WithSpec
      include Expr

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

      def to_hash
        hash = {}
        each_child do |child|
          hash[child.table_name.value] = child.subquery
        end
        hash
      end

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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sql/nodes/with_spec.rb
bmg-0.23.2 lib/bmg/sql/nodes/with_spec.rb
bmg-0.23.1 lib/bmg/sql/nodes/with_spec.rb
bmg-0.23.0 lib/bmg/sql/nodes/with_spec.rb
bmg-0.21.5 lib/bmg/sql/nodes/with_spec.rb
bmg-0.21.4 lib/bmg/sql/nodes/with_spec.rb
bmg-0.20.5 lib/bmg/sql/nodes/with_spec.rb
bmg-0.19.3 lib/bmg/sql/nodes/with_spec.rb
bmg-0.21.3 lib/bmg/sql/nodes/with_spec.rb
bmg-0.21.2 lib/bmg/sql/nodes/with_spec.rb
bmg-0.21.0 lib/bmg/sql/nodes/with_spec.rb
bmg-0.20.4 lib/bmg/sql/nodes/with_spec.rb
bmg-0.20.2 lib/bmg/sql/nodes/with_spec.rb
bmg-0.20.1 lib/bmg/sql/nodes/with_spec.rb
bmg-0.20.0 lib/bmg/sql/nodes/with_spec.rb
bmg-0.19.2 lib/bmg/sql/nodes/with_spec.rb
bmg-0.19.1 lib/bmg/sql/nodes/with_spec.rb
bmg-0.19.0 lib/bmg/sql/nodes/with_spec.rb
bmg-0.18.15 lib/bmg/sql/nodes/with_spec.rb
bmg-0.18.14 lib/bmg/sql/nodes/with_spec.rb