Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORM minor enhancements and bugfixes #3649

Open
wants to merge 23 commits into
base: beta
Choose a base branch
from

Conversation

L-Mario564
Copy link
Collaborator

@L-Mario564 L-Mario564 commented Nov 29, 2024

This PR aims to address many smaller issues.

const users = pgTable('users', {
  firstName: text()
});

users.firstName.name; // 'firstName'
users.firstName.nameWithCasing('snake_case'); // 'first_name'
users.firstName.nameWithCasing(db); // 'first_name' - The `db` instance has `casing: 'snake_case'`
db.select({ firstName: users.firstName.as('name') }).from(users);

@L-Mario564 L-Mario564 changed the base branch from main to beta November 29, 2024 21:03
@L-Mario564
Copy link
Collaborator Author

#3175 will be done in a separate PR, the changes required are larger than expected.

@L-Mario564 L-Mario564 marked this pull request as ready for review December 9, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants