Method: Sequel::Postgres::DatabaseMethods#create_language

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

#create_language(name, opts = OPTS) ⇒ Object

Create the procedural language in the database. Arguments:

name

Name of the procedural language (e.g. plpgsql)

opts

options hash:

:handler

The name of a previously registered function used as a call handler for this language.

:replace

Replace the installed language if it already exists (on PostgreSQL 9.0+).

:trusted

Marks the language being created as trusted, allowing unprivileged users to create functions using this language.

:validator

The name of previously registered function used as a validator of functions defined in this language.



203
204
205
# File 'lib/sequel/adapters/shared/postgres.rb', line 203

def create_language(name, opts=OPTS)
  self << create_language_sql(name, opts)
end