Sha256: eb40df6ff99cba25c3ae662dee1b8ba54873bd78ca5036c081cd17ee0d23117e
Contents?: true
Size: 331 Bytes
Versions: 4
Compression:
Stored size: 331 Bytes
Contents
require 'sqldump' require 'dbi' class Object def create_dummy_database(database = '/tmp/foo.sqlite') File.delete(database) if File.exists?(database) dbh = DBI.connect("DBI:SQLite3:#{database}") dbh.do("CREATE TABLE numbers (number int);") dbh.do("INSERT INTO numbers (number) VALUES (42);") dbh end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sqldump-0.0.4 | spec/spec_helper.rb |
sqldump-0.0.3 | spec/spec_helper.rb |
sqldump-0.0.2 | spec/spec_helper.rb |
sqldump-0.0.1 | spec/spec_helper.rb |