© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
sevenwestonroads

How to convert sql.raw`` to camelCase?

I have queries I need to run with sql.raw but I'd like the result to come out neatly just how it comes with the typical Drizzle driver. Is it possible? Or do I have to do this manually?

Actually, before relational queries, I did this when using
json_agg
json_agg
and had to both convert snake_case to camelCase and handle date strings to date object (as it's how it's formatted in my schema).

Many thanks!
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

pgTable - raw sql
Drizzle TeamDTDrizzle Team / help
3y ago
Run Raw SQL with sql``
Drizzle TeamDTDrizzle Team / help
16mo ago
Raw SQL string to `DrizzleSQLiteSnapshotJSON`?
Drizzle TeamDTDrizzle Team / help
5mo ago