| Fully Qualified Name: | CodeIgniter\Database\Database |
Database Connection Factory
Creates and returns an instance of the appropriate DatabaseConnection
| Name | Description | Defined By |
|---|---|---|
| load() | Parses the connection binds and returns an instance of the driver ready to go. | Database |
| loadForge() | Creates a new Forge instance for the current database type. | Database |
| loadUtils() | Loads the Database Utilities class. | Database |
Parses the connection binds and returns an instance of the driver ready to go.
| Parameter Name | Type | Description |
|---|---|---|
| $params | array | |
| $alias | string |
Returns: mixed
Creates a new Forge instance for the current database type.
| Parameter Name | Type | Description |
|---|---|---|
| $db | \ConnectionInterface|\BaseConnection |
Returns: mixed
Loads the Database Utilities class.
| Parameter Name | Type | Description |
|---|---|---|
| $db | \ConnectionInterface|\BaseConnection |
Returns: mixed