lib/ardb/adapter/base.rb in ardb-0.9.0 vs lib/ardb/adapter/base.rb in ardb-0.10.0
- old
+ new
@@ -15,9 +15,17 @@
def create_db(*args); raise NotImplementedError; end
def drop_db(*args); raise NotImplementedError; end
def drop_tables(*args); raise NotImplementedError; end
+ def load_schema
+ # silence STDOUT
+ current_stdout = $stdout.dup
+ $stdout = File.new('/dev/null', 'w')
+ load Ardb.config.schema_path
+ $stdout = current_stdout
+ end
+
def ==(other_adapter)
self.class == other_adapter.class
end
end