drizzle-team / drizzle-team/drizzle-orm

[BUG]: Pascal Case Table Names transformed into camelCase Variable Names when introspect

Open
#4,086 0 comments 0 reactions 0 assignees View on GitHub
drizzle/kit enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

0.39.1

### What version of `drizzle-kit` are you using?

0.30.4

### Other packages

_No response_

### Describe the Bug

If you pull the schema from an existing database with PascalCase table names, drizzle will do something like this:

```typescript
export const user = mysqlTable("User", { // variable name is lowercase but Table is Capitalized
...

```

I would like my variables to have the same name as my tables

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.