File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ escaped = client.escape("gi'thu\"bbe\0r's")
44
44
results = client.query(" SELECT * FROM users WHERE group='#{ escaped } '" )
45
45
```
46
46
47
+ You can get a count of your results with ` results.count ` .
48
+
47
49
Finally, iterate over the results:
48
50
49
51
``` ruby
321
323
* Eric Wong - for the contribution (and the informative explanations) of some thread-safety, non-blocking I/O and cleanup patches. You rock dude
322
324
* Yury Korolev (http://github.com/yury ) - for TONS of help testing the ActiveRecord adapter
323
325
* Aaron Patterson (http://github.com/tenderlove ) - tons of contributions, suggestions and general badassness
324
- * Mike Perham (http://github.com/mperham ) - Async ActiveRecord adapter (uses Fibers and EventMachine)
326
+ * Mike Perham (http://github.com/mperham ) - Async ActiveRecord adapter (uses Fibers and EventMachine)
You can’t perform that action at this time.
0 commit comments