Skip to content

chore: use sqlc-vet to verify schema #12642

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

Merged
merged 1 commit into from
Mar 18, 2024
Merged

chore: use sqlc-vet to verify schema #12642

merged 1 commit into from
Mar 18, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Mar 18, 2024

Related: #12619

I tried to find a clean way to lint our queries, migration files, and dump.sql against hardcoded public schema. This is a proposal for queries.

BTW We still have hardcoded public schema in dump.sql.

@mtojek mtojek self-assigned this Mar 18, 2024
@mtojek mtojek requested review from johnstcn and mafredri March 18, 2024 14:06
@mtojek mtojek marked this pull request as ready for review March 18, 2024 14:06
@matifali
Copy link
Member

Created an issue to add regression prevention tests. #12640

@johnstcn
Copy link
Member

Related: #12619

I tried to find a clean way to lint our queries, migration files, and dump.sql against hardcoded public schema. This is a proposal for queries.

BTW We still have hardcoded public schema in dump.sql.

I don't the hardcoded schema in the dump is an issue here; although a good follow-up PR would be to test migrations against a custom schema.

@mtojek mtojek merged commit 15845d1 into main Mar 18, 2024
@mtojek mtojek deleted the 12620-lint-sql-3 branch March 18, 2024 14:23
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants