cheekybuddha
How do I specify a MySQL index hint?
Thank you, and apologies for my impatience!
Unfortunately the generated SQL in not correct (for MySQL), or at least I can't get it to work.
With the example in your link:
produces:
however I think it needs to be:
I can add the parentheses in the sql`` call, but adding the alias in there too causes typescript to have a fit (No overload matches this call.)
Am I missing something?
TIA
5 replies
Typescript Error when creating MySQL db pool
Actually, something is strange - returning .pool gets rid of the error, but it is not listed as a property in the intellisense.
Like I said, I'm still new to typescript, so I don't know whether this is expected.
19 replies
Typescript Error when creating MySQL db pool
Don't you love it when you search for the solution to a problem for a couple of days and find the answer immediately after posting asking for assistance!! 😖 😳
I have found the answer here: https://lucia-auth.com/guidebook/kysely
Turns out that createPool() does not return the pool - you have to access its pool property:
Thanks for looking in 👍
19 replies