Sha256: 6b0e2f51bf9ac37f17c84b1618979b113fd415b5933ad3eb1d275672c36dade8

Contents?: true

Size: 528 Bytes

Versions: 26

Compression:

Stored size: 528 Bytes

Contents

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

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

26 entries across 26 versions & 1 rubygems

Version Path
amalgalite-1.1.2-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.1.2-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.1.2 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.1.1-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.1.1-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.1.1 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.0.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.0.0-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-1.0.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.15.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.15.0-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.15.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.12.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.12.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.12.0-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.11.0-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.11.0-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.10.2-x86-mswin32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.10.2-x86-mingw32 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.10.1-x86-mswin32 lib/amalgalite/type_maps/text_map.rb