Working with the result of db.execute() (mysql2)
(TypeScript newbie here.)
In my (SvelteKit) application I want to (health) check if certain database tables exist when the user visits the main page.
What I tried:
But my rows.map() seems wrong. I get "Property 'map' does not exist on type 'ResultSetHeader'.".
How would I properly work with the "rows" object?
0 Replies