© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•12mo ago•
1 reply
Aarón Contreras

Column name `as string`, needed for performance?

I joined my first project with drizzle about a year ago. I noticed that all columns definitions were including
as string
as string
or
as const
as const
after the name. When I asked about it I was told this was needed for performance of the type system, and they didn't go into too much detail about it. Is that true? are these casts needed for the TS server to be able to keep up with all the types gymnastics in the library? Or can we safely remove them already?
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

json column returning as string
Drizzle TeamDTDrizzle Team / help
6mo ago
Json column type returning as plain string?
Drizzle TeamDTDrizzle Team / help
16mo ago
Column name alias
Drizzle TeamDTDrizzle Team / help
3y ago
date column not being returned as string by drizzle
Drizzle TeamDTDrizzle Team / help
3y ago