Multiple Catalogs per database instance #118
vincentsarago
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussion started on Slack with @ranchodeluxe
Sometimes user could want to have distinct endpoint per schema instead of having a set of endpoint pointing to all schemas. This is to avoid the
/collections
endpoint to return collections for multiple schemas.A possible solution is to add
/{schema}
prefix on all the Factory routes and have a custom collection dependency which will use theschema
path parameter to select the collection from the schema's catalog.This 👇 is a code sample which tries to do it (not fully tested)
Notes:
{schema}.{table}
as the collection parameter (because of the pg_temp functions){schema}.{table}
☝️ could be easily solved by updating the catalog's collection ids
We could also add a landing
/
page which could list the differentcatalogs
What the specification says
The OGC specification do not have
catalog
notions so this will mostly break the specsBeta Was this translation helpful? Give feedback.
All reactions