Sha256: 66a3b28d7533d1c4580aecd9a7a98af111d8f95688d8ce80c4f679cfa7a31246

Contents?: true

Size: 932 Bytes

Versions: 16

Compression:

Stored size: 932 Bytes

Contents

# frozen_string_literal: true

module Combustion
  module Databases
  end

  class Database
    DEFAULT_OPTIONS = {
      :database_reset   => true,
      :load_schema      => true,
      :database_migrate => true
    }.freeze

    def self.setup(options = {})
      options = DEFAULT_OPTIONS.merge options

      Combustion::Database::Reset.call      if options[:database_reset]
      Combustion::Database::LoadSchema.call if options[:load_schema]
      Combustion::Database::Migrate.call    if options[:database_migrate]
    end
  end
end

require "combustion/databases/base"
require "combustion/databases/firebird"
require "combustion/databases/mysql"
require "combustion/databases/oracle"
require "combustion/databases/postgresql"
require "combustion/databases/sql_server"
require "combustion/databases/sqlite"

require "combustion/database/load_schema"
require "combustion/database/migrate"
require "combustion/database/reset"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
combustion-1.5.0 lib/combustion/database.rb
combustion-1.4.0 lib/combustion/database.rb
combustion-1.3.7 lib/combustion/database.rb
combustion-1.3.6 lib/combustion/database.rb
combustion-1.3.5 lib/combustion/database.rb
combustion-1.3.4 lib/combustion/database.rb
combustion-1.3.3 lib/combustion/database.rb
combustion-1.3.2 lib/combustion/database.rb
combustion-1.3.1 lib/combustion/database.rb
combustion-1.3.0 lib/combustion/database.rb
combustion-1.2.0 lib/combustion/database.rb
combustion-1.1.2 lib/combustion/database.rb
combustion-1.1.1 lib/combustion/database.rb
combustion-1.1.0 lib/combustion/database.rb
combustion-1.0.0 lib/combustion/database.rb
combustion-0.9.1 lib/combustion/database.rb