Select as db column names instead of js property names

Is there a helper to make select queries that return db column names, i.e. snake-cased instead of the camelCased schema names? I figure I can implement pretty easily, just wanted to know if there's already something provided by drizzle?
1 Reply
iolyd
iolydOP16mo ago
Would be neat to have a await db.select({...}, {dbColumnNames: true}) option Nvm, had a brainfart and I'm pretty sure this is straightforward with getTableConfig and select field mapping
Want results from more Discord servers?
Add your server