$registrars
$registrars : array
An optional array of classes that will act as Registrars for rapidly setting config class properties.
Database Configuration
Not intended to be used on its own, this class will attempt to automatically populate the child class' properties with values from the environment.
These can be set within the .env file.
$factory : \CodeIgniter\Database\Database
The main instance used to manage all of our open database connections.
connect(string|array $group = null, boolean $getShared = true) : \CodeIgniter\Database\BaseConnection
Creates the default
string|array | $group | The name of the connection group to use, or an array of configuration settings. |
boolean | $getShared | Whether to return a shared instance of the connection. |
forge(string|array|null $group = null) : \CodeIgniter\Database\Forge
Loads and returns an instance of the Forge for the specified database group, and loads the group if it hasn't been loaded yet.
string|array|null | $group |
utils(string|array|null $group = null) : \CodeIgniter\Database\BaseUtils
Returns a new instance of the Database Utilities class.
string|array|null | $group |
seeder(string|null $group = null) : \CodeIgniter\Database\Seeder
Returns a new instance of the Database Seeder.
string|null | $group |
Loading…