drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: view creator function that adds custom prefix to views

Open
#1,917 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.