Do I need to call Rows.Close() after using db.ScanRows() ? #598
-
To quote the documentation https://bun.uptrace.dev/guide/queries.html#scanning-rows. rows, err := db.QueryContext(ctx, "SELECT * FROM users")
if err != nil {
panic(err)
}
err = db.ScanRows(ctx, rows, &users) I'm not sure that should I call |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Jul 1, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
siraphobk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ScanRows
closes therows
for you.