Class: Libsql::TypeMaps::TextMap
- Inherits:
-
Libsql::TypeMap
- Object
- Libsql::TypeMap
- Libsql::TypeMaps::TextMap
- Defined in:
- lib/libsql/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/libsql/type_maps/text_map.rb', line 13 def bind_type_of( obj ) return ::Libsql::SQLite3::Constants::DataType::TEXT end |
#result_value_of(delcared_type, value) ⇒ Object
17 18 19 |
# File 'lib/libsql/type_maps/text_map.rb', line 17 def result_value_of( delcared_type, value ) return value.to_s end |