View
Less than 1 minute
View
interface ViewMethods
listViews
List all views in the database.
public listViews(): arrayReturns: array
viewExists
Check if a view exists.
public viewExists(string $viewName): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$viewName | string |
describeView
Describe a view.
public describeView(string $name): array|falseReturns: array|false
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string |
createView
Create a view.
public createView(string $name, string $content, bool $replace): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$content | string | |
$replace | bool |
dropView
Drop a view.
public dropView(string $name, bool $ifExists, bool $cascade): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$ifExists | bool | |
$cascade | bool |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000