Class: Dbtools::Postgres

Inherits:
Thor
  • Object
show all
Defined in:
lib/tasks/postgres.rb

Instance Method Summary collapse

Instance Method Details

#load_functions(database_url) ⇒ Object



10
11
12
13
14
15
# File 'lib/tasks/postgres.rb', line 10

def load_functions(database_url)
  db = check_adapter(database_url)
  # All functions are located in this directory. 
  db.execute_files(Dbtools::Constants::PLSQL_FUNCTIONS_DIR)
  db.close
end