Sha256: c46e6b6098141d96f3d804f941d5d31dabf8ba492787fa119e2023f4f236eb93

Contents?: true

Size: 287 Bytes

Versions: 11

Compression:

Stored size: 287 Bytes

Contents

class Baza::InfoMysql
  attr_reader :db

  def initialize(args = {})
    @db = Baza::Db.new({
      type: :mysql,
      host: "localhost",
      user: "build",
      db: "baza"
    }.merge(args))
  end

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

  def after
    @db.close
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
baza-0.0.37 spec/info_mysql_peak_flow.rb
baza-0.0.36 spec/info_mysql_peak_flow.rb
baza-0.0.35 spec/info_mysql_peak_flow.rb
baza-0.0.34 spec/info_mysql_peak_flow.rb
baza-0.0.33 spec/info_mysql_peak_flow.rb
baza-0.0.32 spec/info_mysql_peak_flow.rb
baza-0.0.31 spec/info_mysql_travis.rb
baza-0.0.30 spec/info_mysql_travis.rb
baza-0.0.29 spec/info_mysql_travis.rb
baza-0.0.28 spec/info_mysql_travis.rb
baza-0.0.27 spec/info_mysql_travis.rb