© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
4 replies
Jure

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()
db.select().from(models.users).all()


But not with MySQL:
db.select().from(models.users)
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()
.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
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get type from select object ?
Drizzle TeamDTDrizzle Team / help
2y ago
MySQL column type: "Generated"?
Drizzle TeamDTDrizzle Team / help
3y ago
Select<Type> Help
Drizzle TeamDTDrizzle Team / help
2y ago
How to narrow type in select from enum?
Drizzle TeamDTDrizzle Team / help
2y ago