Skip to content

Conversation

@manifest
Copy link
Contributor

Does your PR solve an issue?

fixes #4105.

Is this a breaking change?

No. It enables the execution of sqlx-cli against a read-only database without altering its functionality.

Instead of attempting to create a table describing migrations, we just test for any record within it with the simple SELECT 1 FROM {table_name} and then create a table if necessary. That is implemented in AnyConnection because this is standard SQL and can serve as a general solution for any database supported by sqlx.

@manifest manifest force-pushed the sqlx-cli-read-only-database branch from 53b753f to 21e13aa Compare November 14, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant