© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•11mo ago
azn4lifee

reference table name as const

I'm looking for a way to reference a postgres table name as a const.
getTableConfig(tableName).name
getTableConfig(tableName).name
returns the name as a string, while
tableName._.name
tableName._.name
does not exist in runtime. Hopefully there's something that combines both, without needing for manual typecasting.
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

How to `as` a table name
Drizzle TeamDTDrizzle Team / help
17mo ago
Reference the same table
Drizzle TeamDTDrizzle Team / help
2y ago
dynamic table name
Drizzle TeamDTDrizzle Team / help
3y ago
generated columns reference another table
Drizzle TeamDTDrizzle Team / help
2y ago