Sha256: 479a25379a01ea4a12144ed7175abbef1712941248e79cc69df0ef5ee4523365

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require 'sexpr'
module Bmg

  module Sql

    class NotSupportedError < Bmg::NotSupportedError; end

  end # module Sql

  def sql(table, type = Type::ANY)
    builder = Sql::Builder.new
    sexpr = builder.select_star_from(table)
    Sql::Relation.new(type, builder, sexpr).spied(main_spy)
  end
  module_function :sql

end # module Bmg
require_relative 'sql/ext/predicate'
require_relative 'sql/grammar'
require_relative 'sql/processor'
require_relative 'sql/builder'
require_relative 'sql/dialect'
require_relative 'sql/relation'
require_relative 'sql/support/from_clause_orderer'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sql.rb
bmg-0.23.2 lib/bmg/sql.rb
bmg-0.23.1 lib/bmg/sql.rb
bmg-0.23.0 lib/bmg/sql.rb