Class: Amalgalite::TypeMaps::TextMap
- Inherits:
-
Amalgalite::TypeMap
- Object
- Amalgalite::TypeMap
- Amalgalite::TypeMaps::TextMap
- Defined in:
- lib/amalgalite/type_maps/text_map.rb
Overview
An Amalagliate TypeMap that converts both bind parameters and result parameters to a String, no matter what.
Instance Method Summary collapse
Instance Method Details
#bind_type_of(obj) ⇒ Object
13 14 15 |
# File 'lib/amalgalite/type_maps/text_map.rb', line 13 def bind_type_of( obj ) return ::Amalgalite::SQLite3::Constants::DataType::TEXT end |
#result_value_of(delcared_type, value) ⇒ Object
17 18 19 |
# File 'lib/amalgalite/type_maps/text_map.rb', line 17 def result_value_of( delcared_type, value ) return value.to_s end |