Schema
Less than 1 minute
Schema
Trait providing schema management methods for SQL-based DBI drivers.
trait SchemaIncludes default implementations for getting, checking, and creating schemas, and for querying information_schema.
Methods
getSchemaName
Get the name of the current database schema.
public getSchemaName(): stringschemaExists
Checks if a schema exists in the database.
public schemaExists(?string $schemaName): boolParameters
| Parameter | Type | Description |
|---|---|---|
$schemaName | string | the name of the schema to check |
createSchema
Creates a new database schema if it does not already exist.
public createSchema(?string $schemaName): boolParameters
| Parameter | Type | Description |
|---|---|---|
$schemaName | string | the name of the schema to create |
listInformationSchema
protected listInformationSchema(string $table, array $columns, mixed $criteria, false $): voidParameters
| Parameter | Type | Description |
|---|---|---|
$table | string | |
$columns | array | |
$criteria | mixed | |
$ | false |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000