Skip to content

Commit e7c8f52

Browse files
committed
Merge pull request #175 from cpeters/master
Updated documentation to show how to get a result count
2 parents f253a57 + 00ec6ed commit e7c8f52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ escaped = client.escape("gi'thu\"bbe\0r's")
4444
results = client.query("SELECT * FROM users WHERE group='#{escaped}'")
4545
```
4646

47+
You can get a count of your results with `results.count`.
48+
4749
Finally, iterate over the results:
4850

4951
``` ruby

0 commit comments

Comments
 (0)