You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
What is the correct syntax for including SQL values and rowsAsArray option in a query? #3094
I've looked at all the examples in the docs which use rowsAsArray and it isn't clear how to specify it in a query (rather than in the connection). Is this possible?
Activity
wellwelwel commentedon Oct 3, 2024
Hi, @millerbryan 🙋🏻♂️
You can set it in both connection and query levels:
node-mysql2/website/docs/index.mdx
Lines 452 to 457 in d02aa7c
node-mysql2/website/docs/index.mdx
Lines 481 to 491 in d02aa7c
You can see the docs#array-results section for more details.