Sha256: 998e22a1c3b768431ccfd99b7563544f6cf35b28772123ed5989f59d876f0a22
Contents?: true
Size: 516 Bytes
Versions: 2
Compression:
Stored size: 516 Bytes
Contents
class Baza::InfoSqlite3 attr_reader :db def initialize require "sqlite3" require "tmpdir" @path = "#{Dir.tmpdir}/baza_sqlite3_test_#{Time.now.to_f.to_s.hash}.sqlite3" File.unlink(path) if File.exists?(@path) @db = Baza::Db.new( type: :sqlite3, path: @path, index_append_table_name: true, sql_to_error: true ) end def before @db.tables.list.each do |name, table| table.drop end end def after @db.close File.unlink(@path) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.15 | spec/info_sqlite3.rb |
baza-0.0.14 | spec/info_sqlite3.rb |