Method: Sequel::Postgres::DatabaseMethods#views

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

#views(opts = OPTS) ⇒ Object

Array of symbols specifying view names in the current database.

Options:

:materialized

Return materialized views

:qualify

Return the views as Sequel::SQL::QualifiedIdentifier instances, using the schema the view is located in as the qualifier.

:schema

The schema to search

:server

The server to use


857
858
859
860
# File 'lib/sequel/adapters/shared/postgres.rb', line 857

def views(opts=OPTS)
  relkind = opts[:materialized] ? 'm' : 'v'
  pg_class_relname(relkind, opts)
end