Method: Dataset::Database::Postgresql#initialize

Defined in:
lib/dataset/database/postgresql.rb

#initialize(database_spec, storage_path) ⇒ Postgresql

Returns a new instance of Postgresql.



8
9
10
11
12
13
14
# File 'lib/dataset/database/postgresql.rb', line 8

def initialize(database_spec, storage_path)
  @database = database_spec[:database]
  @username = database_spec[:username]
  @password = database_spec[:password]
  @storage_path = storage_path
  FileUtils.mkdir_p(@storage_path)
end