© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•15mo ago
Alex DB

Get type of raw sql record

I want to use Supabase webhooks (https://supabase.com/docs/guides/database/webhooks) but I'm struggling to type the payloads. Is there a way to access the raw sql record type from a drizzle schema, before renaming?

i.e. if my schema is
{firstName: text("first_name").notNull()}
{firstName: text("first_name").notNull()}
the type would be
{first_name: string}
{first_name: string}
.
Database Webhooks | Supabase Docs
Trigger external payloads on database events.
Database Webhooks | Supabase Docs
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

Raw sql nullable types, sql<Type | undefined>
Drizzle TeamDTDrizzle Team / help
3y ago
Get the result raw sql
Drizzle TeamDTDrizzle Team / help
3y ago
Get raw SQL string with parameters
Drizzle TeamDTDrizzle Team / help
2y ago
pgTable - raw sql
Drizzle TeamDTDrizzle Team / help
3y ago