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

Give ability to execute scripts #14

Merged
merged 3 commits into from
Nov 15, 2022
Merged

Give ability to execute scripts #14

merged 3 commits into from
Nov 15, 2022

Conversation

maiste
Copy link
Collaborator

@maiste maiste commented Nov 14, 2022

This PR fixes #13 by importing the possibility to execute SQL script into the omigrate-sqlite3 driver.
This is achieved by directly executing the request instead of trying to prepare it.

It requires #12 to be merged first.

@maiste maiste requested a review from tmattio November 14, 2022 17:56
@maiste maiste added the bug Something isn't working label Nov 14, 2022
@maiste maiste mentioned this pull request Nov 14, 2022
@maiste maiste force-pushed the fix/issue-13 branch 2 times, most recently from 97d0755 to 5a1908d Compare November 15, 2022 09:20
(cram
(applies_to example)
(enabled_if
(= true %{env:GITHUB_TESTS=false}))
Copy link
Owner

Choose a reason for hiding this comment

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

I don't understand this: why enable the tests only on the CI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need a container running with Postgres to execute the PostgreSQL test and an SQLite executable available to run the SQLite test. However, opam-repo-ci doesn't support these kinds of tests... This is the only option I've found to ensure we don't break opam-repo-ci when releasing new versions.

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks! I can't come up with a better alternative either, so let's go with this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can correct it later if we find something better 👍

@maiste
Copy link
Collaborator Author

maiste commented Nov 15, 2022

Thanks for the review and the suggestions! omigrate.0.3.2 in coming 🚀

@maiste maiste merged commit 5f15988 into tmattio:main Nov 15, 2022
@maiste maiste deleted the fix/issue-13 branch November 15, 2022 12:55
kit-ty-kate pushed a commit to ocaml/opam-repository that referenced this pull request Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in sqlite3 script execution
2 participants