Sha256: 41c46dc36ff161289200ac0df0ce1311df5cf3f57a265c1e8aeab4633fa3da29

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

class Baza::InfoMysql2
  attr_reader :db

  def initialize(args = {})
    @db = Baza::Db.new({
      type: :mysql2,
      host: "localhost",
      user: "baza-test",
      pass: "password",
      db: "baza-test"
    }.merge(args))
  end

  def before
    @db.tables.list(&:drop)
  end

  def after
    @db.close
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
baza-0.0.38 spec/info_mysql2_example.rb
baza-0.0.37 spec/info_mysql2_example.rb
baza-0.0.36 spec/info_mysql2_example.rb
baza-0.0.35 spec/info_mysql2_example.rb
baza-0.0.34 spec/info_mysql2_example.rb
baza-0.0.33 spec/info_mysql2_example.rb