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

refactor: make the function that queries all tables more reusable #47

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

laurenceisla
Copy link
Member

Closes #35

The refactors done to the Schema Cache queries (specially tables) in PostgREST/postgrest#3644 helped a lot in simplifying the queries here.

- Merges postgrest_get_all_tables and postgrest_get_all_composite_types
- Removes the need of using unnest(), making the queries a bit more performant
@laurenceisla laurenceisla merged commit 95bdd26 into PostgREST:main Sep 2, 2024
3 checks passed
@laurenceisla laurenceisla deleted the reusable-pgrst-functions branch September 2, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

The functions from postgrest.sql are not very reusable
2 participants