drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Support date mode for time types for introspection
Open
drizzle/kit
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Describe what you want
When generating schema file with introspection, default [mode](https://orm.drizzle.team/docs/column-types/pg#timestamp) for time-related types is string:
```
timestamp('created_at', { mode: 'string' })
```
It would be great to support passing default mode via drizzle-kit CLI or drizzle config option. Example:
```
{
introspect: {
timeMode: 'date'
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.