@@ -136,9 +136,9 @@ and decode it in the constructor in the Config class:
136136
137137.. _database-config-explanation-of-values :
138138
139- **********************
140- Explanation of Values:
141- **********************
139+ *********************
140+ Explanation of Values
141+ *********************
142142
143143================ ===========================================================================================================
144144 Name Config Description
@@ -159,31 +159,25 @@ Explanation of Values:
159159**pConnect ** true/false (boolean) - Whether to use a persistent connection.
160160**DBDebug ** true/false (boolean) - Whether to throw exceptions or not when database errors occur.
161161**charset ** The character set used in communicating with the database.
162- **DBCollat ** The character collation used in communicating with the database (`` MySQLi `` only) .
162+ **DBCollat ** (`` MySQLi `` only) The character collation used in communicating with the database.
163163**swapPre ** A default table prefix that should be swapped with ``DBPrefix ``. This is useful for distributed
164164 applications where you might run manually written queries, and need the prefix to still be
165165 customizable by the end user.
166- **schema ** The database schema, default value varies by driver. (Used by ``Postgre `` and ``SQLSRV ``.)
167- **encrypt ** Whether or not to use an encrypted connection.
168- ``SQLSRV `` driver accepts true/false
169- ``MySQLi `` driver accepts an array with the following options:
170- * ``ssl_key `` - Path to the private key file
171- * ``ssl_cert `` - Path to the public key certificate file
172- * ``ssl_ca `` - Path to the certificate authority file
173- * ``ssl_capath `` - Path to a directory containing trusted CA certificates in PEM format
174- * ``ssl_cipher `` - List of *allowed * ciphers to be used for the encryption, separated by colons (``: ``)
175- * ``ssl_verify `` - true/false; Whether to verify the server certificate or not (``MySQLi `` only)
176- **compress ** Whether or not to use client compression (``MySQLi `` only).
177- **strictOn ** true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL
178- while developing an application (``MySQLi `` only).
166+ **schema ** (``Postgre `` and ``SQLSRV `` only) The database schema, default value varies by driver.
167+ **encrypt ** (``MySQLi `` and ``SQLSRV `` only) Whether or not to use an encrypted connection.
168+ See :ref: `MySQLi encrypt <mysqli-encrypt >` for ``MySQLi `` settings.
169+ ``SQLSRV `` driver accepts true/false.
170+ **compress ** (``MySQLi `` only) Whether or not to use client compression.
171+ **strictOn ** (``MySQLi `` only) true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring
172+ strict SQL while developing an application.
179173**port ** The database port number - Empty string ``'' `` for default port (or dynamic port with ``SQLSRV ``).
180- **foreignKeys ** true/false (boolean) - Whether or not to enable Foreign Key constraint (`` SQLite3 `` only) .
174+ **foreignKeys ** (`` SQLite3 `` only) true/false (boolean) - Whether or not to enable Foreign Key constraint.
181175
182176 .. important:: SQLite3 Foreign Key constraint is disabled by default.
183177 See `SQLite documentation <https://www.sqlite.org/pragma.html#pragma_foreign_keys >`_.
184178 To enforce Foreign Key constraint, set this config item to true.
185- **busyTimeout ** milliseconds (int) - Sleeps for a specified amount of time when a table is locked (`` SQLite3 `` only) .
186- **numberNative ** true/false (boolean) - Whether or not to enable MYSQLI_OPT_INT_AND_FLOAT_NATIVE (`` MySQLi `` only) .
179+ **busyTimeout ** (`` SQLite3 `` only) milliseconds (int) - Sleeps for a specified amount of time when a table is locked.
180+ **numberNative ** (`` MySQLi `` only) true/false (boolean) - Whether or not to enable MYSQLI_OPT_INT_AND_FLOAT_NATIVE.
187181================ ===========================================================================================================
188182
189183.. note :: Depending on what database driver you are using (``MySQLi``, ``Postgre``,
@@ -205,4 +199,18 @@ the ``'hostname'`` setting. CodeIgniter's MySQLi driver will notice this and con
205199connection properly.
206200
207201.. literalinclude :: configuration/011.php
208- :lines: 11-18
202+ :lines: 11-18
203+
204+ .. _mysqli-encrypt :
205+
206+ encrypt
207+ -------
208+
209+ MySQLi driver accepts an array with the following options:
210+
211+ * ``ssl_key `` - Path to the private key file
212+ * ``ssl_cert `` - Path to the public key certificate file
213+ * ``ssl_ca `` - Path to the certificate authority file
214+ * ``ssl_capath `` - Path to a directory containing trusted CA certificates in PEM format
215+ * ``ssl_cipher `` - List of *allowed * ciphers to be used for the encryption, separated by colons (``: ``)
216+ * ``ssl_verify `` - true/false; Whether to verify the server certificate or not
0 commit comments