@@ -104,53 +104,56 @@ default group's configuration settings. The values should be name following this
104
104
database.default.password = '';
105
105
database.default.database = 'ci4';
106
106
107
+ .. _database-configuration-explanation-of-values :
108
+
107
109
**********************
108
110
Explanation of Values:
109
111
**********************
110
112
111
- =============== ===========================================================================================================
112
- Name Config Description
113
- =============== ===========================================================================================================
114
- **dsn ** The DSN connect string (an all-in-one configuration sequence).
115
- **hostname ** The hostname of your database server. Often this is 'localhost'.
116
- **username ** The username used to connect to the database. (``SQLite3 `` does not use this.)
117
- **password ** The password used to connect to the database. (``SQLite3 `` does not use this.)
118
- **database ** The name of the database you want to connect to.
119
-
120
- .. 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.
122
- You can set a fully qualified classname to use your custom driver.
123
- **DBPrefix ** An optional table prefix which will added to the table name when running
124
- :doc: `Query Builder <query_builder >` queries. This permits multiple CodeIgniter
125
- installations to share one database.
126
- **pConnect ** true/false (boolean) - Whether to use a persistent connection.
127
- **DBDebug ** true/false (boolean) - Whether to throw exceptions or not when database errors occur.
128
- **charset ** The character set used in communicating with the database.
129
- **DBCollat ** The character collation used in communicating with the database (``MySQLi `` only).
130
- **swapPre ** A default table prefix that should be swapped with ``DBPrefix ``. This is useful for distributed
131
- applications where you might run manually written queries, and need the prefix to still be
132
- customizable by the end user.
133
- **schema ** The database schema, default value varies by driver. (Used by ``Postgres `` and ``SQLSRV ``.)
134
- **encrypt ** Whether or not to use an encrypted connection.
135
- ``SQLSRV `` driver accepts true/false
136
- ``MySQLi `` driver accepts an array with the following options:
137
- * ``ssl_key `` - Path to the private key file
138
- * ``ssl_cert `` - Path to the public key certificate file
139
- * ``ssl_ca `` - Path to the certificate authority file
140
- * ``ssl_capath `` - Path to a directory containing trusted CA certificates in PEM format
141
- * ``ssl_cipher `` - List of *allowed * ciphers to be used for the encryption, separated by colons (``: ``)
142
- * ``ssl_verify `` - true/false; Whether to verify the server certificate or not (``MySQLi `` only)
143
- **compress ** Whether or not to use client compression (``MySQLi `` only).
144
- **strictOn ** true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL
145
- while developing an application (``MySQLi `` only).
146
- **port ** The database port number.
147
- **foreignKeys ** true/false (boolean) - Whether or not to enable Foreign Key constraint (``SQLite3 `` only).
148
-
149
- .. important:: SQLite3 Foreign Key constraint is disabled by default.
150
- See `SQLite documentation <https://www.sqlite.org/pragma.html#pragma_foreign_keys >`_.
151
- To enforce Foreign Key constraint, set this config item to true.
152
- **busyTimeout ** milliseconds (int) - Sleeps for a specified amount of time when a table is locked (``SQLite3 `` only).
153
- =============== ===========================================================================================================
113
+ ================ ===========================================================================================================
114
+ Name Config Description
115
+ ================ ===========================================================================================================
116
+ **dsn ** The DSN connect string (an all-in-one configuration sequence).
117
+ **hostname ** The hostname of your database server. Often this is 'localhost'.
118
+ **username ** The username used to connect to the database. (``SQLite3 `` does not use this.)
119
+ **password ** The password used to connect to the database. (``SQLite3 `` does not use this.)
120
+ **database ** The name of the database you want to connect to.
121
+
122
+ .. note:: CodeIgniter doesn't support dots (``.``) in the database, table, and column names.
123
+ **DBDriver ** The database driver name. e.g.,: ``MySQLi ``, ``Postgres ``, etc. The case must match the driver name.
124
+ You can set a fully qualified classname to use your custom driver.
125
+ **DBPrefix ** An optional table prefix which will added to the table name when running
126
+ :doc: `Query Builder <query_builder >` queries. This permits multiple CodeIgniter
127
+ installations to share one database.
128
+ **pConnect ** true/false (boolean) - Whether to use a persistent connection.
129
+ **DBDebug ** true/false (boolean) - Whether to throw exceptions or not when database errors occur.
130
+ **charset ** The character set used in communicating with the database.
131
+ **DBCollat ** The character collation used in communicating with the database (``MySQLi `` only).
132
+ **swapPre ** A default table prefix that should be swapped with ``DBPrefix ``. This is useful for distributed
133
+ applications where you might run manually written queries, and need the prefix to still be
134
+ customizable by the end user.
135
+ **schema ** The database schema, default value varies by driver. (Used by ``Postgres `` and ``SQLSRV ``.)
136
+ **encrypt ** Whether or not to use an encrypted connection.
137
+ ``SQLSRV `` driver accepts true/false
138
+ ``MySQLi `` driver accepts an array with the following options:
139
+ * ``ssl_key `` - Path to the private key file
140
+ * ``ssl_cert `` - Path to the public key certificate file
141
+ * ``ssl_ca `` - Path to the certificate authority file
142
+ * ``ssl_capath `` - Path to a directory containing trusted CA certificates in PEM format
143
+ * ``ssl_cipher `` - List of *allowed * ciphers to be used for the encryption, separated by colons (``: ``)
144
+ * ``ssl_verify `` - true/false; Whether to verify the server certificate or not (``MySQLi `` only)
145
+ **compress ** Whether or not to use client compression (``MySQLi `` only).
146
+ **strictOn ** true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL
147
+ while developing an application (``MySQLi `` only).
148
+ **port ** The database port number.
149
+ **foreignKeys ** true/false (boolean) - Whether or not to enable Foreign Key constraint (``SQLite3 `` only).
150
+
151
+ .. important:: SQLite3 Foreign Key constraint is disabled by default.
152
+ See `SQLite documentation <https://www.sqlite.org/pragma.html#pragma_foreign_keys >`_.
153
+ To enforce Foreign Key constraint, set this config item to true.
154
+ **busyTimeout ** milliseconds (int) - Sleeps for a specified amount of time when a table is locked (``SQLite3 `` only).
155
+ **numberNative ** true/false (boolean) - Whether or not to enable MYSQLI_OPT_INT_AND_FLOAT_NATIVE (``MySQLi `` only).
156
+ ================ ===========================================================================================================
154
157
155
158
.. note :: Depending on what database driver you are using (``MySQLi``, ``Postgres``,
156
159
etc.) not all values will be needed. For example, when using ``SQLite3 `` you
0 commit comments