Sha256: 3d910407daae45e04215bdb41fce28a354c1761cf63ad20c9cfbb4361f719911

Contents?: true

Size: 331 Bytes

Versions: 32

Compression:

Stored size: 331 Bytes

Contents

require_relative 'database_adapter'

class Sqlite3Adapter < DatabaseAdapter
  def database_configuration
    {
      adapter: 'sqlite3',
      database: ':memory:'
    }
  end

  def reset_database!
    ActiveRecord::Base.connection.execute("select 'drop table ' || name || ';' from sqlite_master where type = 'table';")
  end
end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
microscope-1.1.1 spec/support/macros/database/sqlite3_adapter.rb
microscope-1.1.0 spec/support/macros/database/sqlite3_adapter.rb
emojimmy-0.3 spec/support/macros/database/sqlite3_adapter.rb
microscope-1.0.1 spec/support/macros/database/sqlite3_adapter.rb
encore-0.2.3 spec/support/macros/database/sqlite3_adapter.rb
microscope-1.0.0 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.6.2 spec/support/macros/database/sqlite3_adapter.rb
encore-0.2.2 spec/support/macros/database/sqlite3_adapter.rb
encore-0.2.1 spec/support/macros/database/sqlite3_adapter.rb
encore-0.2 spec/support/macros/database/sqlite3_adapter.rb
encore-0.1 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.6.1 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.6 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.10 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.9 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.8 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.7 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.6.1 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.6 spec/support/macros/database/sqlite3_adapter.rb
microscope-0.5.5 spec/support/macros/database/sqlite3_adapter.rb