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(): arrayReturns: array
createExtension
Attempt to create a database extension by name.
public createExtension(string $name): boolReturns: bool
Parameters
| 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): boolReturns: bool
Parameters
| 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): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | the name of the extension to check |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000