Class: ROM::SQL::SQLite::TypeBuilder

Inherits:
ROM::SQL::Schema::TypeBuilder show all
Defined in:
lib/rom/sql/extensions/sqlite/type_builder.rb

Constant Summary collapse

NO_TYPE =
EMPTY_STRING

Constants inherited from ROM::SQL::Schema::TypeBuilder

ROM::SQL::Schema::TypeBuilder::DECIMAL_REGEX

Instance Method Summary collapse

Methods inherited from ROM::SQL::Schema::TypeBuilder

[], #call, #map_decimal_type, #map_pk_type, register

Instance Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
16
# File 'lib/rom/sql/extensions/sqlite/type_builder.rb', line 10

def map_type(_, db_type, **_kw)
  if db_type.eql?(NO_TYPE)
    ROM::SQL::Types::SQLite::Any
  else
    super
  end
end