drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Allow custom naming convention for introspected schemas
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
Inside introspect-pg.ts:
```
export const paramNameFor = (name: string, schema?: string) => {
const schemaSuffix = schema && schema !== 'public' ? `In${schema.capitalise()}` : '';
return `${name}${schemaSuffix}`;
};
```
We have a hardcoded "InSchema" naming convention. Can we instead allow passing a map into the drizzle config to customize this?
Contributor guide
Assessment
This issue has not been assessed yet.