Skip to content

Commit 44181e1

Browse files
author
twalder-docnet
committed
Add named parameter info to README
1 parent 5525e78 commit 44181e1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,14 @@ At the time of writing, the `GDS\Store` object uses Datastore GQL as it's query
151151
```php
152152
$obj_book_store->fetchOne("SELECT * FROM Book WHERE isbn = '1853260304'");
153153
```
154-
155-
We provide a couple of helper methods for some common queries:
154+
155+
And with support for named parameters
156+
157+
```php
158+
$obj_book_store->fetchOne("SELECT * FROM Book WHERE isbn = @isbnNumber", ['isbnNumber' => '1853260304']);
159+
```
160+
161+
We provide a couple of helper methods for some common (root Entity) queries:
156162

157163
- `GDS\Store::fetchById`
158164
- `GDS\Store::fetchByName`

0 commit comments

Comments
 (0)