Skip to content

Commit c68ced2

Browse files
committed
update READMD.md
1 parent 82951cd commit c68ced2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ The DB class will help you manage the database connection. You can connect to mu
2222
```php
2323
use Link1515\DbUtilsPhp5\DB;
2424

25+
// set PDO charset. Default value is utf8mb4
26+
DB::setPDOCharset(string $charset);
27+
28+
// set PDO options.
29+
DB::setPDOOptions(array $options);
30+
2531
// Conect to the database. The current connection is used as the default.
2632
DB::connect(string $id, string $drive, string $host, string $database, string $user, string $password): void;
2733

@@ -37,6 +43,8 @@ DB::PDO(?string $id): PDO;
3743
The BaseORM class has some common methods for creating, querying, updating and deleting. In simple applications, stataic methods can be called directly for specified table operation.
3844

3945
```php
46+
use Link1515\DbUtilsPhp5\ORM\BaseORM;
47+
4048
// options
4149
// - page (int)
4250
// - perPage (int)

0 commit comments

Comments
 (0)