Extension
Less than 1 minute
Extension
Trait providing extension management methods for SQL-based DBI drivers.
trait ExtensionIncludes default implementations for listing, creating, dropping, and checking extensions.
Methods
listExtensions
public listExtensions(): voidcreateExtension
Attempt to create a database extension by name.
public createExtension(string $name): boolParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | the name of the extension to create |
dropExtension
Attempt to drop a database extension by name.
public dropExtension(string $name, bool $ifExists): boolParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | the name of the extension to drop |
$ifExists | bool | if true, do not error if the extension does not exist |
extensionExists
Check if a database extension exists by name.
public extensionExists(string $name): boolParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | the name of the extension to check |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000