.sqlschema
Onesimus extension
Show catalog schema.
Synopsis
.sqlschema [table=<table>] [catalog=<catalog>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Shows every column of the tables in the public schema of the catalog database with its data type, ordered by table and column position; table= restricts the output to one table. An unknown table yields an empty list, a name that is not a plain identifier is rejected. The command only reads and helps writing queries for .sql.
Onesimus extension: Bareos does not know the command and answers “.sqlschema: is an invalid command.”. Besides .sqlschema in its Command ACL the console needs .sql or sqlquery, as for any raw catalog access.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
table= | string | Table name. | |||
catalog= | resource | from .catalogs | Catalog name. |
Examples
Columns and data types of the pool table:
.sqlschema table=pool
The columns of every catalog table:
.sqlschema