Trigger
Less than 1 minute
Trigger
interface TriggerMethods
listTriggers
List all triggers in the database or for a specific table.
public listTriggers(?string $tableName): arrayReturns: array
Parameters
| Parameter | Type | Description |
|---|---|---|
$tableName | string |
triggerExists
Check if a trigger exists.
public triggerExists(string $triggerName, string $tableName): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$triggerName | string | |
$tableName | string |
describeTrigger
Describe a trigger.
public describeTrigger(string $triggerName): array|falseReturns: array|false
Parameters
| Parameter | Type | Description |
|---|---|---|
$triggerName | string |
createTrigger
Create a trigger.
public createTrigger(string $triggerName, string $tableName, array $spec): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$triggerName | string | |
$tableName | string | |
$spec | array |
dropTrigger
Drop a trigger.
public dropTrigger(string $triggerName, string $tableName, bool $ifExists, bool $cascade): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$triggerName | string | |
$tableName | string | |
$ifExists | bool | |
$cascade | bool |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000