Specifying an id
with auto_publish
like id_column
#680
KiwiKilian
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I guess we could add an auto_publish:
tables:
# Set a custom source ID based on the table name
id_format: 'table.{schema}.{table}.{column}'
# A table column to use as the feature ID
# If a table has no column with this name, `id_column` will not be set for that table.
# We could even allow a list of strings here - the first found column will be treated as a feature ID.
id_column: 'id' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Martin with the following config:
So everything in our
frontend
schema is published on restart.What I'm missing is setting the
id
for those autopublished tables. I would either like to specify a column for all tables (just likeid_column
for specific tables) or Martin to automatically use a column namedid
and being of typeint
. I know I can usepromoteId
withmaplibre-gl-js
to specifiy myid
property on the frontend as the MVTid
, but it would feel more natural to properly publish from Martin.Beta Was this translation helpful? Give feedback.
All reactions