Class: Fx::Configuration
- Inherits:
-
Object
- Object
- Fx::Configuration
- Defined in:
- lib/fx/configuration.rb
Overview
F(x)'s configuration object.
Instance Attribute Summary collapse
-
#database ⇒ Object
The F(x) database adapter instance to use when executing SQL.
-
#dump_functions_at_beginning_of_schema ⇒ Object
Prioritizes the order in the schema.rb of functions before other statements in order to make directly schema load work when using functions in statements below, i.e.: default column values.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
43 44 45 46 |
# File 'lib/fx/configuration.rb', line 43 def initialize @database = Fx::Adapters::Postgres.new @dump_functions_at_beginning_of_schema = false end |
Instance Attribute Details
#database ⇒ Object
The F(x) database adapter instance to use when executing SQL.
Defaults to an instance of Adapters::Postgres
33 34 35 |
# File 'lib/fx/configuration.rb', line 33 def database @database end |
#dump_functions_at_beginning_of_schema ⇒ Object
Prioritizes the order in the schema.rb of functions before other statements in order to make directly schema load work when using functions in statements below, i.e.: default column values.
Defaults to false
41 42 43 |
# File 'lib/fx/configuration.rb', line 41 def dump_functions_at_beginning_of_schema @dump_functions_at_beginning_of_schema end |