Skip to content

Commit ff174b9

Browse files
committed
docs: add "Initializing the Utility Class"
1 parent 31388c8 commit ff174b9

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

user_guide_src/source/database/utilities.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
1-
#########
2-
Utilities
3-
#########
1+
######################
2+
Database Utility Class
3+
######################
44

55
The Database Utility Class contains methods that help you manage your database.
66

77
.. contents::
88
:local:
99
:depth: 2
1010

11+
******************************
12+
Initializing the Utility Class
13+
******************************
14+
15+
Load the Utility Class as follows::
16+
17+
$dbutil = \CodeIgniter\Database\Config::utils();
18+
19+
You can also pass another database group to the DB Utility loader, in case
20+
the database you want to manage isn't the default one::
21+
22+
$dbutil = \CodeIgniter\Database\Config::utils('group_name')
23+
24+
In the above example, we're passing a database group name as the first
25+
parameter.
26+
27+
****************************
28+
Using the Database Utilities
29+
****************************
1130

1231
Export a Query Result as an XML Document
1332
========================================

0 commit comments

Comments
 (0)