Skip to content

Commit 001f928

Browse files
authored
Merge pull request #7131 from kenjis/fix-docs-database/configuration.rst
docs: improve database/configuration.rst
2 parents 67295eb + dd06ddb commit 001f928

2 files changed

Lines changed: 4 additions & 2 deletions

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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,15 @@ 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.
125126
**pConnect** true/false (boolean) - Whether to use a persistent connection.
126127
**DBDebug** true/false (boolean) - Whether to throw exceptions or not when database errors occur.
127128
**charset** The character set used in communicating with the database.
128-
**DBCollat** The character collation used in communicating with the database (``MySQLi`` only)
129+
**DBCollat** The character collation used in communicating with the database (``MySQLi`` only).
129130
**swapPre** A default table prefix that should be swapped with ``DBPrefix``. This is useful for distributed
130131
applications where you might run manually written queries, and need the prefix to still be
131132
customizable by the end user.

0 commit comments

Comments
 (0)