snippets/console.rb in wyrm-0.2.1 vs snippets/console.rb in wyrm-0.3.0
- old
+ new
@@ -1,10 +1,12 @@
require 'sequel'
require 'sqlite3'
require 'pathname'
require 'wyrm/dump_schema.rb'
-# pump = DbPump.new db, :positions, codec: :yaml
-dumper = DumpSchema.new db, '/tmp/test', pump: lambda{|_| DbPump.new db, nil, codec: :yaml}
-dumper = DumpSchema.new db, '/tmp/test', pump: ->(dump_schema){ DbPump.new dump_schema.src_db, nil, codec: :yaml}
+include Wyrm
+
+# pump = Wyrm::Pump.new db, :positions, codec: :yaml
+dumper = DumpSchema.new db, '/tmp/test', pump: lambda{|_| Pump.new db, nil, codec: :yaml}
+dumper = DumpSchema.new db, '/tmp/test', pump: ->(dump_schema){ Pump.new dump_schema.src_db, nil, codec: :yaml}
dumper.dump_tables