drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: view creator function that adds custom prefix to views
Open
db/mysql
db/postgres
db/sqlite
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Describe what you want
Drizzle allows you to define a table creator function for adding a prefix to your tables.
```ts
import {
mysqlTableCreator
} from "drizzle-orm/mysql-core";
export const mysqlTable = mysqlTableCreator((name) => `ptd_${name}`);
```
It would be really cool if we had the same thing for views.
Contributor guide
Assessment
This issue has not been assessed yet.