-
-
Notifications
You must be signed in to change notification settings - Fork 714
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 schema name option to database introspection methods #1466
Conversation
Thank you @barnettben, it looks like a perfect PR :-)
👍
Yes, it is unrelated, so it's ok to ignore it here. Do you know how it fails? I'll help fixing the CI builds. Please stay tuned. |
Thank you @groue. The log shows:
I have not looked in to it further yet. Hopefully it's not the symptom of a failing SSD! |
I'm a little busy these days, but I'm in vacations at the end of the week. I should be able to look at the PR, then. |
Thank you, I'm not in a hurry. Don't spoil your holiday! |
Hi @barnettben, I have skipped tests that involve attached databases when they run with SQLCipher + encryption. Another option would be to provide the password to the Another CI problem was this error message:
I have tried the techniques described in https://github.com/orgs/community/discussions/60820. Now I wait to see if CI is happier 😅 EDIT: nope, I could not solve the "Resource not accessible by integration" error. I just disabled kishikawakatsumi/xcresulttool, which wasn't very useful at reporting CI test failures anyway. |
This reverts commit aadb887.
All CI tests pass 🎉 Merging |
Shipped in v6.24.0 👍 Thank you very much @barnettben. Would you accept an invitation that grants you a push access to GRDB? I do intend to keep the lead of the project, but it is good for everyone that people of various levels of expertise can improve the repository. Of course, your free time would remain just as free as it was before! |
Thank you @groue, I'd be happy to accept. And thanks for merging this in too. |
You're very welcome, @barnettben 🙂🤝 |
Adds an optional
schemaName
parameter to table introspection methods as discussed in #1463.I have added the extra parameter to
foreignKeyViolations()
since that does support checking in other schemas - it then follows to also updatecheckForeignKeys()
. I'm not totally happy with the doc comments oncheckForeignKeys()
, but I think they makes sense.Commits in this PR are mostly grouped by which function they're updating, so are hopefully easy to review.
I have not updated the sample code in the README since the code in there still works and doesn't really need to show this optional addition.
One problem is that
make smokeTest
persistently fails onDatabaseCursorTests.testFastDatabaseValueCursorStep()
. This is the first profiling test to run and takes about 3x longer than others in the same file. It appears unrelated to any of the code that I've touched with this PR. Other tests all pass.Any and all critiques welcome!
Pull Request Checklist
development
branch.make smokeTest
terminal command runs without failure.