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

crete database #223

Merged
merged 2 commits into from
Dec 26, 2023
Merged

crete database #223

merged 2 commits into from
Dec 26, 2023

Conversation

kaplanelad
Copy link
Contributor

Add the option to create a database from the CLI. #112

This PR is still in progress.

In db cli command we call create_context which creates DB connection from the yaml config. At this point when the user wants to create a DB the database does not exists and the create_context returns an error.

My investigation:
postgres
We can replace the DB name to Postgres and open the connection, which creates automatically and then we can create the Database
postgres://loco:loco@localhost:5432/postgress

MySql
We can remove the db name from the connection string and create the DB
mysql://loco:loco@localhost:3306/

@kaplanelad kaplanelad changed the title crete database WIP: crete database Dec 23, 2023
@kaplanelad kaplanelad changed the title WIP: crete database crete database Dec 25, 2023
@jondot jondot merged commit 89128d8 into master Dec 26, 2023
10 checks passed
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