Skip to content

Commit 00ec6ed

Browse files
author
Chris Peters
committed
Showed how to get count of results.
1 parent acedfd2 commit 00ec6ed

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)