use
Use specific catalog.
Synopsis
use [catalog=<catalog>] [<catalog-name>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Sets the catalog the session works with. All following catalog commands such as list, query or sqlquery use it until the session ends or another one is chosen. An open catalog connection is closed and the new one opened; configuration and other sessions are not affected.
Without catalog= the Director selects: with only one permitted catalog it takes that one, with several it asks (in GUI mode it takes the first). An unknown name, a name without the catalog= keyword and catalog without a value are treated like a missing catalog=.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
catalog= | resource | from .catalogs | Catalog name. | ||
<catalog-name> | resource | from .catalogs | positional | Catalog name without key. |
Examples
Work with the catalog MyCatalog for the rest of the session:
use catalog=MyCatalog