Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpon SELECT queries, 'result.rowsAffected' returns number of rows returned. Needs documentation #1019
Labels
Comments
Yep - looks like readme needs updating. Happy to take contributions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When executing a query, the
result
object has therowsAffected
property. According to the documentation, it gives that information for INSERT/UPDATE/DELETE queries; but I can see that it also gives the number of rows returned by a SELECT query.Can we be confident it will be that way always? If so, shouldn't the README be updated to reflect this behavior?
Thanks.