class Snowglobe::Database

Constants

ADAPTER_NAME

Attributes

config[R]

Public Class Methods

new() click to toggle source
# File lib/snowglobe/database.rb, line 9
def initialize
  @config = DatabaseConfiguration.for(
    Snowglobe.configuration.database_name,
    ADAPTER_NAME,
  )
end

Public Instance Methods

adapter_class() click to toggle source
# File lib/snowglobe/database.rb, line 24
def adapter_class
  config.adapter_class
end
adapter_name() click to toggle source
# File lib/snowglobe/database.rb, line 20
def adapter_name
  config.adapter
end
name() click to toggle source
# File lib/snowglobe/database.rb, line 16
def name
  config.database
end