Sha256: 8f1f4d12be7052ca23ff70af3fa846f23f30e9c7e9428dd8e9f18dc8b3a46f13

Contents?: true

Size: 550 Bytes

Versions: 34

Compression:

Stored size: 550 Bytes

Contents

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

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

34 entries across 34 versions & 1 rubygems

Version Path
amalgalite-0.1.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.2.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.2.2 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.2.3 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.2.1 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.2.4 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.4.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.4.2 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.4.1 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.4.2-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.5.0-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.5.1 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.5.1-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.5.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.6.0-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.6.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.7.0 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.7.0-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.7.3-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb
amalgalite-0.7.1-x86-mswin32-60 lib/amalgalite/type_maps/text_map.rb