Class | Amalgalite::TypeMaps::DefaultMap |
In: |
lib/amalgalite/type_maps/default_map.rb
lib/amalgalite/type_maps/default_map.rb |
Parent: | Object |
An Amalgalite::TypeMap that does its best to convert between Ruby classes and known SQL data types.
Upon instantiation, DefaultMap generates a conversion map to try to figure out the best way to convert between populate SQL ‘types’ and ruby classes
A straight logical mapping (for me at least) of basic Ruby classes to SQLite types, if nothing can be found then default to TEXT.
A straight logical mapping (for me at least) of basic Ruby classes to SQLite types, if nothing can be found then default to TEXT.
Map the incoming value to an outgoing value. For some incoming values, there will be no change, but for some (i.e. Dates and Times) there is some conversion