© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
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 Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
How to `as` a table name
DT
Drizzle Team / help
17mo ago
Reference the same table
DT
Drizzle Team / help
2y ago
dynamic table name
DT
Drizzle Team / help
3y ago
generated columns reference another table
DT
Drizzle Team / help
2y ago