Sha256: cc051d2003ddbe29e702d458cb8242ba20001fd2792c3466f7841e3f1cb8baa2

Contents?: true

Size: 498 Bytes

Versions: 37

Compression:

Stored size: 498 Bytes

Contents

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

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

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

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
amalgalite-1.9.4-x64-mingw-ucrt lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.4-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.4-x64-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.4 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.1-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.1-x64-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.1-x64-mingw-ucrt lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.1 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.0-x64-mingw-ucrt lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.0-x64-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.9.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.8.0-x64-mingw-ucrt lib/amalgalite/type_maps/text_map.rb
amalgalite-1.8.0-x64-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.8.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.8.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.7.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.7.0-x64-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.7.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.6.3-x86-mingw32 lib/amalgalite/type_maps/text_map.rb