Sha256: b73fdae14b66696c7e1052d7922ed8368a6fbeab450054b4c093863a893f15a7

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

#--
# Copyright (c) 2023 Jeremy Hinegardner
# All rights reserved.  See LICENSE and/or COPYING for details.
#++
#

module ::Libsql::TypeMaps
  ##
  # An Amalagliate TypeMap that converts both bind parameters and result
  # parameters to a String, no matter what.
  #
  class TextMap < ::Libsql::TypeMap
    def bind_type_of( obj )
      return ::Libsql::SQLite3::Constants::DataType::TEXT
    end

    def result_value_of( delcared_type, value )
      return value.to_s
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libsql-0.1.0-x64-mingw-ucrt lib/libsql/type_maps/text_map.rb
libsql-0.1.0-x64-mingw32 lib/libsql/type_maps/text_map.rb
libsql-0.1.0-x86-mingw32 lib/libsql/type_maps/text_map.rb
libsql-0.1.0 lib/libsql/type_maps/text_map.rb