Class: DbdocEngine::DbDesignDynamicTablesService
- Inherits:
-
Object
- Object
- DbdocEngine::DbDesignDynamicTablesService
- Defined in:
- app/services/dbdoc_engine/db_design_dynamic_tables_service.rb
Instance Method Summary collapse
-
#create_table ⇒ Object
Create new table.
-
#initialize(params) ⇒ DbDesignDynamicTablesService
constructor
A new instance of DbDesignDynamicTablesService.
-
#update_table(table) ⇒ Object
Update existing table.
Constructor Details
#initialize(params) ⇒ DbDesignDynamicTablesService
Returns a new instance of DbDesignDynamicTablesService.
7 8 9 |
# File 'app/services/dbdoc_engine/db_design_dynamic_tables_service.rb', line 7 def initialize(params) @params = params end |
Instance Method Details
#create_table ⇒ Object
Create new table.
12 13 14 |
# File 'app/services/dbdoc_engine/db_design_dynamic_tables_service.rb', line 12 def create_table DbDesignDynamicTableCommands.create_with_columns(@params) end |
#update_table(table) ⇒ Object
Update existing table.
17 18 19 |
# File 'app/services/dbdoc_engine/db_design_dynamic_tables_service.rb', line 17 def update_table(table) DbDesignDynamicTableCommands.update_with_columns(table, @params) end |