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 max_connections option to CLI #670

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

benluelo
Copy link
Contributor

@benluelo benluelo commented Apr 12, 2022

PR Info

Adds

Adds a --max-connections flag to sea-orm-cli. Some databases have limits lower than the default 10 (elephantsql free tier, for example).

I was unable to get pool_options to work (hence the standalone function), I enabled the sqlx-dep and it still wasn't showing up. If anyone could help me with this please let me know!

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @benluelo, sorry for the delay. Nicely done!

@tyt2y3
Copy link
Member

tyt2y3 commented Apr 22, 2022

Actually, we don't have to make it an Option. I think it is a reasonable and better default for max connections to be 1

@billy1624
Copy link
Member

Actually, we don't have to make it an Option. I think it is a reasonable and better default for max connections to be 1

Hey @benluelo, please cherrypick the useful bits :P

Change max_connections option to default to 1

CLI generate entity with default max connection of 1
@benluelo benluelo force-pushed the feature/cli-max-connections branch from ab806cf to 491e33f Compare April 26, 2022 13:09
@benluelo
Copy link
Contributor Author

Should be good to go now!

@tyt2y3 tyt2y3 merged commit b01d488 into SeaQL:master Apr 26, 2022
@tyt2y3
Copy link
Member

tyt2y3 commented Apr 26, 2022

Thank you

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.

Reduce database connections to 1 during codegen
3 participants