Method: Sequel::Postgres::DatabaseMethods#add_conversion_proc

Defined in:
lib/sequel/adapters/shared/postgres.rb

#add_conversion_proc(oid, callable = nil, &block) ⇒ Object

Set a conversion proc for the given oid. The callable can be passed either as a argument or a block.


309
310
311
# File 'lib/sequel/adapters/shared/postgres.rb', line 309

def add_conversion_proc(oid, callable=nil, &block)
  conversion_procs[oid] = callable || block
end