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

[FEATURE]: function $onInsert #2870

Open
MrOxMasTer opened this issue Aug 28, 2024 · 0 comments
Open

[FEATURE]: function $onInsert #2870

MrOxMasTer opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MrOxMasTer
Copy link

Describe what you want

Just as a suggestion. It may help to make the data more unified, for example:

export const roles = pgTable('roles', {
  id: ...
  name: text('name').notNull().unique().$onInsert((date) => {date.name = date.name.toUpperCase()),
});
@MrOxMasTer MrOxMasTer added the enhancement New feature or request label Aug 28, 2024
@MrOxMasTer MrOxMasTer changed the title [FEATURE]: function onInsert [FEATURE]: function $onInsert Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant