lib/wyrm/db_pump.rb in wyrm-0.1.2 vs lib/wyrm/db_pump.rb in wyrm-0.1.3
- old
+ new
@@ -2,11 +2,11 @@
require 'yaml'
require 'ostruct'
require 'logger'
require 'fastandand'
-Sequel.extension :migration, :schema_dumper, :pagination
+Sequel.extension :migration
# TODO possibly use Gem::Package::TarWriter to write tar files
# TODO when restoring, could use a SizeQueue to make sure the db is kept busy
# TODO need to version the dumps, or something like that.
@@ -43,9 +43,10 @@
def db=( other_db )
@primary_keys = nil
@table_dataset = nil
@db = other_db
+ @db.extension :pagination
end
def dry_run?; dry_run; end
class RespondsTo