Skip to content

Commit c99d089

Browse files
author
obozdag
authored
docs: Some typos in database/configuration.rst
Some typos in database/configuration.rst
1 parent 971b0da commit c99d089

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

user_guide_src/source/database/configuration.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ prototype:
2929
The name of the class property is the connection name, and can be used
3030
while connecting to specify a group name.
3131

32-
.. note:: The default location of the SQLite3 database is in the **writable** folder.
33-
If you want to change the location, you must set the full path to the new folder.
32+
.. note:: The default location of the SQLite3 database is the **writable** folder.
33+
If you want to change the location, you must set the full path to the new folder (e.g., 'database' => '../db/database_name').
3434

3535
DSN
3636
---
3737

38-
Some database drivers (such as Postgre, OCI8) requires a full DSN string to connect.
38+
Some database drivers (such as Postgre, OCI8) requires a full DSN (Data Source Name) string to connect.
3939
But if you do not specify a DSN string for a driver that requires it, CodeIgniter
4040
will try to build it with the rest of the provided settings.
4141

@@ -48,7 +48,7 @@ you're using the driver's underlying native PHP extension, like this:
4848
DSN in Universal Manner
4949
^^^^^^^^^^^^^^^^^^^^^^^
5050

51-
You can also set a Data Source Name in universal manner (URL like). In that case DSNs must have this prototype:
51+
You can also set a DSN in universal manner (URL like). In that case DSNs must have this prototype:
5252

5353
.. literalinclude:: configuration/003.php
5454
:lines: 11-14
@@ -113,7 +113,7 @@ Configuring with .env File
113113

114114
You can also save your configuration values within a **.env** file with the current server's
115115
database settings. You only need to enter the values that change from what is in the
116-
default group's configuration settings. The values should be name following this format, where
116+
default group's configuration settings. The values should follow this format, where
117117
``default`` is the group name::
118118

119119
database.default.username = 'root';
@@ -137,11 +137,11 @@ and decode it in the constructor in the Config class:
137137
.. _database-config-explanation-of-values:
138138

139139
*********************
140-
Explanation of Values
140+
Description of Values
141141
*********************
142142

143143
================ ===========================================================================================================
144-
Name Config Description
144+
Config Name Description
145145
================ ===========================================================================================================
146146
**DSN** The DSN connect string (an all-in-one configuration sequence).
147147
**hostname** The hostname of your database server. Often this is 'localhost'.
@@ -154,31 +154,31 @@ Explanation of Values
154154
**DBDriver** The database driver name. The case must match the driver name.
155155
You can set a fully qualified classname to use your custom driver.
156156
Supported drivers: ``MySQLi``, ``Postgre``, ``SQLite3``, ``SQLSRV``, and ``OCI8``.
157-
**DBPrefix** An optional table prefix which will added to the table name when running
157+
**DBPrefix** An optional table prefix which will be added to the table name when running
158158
:doc:`Query Builder <query_builder>` queries. This permits multiple CodeIgniter
159159
installations to share one database.
160160
**pConnect** true/false (boolean) - Whether to use a persistent connection.
161-
**DBDebug** true/false (boolean) - Whether to throw exceptions or not when database errors occur.
161+
**DBDebug** true/false (boolean) - Whether to throw exceptions when database errors occur.
162162
**charset** The character set used in communicating with the database.
163163
**DBCollat** (``MySQLi`` only) The character collation used in communicating with the database.
164164
**swapPre** A default table prefix that should be swapped with ``DBPrefix``. This is useful for distributed
165165
applications where you might run manually written queries, and need the prefix to still be
166166
customizable by the end user.
167167
**schema** (``Postgre`` and ``SQLSRV`` only) The database schema, default value varies by driver.
168-
**encrypt** (``MySQLi`` and ``SQLSRV`` only) Whether or not to use an encrypted connection.
168+
**encrypt** (``MySQLi`` and ``SQLSRV`` only) Whether to use an encrypted connection.
169169
See :ref:`MySQLi encrypt <mysqli-encrypt>` for ``MySQLi`` settings.
170170
``SQLSRV`` driver accepts true/false.
171-
**compress** (``MySQLi`` only) Whether or not to use client compression.
171+
**compress** (``MySQLi`` only) Whether to use client compression.
172172
**strictOn** (``MySQLi`` only) true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring
173173
strict SQL while developing an application.
174174
**port** The database port number - Empty string ``''`` for default port (or dynamic port with ``SQLSRV``).
175-
**foreignKeys** (``SQLite3`` only) true/false (boolean) - Whether or not to enable Foreign Key constraint.
175+
**foreignKeys** (``SQLite3`` only) true/false (boolean) - Whether to enable Foreign Key constraint.
176176

177177
.. important:: SQLite3 Foreign Key constraint is disabled by default.
178178
See `SQLite documentation <https://www.sqlite.org/pragma.html#pragma_foreign_keys>`_.
179179
To enforce Foreign Key constraint, set this config item to true.
180180
**busyTimeout** (``SQLite3`` only) milliseconds (int) - Sleeps for a specified amount of time when a table is locked.
181-
**numberNative** (``MySQLi`` only) true/false (boolean) - Whether or not to enable MYSQLI_OPT_INT_AND_FLOAT_NATIVE.
181+
**numberNative** (``MySQLi`` only) true/false (boolean) - Whether to enable MYSQLI_OPT_INT_AND_FLOAT_NATIVE.
182182
**dateFormat** The default date/time formats as PHP's `DateTime format`_.
183183
* ``date`` - date format
184184
* ``datetime`` - date and time format
@@ -225,4 +225,4 @@ MySQLi driver accepts an array with the following options:
225225
* ``ssl_ca`` - Path to the certificate authority file
226226
* ``ssl_capath`` - Path to a directory containing trusted CA certificates in PEM format
227227
* ``ssl_cipher`` - List of *allowed* ciphers to be used for the encryption, separated by colons (``:``)
228-
* ``ssl_verify`` - true/false; Whether to verify the server certificate or not
228+
* ``ssl_verify`` - true/false (boolean) - Whether to verify the server certificate or not

0 commit comments

Comments
 (0)