MySQL select().from() type

Hi. I'm using Drizzle ORM in the Nuxt app where return type of the server is inferred to the frontend.

This works with SQLite:
db.select().from(models.users).all()

But not with MySQL:
db.select().from(models.users)

Maybe it's a noob question, but how could I get the same return type with MySQL?
I guess .all() do all the magic but there isn't such method using MySQL driver.
Screenshot_2024-02-29_at_17.43.58.png
Screenshot_2024-02-29_at_17.44.13.png
Was this page helpful?