Module: Datafactory::Dataflow
- Includes:
- FactoryGirl::Syntax::Methods
- Defined in:
- lib/datafactory/dataflow.rb
Constant Summary collapse
- CONNECTORS =
[ Connectors::ActiveRecordConnector, Connectors::MongoidConnector, Connectors::SequelConnector ]
Instance Method Summary collapse
- #create_db(domain) ⇒ Object
- #down ⇒ Object
- #drop_db(domain) ⇒ Object
- #up ⇒ Object
- #use(domain, opts = {migrate:true}) ⇒ Object
Instance Method Details
#create_db(domain) ⇒ Object
27 28 29 |
# File 'lib/datafactory/dataflow.rb', line 27 def create_db(domain) connector(domain).create_db end |
#down ⇒ Object
33 |
# File 'lib/datafactory/dataflow.rb', line 33 def down; end |
#drop_db(domain) ⇒ Object
23 24 25 |
# File 'lib/datafactory/dataflow.rb', line 23 def drop_db(domain) connector(domain).drop_db end |
#up ⇒ Object
32 |
# File 'lib/datafactory/dataflow.rb', line 32 def up; end |
#use(domain, opts = {migrate:true}) ⇒ Object
19 20 21 |
# File 'lib/datafactory/dataflow.rb', line 19 def use(domain, opts={migrate:true}) connector(domain).setup(opts) end |