© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
1 reply
JT

How to get the name of the table

In 0.22 I used to import
Name
Name
from drizzle-orm/table.js and then I could get the name of the table by calling
table[Name]
table[Name]
. I'm now upgrading to the latest, and a lot of things have changed. Obviously this is one of them, and I can no longer get the name of the table that way. What is the appropriate way to inspect the object and get the name of the table?
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 get schema name from table name?
Drizzle TeamDTDrizzle Team / help
10mo ago
How to `as` a table name
Drizzle TeamDTDrizzle Team / help
17mo ago
How can I read the table name and schema name of a created drizzle table instance?
Drizzle TeamDTDrizzle Team / help
3y ago
How to create a variable with the same name as the table name?
Drizzle TeamDTDrizzle Team / help
3y ago