Method: Sequel::Postgres::Database#call_procedure
- Defined in:
- lib/sequel/adapters/postgres.rb
#call_procedure(name, *args) ⇒ Object
Call a procedure with the given name and arguments. Returns a hash if the procedure returns a value, and nil otherwise. Example:
DB.call_procedure(:foo, 1, 2)
# CALL foo(1, 2)
204 205 206 |
# File 'lib/sequel/adapters/postgres.rb', line 204 def call_procedure(name, *args) dataset.send(:call_procedure, name, args) end |