Sha256: a99f15f04e2eff133aeeed49b7539a178dc9e7e847e8d273993462d0c34b11e7

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

# -*- ruby -*-
# frozen_string_literal: true

require 'ysql' unless defined?( YSQL )

class YSQL::TypeMapByColumn
	# Returns the type oids of the assigned coders.
	def oids
		coders.map{|c| c.oid if c }
	end

	def inspect
		type_strings = coders.map{|c| c ? c.inspect_short : 'nil' }
		"#<#{self.class} #{type_strings.join(' ')}>"
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yugabytedb-ysql-0.7 lib/ysql/type_map_by_column.rb
yugabytedb-ysql-0.6 lib/ysql/type_map_by_column.rb
yugabytedb-ysql-0.5 lib/ysql/type_map_by_column.rb
yugabytedb-ysql-0.4 lib/ysql/type_map_by_column.rb
yugabytedb-ysql-0.3 lib/pg/type_map_by_column.rb