Class: Arfi::SqlFunctionLoader
- Inherits:
-
Object
- Object
- Arfi::SqlFunctionLoader
- Defined in:
- lib/arfi/sql_function_loader.rb
Overview
Arfi::SqlFunctionLoader is a class which loads user defined SQL functions into database.
Class Method Summary collapse
-
.load!(task_name: nil) ⇒ nil, void
Arfi::SqlFunctionLoader.load!-> (nil | void).
Class Method Details
.load!(task_name: nil) ⇒ nil, void
Arfi::SqlFunctionLoader.load! -> (nil | void)
Loads user defined SQL functions into database.
14 15 16 17 18 19 20 21 |
# File 'lib/arfi/sql_function_loader.rb', line 14 def load!(task_name: nil) self.task_name = task_name[/([^:]+$)/] if task_name return puts 'No SQL files found. Skipping db population with ARFI' unless sql_files.any? raise_unless_supported_adapter handle_db_population conn.close end |