Method: Wgit::Database.new

Defined in:
lib/wgit/database/database.rb

.new(connection_string = nil) ⇒ Object

Initializes a DatabaseAdapter instance. Is an alias for: Wgit::Database.adapter_class.new(connection_string)

Parameters:

  • connection_string (String) (defaults to: nil)

    The connection string needed to connect to the database.

Raises:

  • (StandardError)

    If a connection string isn't provided, either as a parameter or via the environment.



30
31
32
# File 'lib/wgit/database/database.rb', line 30

def self.new(connection_string = nil)
  Wgit::Database.adapter_class.new(connection_string)
end