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

Add support for listing unique constraints #148

Open
Niikelion opened this issue Nov 20, 2023 · 2 comments
Open

Add support for listing unique constraints #148

Niikelion opened this issue Nov 20, 2023 · 2 comments

Comments

@Niikelion
Copy link

Niikelion commented Nov 20, 2023

Hello there! I find working with unique constraints across multiple columns in knex pretty cumbersome due to inability to delete all of them them/check if they exist before redefining them. This leads to the need to remember what constraints have been defined before. This is why I propose adding uniqueConstraints method that will list all unique constraints. I'm more than willing to implement this feature for some dialects(oracledb is not working on my machine).

@Niikelion
Copy link
Author

Figured out how to make oracledb work. Now I probably can implement it for every dialect.

@Niikelion
Copy link
Author

I managed to implement this method for every dialect. If you decide to not include this feature in knex-schema-inspector full implementation will still be on my fork.

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

No branches or pull requests

1 participant