Sha256: 3982c4a34b56b38f6f1c413066e9f2e1b497f28a2a35604587b7823e0ed68c6d
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
class Baza::InfoMysql attr_reader :db def initialize if RUBY_ENGINE == "jruby" @db = Baza::Db.new( type: :mysql, host: "localhost", user: "shippa", db: "baza" ) else @db = Baza::Db.new( type: :mysql, subtype: :mysql2, host: "localhost", user: "shippa", db: "baza" ) end end def before @db.tables.list.each do |name, table| table.drop end end def after @db.close end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.17 | spec/info_mysql_shippable.rb |
baza-0.0.16 | spec/info_mysql_shippable.rb |