Skip to content

Commit dd06ddb

Browse files
committed
docs: add about FQCN
1 parent df9c63a commit dd06ddb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

system/Database/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ protected function parseDSN(array $params): array
123123
/**
124124
* Initialize database driver.
125125
*
126+
* @param string $driver Driver name. FQCN can be used.
126127
* @param array|object $argument
127128
*
128129
* @return BaseConnection|BaseUtils|Forge

user_guide_src/source/database/configuration.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ Explanation of Values:
118118
**database** The name of the database you want to connect to.
119119

120120
.. note:: CodeIgniter doesn't support dots (``.``) in the database, table, and column names.
121-
**DBDriver** The database driver name. e.g.,: ``MySQLi``, ``Postgres``, etc. The case must match the driver name
121+
**DBDriver** The database driver name. e.g.,: ``MySQLi``, ``Postgres``, etc. The case must match the driver name.
122+
You can set a fully qualified classname to use your custom driver.
122123
**DBPrefix** An optional table prefix which will added to the table name when running
123124
:doc:`Query Builder <query_builder>` queries. This permits multiple CodeIgniter
124125
installations to share one database.

0 commit comments

Comments
 (0)