doneill / koop-provider-pg

A postgis provider for koop
Apache License 2.0
13 stars 6 forks source link

multiple PG_OBJECTID column names? #14

Closed rotten closed 9 months ago

rotten commented 1 year ago

I have multiple tables in my PostGIS database but they don't all have the same unique identifier as the column name. Is there a way to support a different identifier for each table - or do I have to change my database to ensure the column name is the same for each table? (or put views on them)

doneill commented 11 months ago

Currently the provider expects a consistent unique identifier across all tables which defaults to gid or can be set with the PG_OBJECTID variable

# value should be String, eg. "id"
export PG_OBJECTID="${OBJECT_ID}"