viewNameconstno test imports itconst viewName: (t: { readonly words: readonly string[]; }, naming: Naming) => stringThe name of a view: the table's own, written without the schema's words.
The view of a table (commons data 0014-sql-protected-access FR-002 to FR-005, FR-008, FR-011): its name and columns, what governance says must be hidden in it, the old name of a column that was renamed, its comment, the rights of the roles that read and write it and, where the engine has no updatable views, the triggers that make it writable. It is written from a plain description of the table, so that it is the same whether it is made with the schema or around a step that changes the table.
viewNameconstno test imports itconst viewName: (t: { readonly words: readonly string[]; }, naming: Naming) => stringThe name of a view: the table's own, written without the schema's words.
viewRefconstno test imports itconst viewRef: (t: { readonly words: readonly string[]; }, c: ViewContext) => stringThe reference to a view, qualified by the schema of the views where the dialect has schemas.
viewStatementsfunctionno test imports itfunction viewStatements(t: ViewTable, c: ViewContext): { readonly statements: readonly Statement[]; readonly errors: readonly PhysicalError[]; }The statements that make a view, in the order they are run: it is dropped, made again, described and granted.
| Parameter | What it is |
|---|---|
t | the table |
c | what the view is made with |
Returns: the statements, or what the dialect cannot write
ViewTableinterfaceno test imports itinterface ViewTableA table as the view is made from it.
| Member | Type | What it is |
|---|---|---|
words | readonly string[] | |
name | string | The table's name as written, with the schema's words where the dialect has no schemas. |
qualifier | string | undefined | The schema the table is qualified by, where the dialect has schemas. |
columns | readonly { readonly name: string; readonly words: readonly string[]; readonly type: string; }[] | |
primaryKey | readonly string[] | The written names of the primary key's columns. |
comment | string | |
of | readonly LogicalId[] | What the statements are made from, so that the lifecycle applies them again when a step changes it. |