drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: meta() for column builder
- 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
It would be cool to be able to add meta data to a table or at least columns.
For example:
```ts
const table = pgTable("user", {
id: uuid("id").defaultRandom().primaryKey().meta({ description: "User ID" }),
})
```
This should not be stored anywhere except in ts in runtime.
Contributor guide
Research direction
No files, tests, or entry points are named. Start by locating the TypeScript column-builder and table definitions used by pgTable, then trace how a runtime-only meta value could be represented; done means the shown .meta({ description: "User ID" }) API works for a column without storing metadata elsewhere.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100