Class: ROM::SQL::MySQL::TypeBuilder

Inherits:
Schema::TypeBuilder show all
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



20
21
22
# File 'lib/rom/sql/extensions/mysql/type_builder.rb', line 20

def map_db_type(db_type)
  self.class.db_type_mapping[db_type]
end

#map_type(ruby_type, db_type, **_) ⇒ Object



16
17
18
# File 'lib/rom/sql/extensions/mysql/type_builder.rb', line 16

def map_type(ruby_type, db_type, **_)
  map_db_type(db_type) || super
end