Method: Sequel::Postgres::DatabaseMethods#tables
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
#tables(opts = OPTS, &block) ⇒ Object
Array of symbols specifying table names in the current database. The dataset used is yielded to the block if one is provided, otherwise, an array of symbols of table names is returned.
Options:
- :qualify
-
Return the tables as Sequel::SQL::QualifiedIdentifier instances, using the schema the table is located in as the qualifier.
- :schema
-
The schema to search
- :server
-
The server to use
531 532 533 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 531 def tables(opts=OPTS, &block) pg_class_relname('r', opts, &block) end |