Constraint
Less than 1 minute
Constraint
Methods
listConstraints
List all constraints for a table.
public listConstraints(NULL $table, NULL $type, boolean $invertType = false, false $): void
Parameters
Parameter | Type | Description |
---|---|---|
$table | NULL | |
$type | NULL | |
$invertType | boolean | |
$ | false |
addConstraint
List all constraints for a table.
public addConstraint(string $constraintName, array $info): bool
Parameters
Parameter | Type | Description |
---|---|---|
$constraintName | string | |
$info | array |
dropConstraint
Drop a constraint from a table.
public dropConstraint(string $constraintName, string $tableName, bool $ifExists = false, bool $cascade = false): bool
Parameters
Parameter | Type | Description |
---|---|---|
$constraintName | string | |
$tableName | string | |
$ifExists | bool | |
$cascade | bool |
Generated by Hazaar API Doc Generator