Db Class

Create object

Utilize the constructor of the Db class:

Db::construct(Config $config);

Init

Init the class:

Db::init();

Get status

Get the database status:

Db::getStatus();

Raw instance

Raw instance helper:

Db::rawInstance();

Count table prefix

Count table with prefix:

Db::countTablePrefix();

For table prefix

For table with prefix:

Db::forTablePrefix(string $table, string $connection);

Left join prefix

Left join with prefix:

Db::leftJoinPrefix(string $table, string $constraint, string $tableAlias);

Where like many

Where like with many:

Db::whereLikeMany(array $columnArray, array $likeArray);

Where language is

Where language is:

Db::whereLanguageIs(string language);

Find flat array

Find a flat array:

Db::findFlatArray(string $key);

Get setting

Get the setting:

Db::getSetting(string $key);

Set setting

Set the setting:

Db::setSetting(string $key, string $value);

Order global

Order according to settings:

Db::orderGlobal(string $column);

Limit global

Limit according to settings:

Db::limitGlobal();
Edit on GitHub