Class for row-valued/composite types that are treated as arrays. By default, this is only used for generic PostgreSQL record types, as registered types use HashRow by default.
Public Class methods
Create a subclass associated with a specific database type. This is done so that instances of this subclass are automatically casted to the database type when literalizing.
# File lib/sequel/extensions/pg_row.rb, line 112 def self.subclass(db_type) Class.new(self) do @db_type = db_type end end
Public Instance methods
Return the instance's database type, or the class's database type if the instance has not overridden it.
# File lib/sequel/extensions/pg_row.rb, line 124 def db_type @db_type || self.class.db_type end