Class: Trinamo::OptionConverter
- Inherits:
-
BaseConverter
- Object
- BaseConverter
- Trinamo::OptionConverter
- Defined in:
- lib/trinamo/converter/option_converter.rb
Instance Attribute Summary
Attributes inherited from BaseConverter
Instance Method Summary collapse
Methods inherited from BaseConverter
Constructor Details
This class inherits a constructor from Trinamo::BaseConverter
Instance Method Details
#convert ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/trinamo/converter/option_converter.rb', line 5 def convert = @ddl[:options] ? @ddl[:options] : {} queries = .keys.map do |key| [key] ? "SET #{key} = #{[key]};" : nil end queries.compact.join("\n") end |