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
Uh oh!
There was an error while loading. Please reload this page.
-
We are using Martin with the following config:
So everything in our
frontendschema is published on restart.What I'm missing is setting the
idfor those autopublished tables. I would either like to specify a column for all tables (just likeid_columnfor specific tables) or Martin to automatically use a column namedidand being of typeint. I know I can usepromoteIdwithmaplibre-gl-jsto specifiy myidproperty 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