Skip to content

Commit

Permalink
Fix constructor in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
midorikocak committed Feb 4, 2020
1 parent beebf50 commit 05e43f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ To use database library, simple inject it with pdo.
use midorikocak\nanodb\Database;

$pdo = new PDO('sqlite::memory:');
$db = new Database($pdo);
$query = new QueryMaker();
$db = new Database($pdo, $query);
```

Operations are chained.
Expand Down

0 comments on commit 05e43f8

Please sign in to comment.