Sha256: 2258e586bff47cc2653ac2adf8297c7b14617b609dd5909cdfa8d4f569502b67

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

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

require 'yugabyte_ysql' unless defined?( YugabyteYSQL )

class YugabyteYSQL::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

3 entries across 3 versions & 1 rubygems

Version Path
yugabyte_ysql-0.3 lib/pg/type_map_by_column.rb
yugabyte_ysql-0.2 lib/pg/type_map_by_column.rb
yugabyte_ysql-0.1 lib/pg/type_map_by_column.rb