Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Eckerstorfer committed Feb 16, 2015
1 parent 4c00125 commit 985c49a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ $nqm = new NQM($pdo, $cache);

Sometimes you have multiple queries that are always executed together. For example, a `DROP TABLE`, `CREATE TABLE`
sequence or if you have to create temporary tables for especially complex queries. Since PDO accepts only a single
SQL statement per statement, you can use `QueryCollection` to execute multiple queries.
SQL statement per statement, you can use `QueryCollection` to execute multiple queries. Queries must be separated by
`#;`, which must be placed on its own line.


```sql
DROP TABLE IF EXISTS users;
#;
CREATE TABLE users (...);
```

```php
use Cocur\NQM\QueryCollection;
Expand Down Expand Up @@ -159,6 +167,10 @@ $nqm = NQMFactory::createFromEntityManager($entityManager, $queryLoader);
Change log
----------

### Version 0.3 (16 February 2015)

- Add support for query collections

### Version 0.2 (11 February 2015)

- Add Doctrine bridge
Expand Down

0 comments on commit 985c49a

Please sign in to comment.