Class: ROM::SQL::MySQL::TypeBuilder
- Inherits:
-
Schema::TypeBuilder
- Object
- Schema::TypeBuilder
- ROM::SQL::MySQL::TypeBuilder
- Defined in:
- lib/rom/sql/extensions/mysql/type_builder.rb
Constant Summary
Constants inherited from Schema::TypeBuilder
Schema::TypeBuilder::DECIMAL_REGEX
Instance Method Summary collapse
Methods inherited from Schema::TypeBuilder
[], #call, #map_decimal_type, #map_pk_type, register
Instance Method Details
#map_db_type(db_type) ⇒ Object
22 23 24 |
# File 'lib/rom/sql/extensions/mysql/type_builder.rb', line 22 def map_db_type(db_type) self.class.db_type_mapping[db_type] end |
#map_type(ruby_type, db_type, **_) ⇒ Object
18 19 20 |
# File 'lib/rom/sql/extensions/mysql/type_builder.rb', line 18 def map_type(ruby_type, db_type, **_) map_db_type(db_type) || super end |