Class: Arc::DataStores::ObjectDefinitions::Schema
- Inherits:
-
Object
- Object
- Arc::DataStores::ObjectDefinitions::Schema
- Includes:
- Collector
- Defined in:
- lib/arc/data_stores/abstract/object_definitions.rb
Direct Known Subclasses
Instance Method Summary collapse
- #execute_ddl(ddl) ⇒ Object
-
#initialize(store) ⇒ Schema
constructor
A new instance of Schema.
Constructor Details
#initialize(store) ⇒ Schema
Returns a new instance of Schema.
9 10 11 |
# File 'lib/arc/data_stores/abstract/object_definitions.rb', line 9 def initialize store @data_store = store end |
Instance Method Details
#execute_ddl(ddl) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/arc/data_stores/abstract/object_definitions.rb', line 12 def execute_ddl ddl case ddl when Array ddl.each { |s| @data_store.execute s } when String execute_ddl ddl.split(';') end end |