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

Bugfix? create pgql database if not exists #241

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

oz123
Copy link
Contributor

@oz123 oz123 commented Nov 3, 2023

With the current master branch code
(commit afb2121)
I see the following error:

root@vm2:/home/vagrant# kine --debug --endpoint postgres://postgres:postgresql@localhost:5432/foobster INFO[2023-11-03T20:07:09.379099258Z] metrics server is starting to listen at :8080 INFO[2023-11-03T20:07:09.379709686Z] starting metrics server path /metrics FATA[2023-11-03T20:07:09.40247106Z] building kine: failed to connect to host=localhost user=postgres database=foobster: server error (FATAL: database "foobster" does not exist (SQLSTATE 3D000))

This is fixed with the current commit.

@oz123 oz123 requested a review from a team as a code owner November 3, 2023 20:30
@brandond
Copy link
Member

brandond commented Nov 4, 2023

Can you rebase your changes? It appears that you are missing some changes to the tests and this is causing CI to fail.

I suspect that this was broken by #179 - we should add or modify the tests so that they also exercise the database creation code. I believe they all currently use the default database.

With the current master branch code
(commit afb2121)
I see the following error:

root@vm2:/home/vagrant# kine --debug --endpoint postgres://postgres:postgresql@localhost:5432/foobster
INFO[2023-11-03T20:07:09.379099258Z] metrics server is starting to listen at :8080
INFO[2023-11-03T20:07:09.379709686Z] starting metrics server path /metrics
FATA[2023-11-03T20:07:09.40247106Z] building kine: failed to connect to
`host=localhost user=postgres database=foobster`: server error (FATAL:
database "foobster" does not exist (SQLSTATE 3D000))

This is fixed with the current commit.

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
@oz123
Copy link
Contributor Author

oz123 commented Nov 6, 2023

@brandond thanks for reviewing my PR so quickly. I rebased the patch against the current master. 🤞 that the tests work now.

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.

3 participants