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

This New branch is building upon the sqlite_test PR as it passed the testsuite #13

Open
wants to merge 58 commits into
base: dev
Choose a base branch
from

Conversation

Farreeda
Copy link
Collaborator

@Farreeda Farreeda commented Jul 3, 2023

No description provided.

Copy link
Collaborator

@TheCedarPrince TheCedarPrince left a comment

Choose a reason for hiding this comment

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

I think this is close with GitHub Actions being nearly done. That said, the tutorials look great and the tests look solid. I think the biggest issue is just connecting to the server. Otherwise, great work. Let me know if you have any questions or issues.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Had to change the syntax to get this to re-trigger but it is now working.

Project.toml Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

Updated authors and compat entries.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I overhauled this a little to deprecate some support for ODBC and JDBC connections as well as add a proper import.

src/mysql.jl Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wasn't able to get tests for thsi working so I am not sure how well this works.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I know we were thinking that your function _dbconnect could have kwargs, but I think I'd rather have the user have to define their own kws to handle the specifics of the connection string like in the original _dbconnect that I brought back. What do you think @Farreeda ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, I was able to test the old version and that does work on my computer to run tests but I couldn't get the new dispatch working that you had created.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If that means adding kwargs in addition to arguments, this is a good idea. No connection can happen without the identified arguments as user, password, host, do you agree @TheCedarPrince ?
which dispatch?

src/sqlite.jl Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

This works perfectly!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Added required test dependencies.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I could not get MySQL tests working on the GitHub action but I know it is due to the connection string... Could you attempt debugging this?

test/runtests.jl Outdated
Comment on lines 31 to 36
@testset "_dbconnect function for LibPQ" begin

conn= DBConnector._dbconnect(LibPQ.Connection, host = ENV["POSTGRES_HOST"], user = ENV["POSTGRES_USER"], dbname = "mimic", password = ENV["POSTGRES_PASSWORD"])
@test @isdefined conn

end
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you make sure the tests work? I think the host string needs to be formatted again or something... Not entirely sure. What you can do for testing is try connecting to the database on the server from your local machine and establishing how the connection string should work.

test/runtests.jl Outdated
Comment on lines 22 to 24
#conn= DBConnector._dbconnect(LibPQ.Connection, ENV["POSTGRES_HOST"],ENV["POSTGRES_USER"], ENV["POSTGRES_PASSWORD"], "omop")
conn = DBConnector._dbconnect(LibPQ.Connection, "199.180.155.65", "postgres", "postgres3", "omop")
@test @isdefined conn
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey Fareeda, could you change these strings to the appropriate GitHub Environment variables?

@TheCedarPrince TheCedarPrince changed the base branch from main to dev August 24, 2023 03:49
@TheCedarPrince
Copy link
Collaborator

Hey @Farreeda, once you are done with the last comment I made to make sure the LibPQ tests still work even with GitHub environment variables, I think we can go ahead and merge this even though we don't have the test suite set-up for the MySQL server. Thanks!

Farreeda added 2 commits August 24, 2023 12:37
so the problem is with github secrets variables, let's test on mySQL
Almost the secrets issue is because the PR has no access to the environment secrets of the base repo
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