Open carcinocron opened 4 years ago
query_all
should return an Array with one element per row
query
will yield a result set that you are responsible to iterate.
The documentation for such methods live in http://crystal-lang.github.io/crystal-db/api/latest/DB/QueryMethods.html
If you can share some small code to reproduce the unexpected behaviour we can see what might be happening.
What is the intended difference between
query
andquery_all
? I was usingquery_all
then noticed that the first expected entry from the query was always missing. Changing to justquery
fixed this.