© 2026 Hedgehog Software, LLC

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

Passing SQL functions to insert

Is there any way to pass a SQL function like
gen_random_uuid()
gen_random_uuid()
to the
insert
insert
function, for a specific (non-primary ID) column? Something like
concat('foo_', gen_random_uuid())
concat('foo_', gen_random_uuid())
for example.
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

Passing transaction to functions
Drizzle TeamDTDrizzle Team / help
15mo ago
insert without passing schema
Drizzle TeamDTDrizzle Team / help
12mo ago
noob help: INSERT with JOIN SQL to Drizzle
Drizzle TeamDTDrizzle Team / help
3y ago
Passing column values through custom TypeScript functions ...
Drizzle TeamDTDrizzle Team / help
2y ago