Sha256: d014072702cd516e1ad5d3a8076b782ee6dd33fb57507f813c909873b1c4fb5b

Contents?: true

Size: 288 Bytes

Versions: 6

Compression:

Stored size: 288 Bytes

Contents

class Baza::InfoMysql
  attr_reader :db

  def initialize(args = {})
    @db = Baza::Db.new({
      type: :mysql,
      host: "localhost",
      user: "travis",
      db: "baza"
    }.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.26 spec/info_mysql_travis.rb
baza-0.0.25 spec/info_mysql_travis.rb
baza-0.0.24 spec/info_mysql_travis.rb
baza-0.0.23 spec/info_mysql_travis.rb
baza-0.0.22 spec/info_mysql_travis.rb
baza-0.0.21 spec/info_mysql_travis.rb