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);

Order by setting

Order by global setting:

Db::orderBySetting(string $column);

Limit by setting

Limit by global setting:

Db::limitBySetting(int $step);
Edit on GitHub