module Sequel::Plugins::PgRow::ClassMethods

Public Instance Methods

register_row_type() click to toggle source

Register the model’s row type with the database.

   # File lib/sequel/plugins/pg_row.rb
61 def register_row_type
62   table = dataset.first_source_table
63   db.register_row_type(table, :converter=>self, :typecaster=>method(:new))
64   db.instance_variable_get(:@schema_type_classes)[:"pg_row_#{table}"] = self
65 end