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

Inherits:
Schema::TypeBuilder
  • Object
show all
Defined in:
lib/rom/sql/extensions/mysql/type_builder.rb

Instance Method Summary collapse

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