lib/bmg.rb in bmg-0.21.5 vs lib/bmg.rb in bmg-0.23.0

- old
+ new

@@ -22,10 +22,20 @@ def csv(path, options = {}, type = Type::ANY) Reader::Csv.new(type, path, options).spied(main_spy) end module_function :csv + def json(path, options = {}, type = Type::ANY) + in_memory(path.load.map{|tuple| TupleAlgebra.symbolize_keys(tuple) }) + end + module_function :json + + def yaml(path, options = {}, type = Type::ANY) + in_memory(path.load.map{|tuple| TupleAlgebra.symbolize_keys(tuple) }) + end + module_function :yaml + def excel(path, options = {}, type = Type::ANY) Reader::Excel.new(type, path, options).spied(main_spy) end module_function :excel @@ -54,9 +64,11 @@ require_relative 'bmg/relation/empty' require_relative 'bmg/relation/in_memory' require_relative 'bmg/relation/spied' require_relative 'bmg/relation/materialized' require_relative 'bmg/relation/proxy' + + require_relative 'bmg/database' # Deprecated Leaf = Relation::InMemory end