Skip to content

Commit a32ddb8

Browse files
committed
docs
1 parent 7546a9c commit a32ddb8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config/pg_featureserv.toml.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ WriteTimeoutSec = 30
6868
# Publish functions from these schemas (default is publish postgisftw)
6969
# FunctionIncludes = [ "postgisftw", "schema2" ]
7070

71+
# Designate a column as the feature ID (where primary key is not available e.g. views/functions)
72+
IdColumn = "id"
73+
7174
[Paging]
7275
# The default number of features in a response
7376
LimitDefault = 20

hugo/content/installation/configuration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ WriteTimeoutSec = 30
119119
# Publish functions from these schemas (default is publish postgisftw)
120120
# FunctionIncludes = [ "postgisftw", "schema2" ]
121121

122+
# Designate a column as the feature ID (where primary key is not available e.g. views/functions)
123+
IdColumn = "id"
124+
122125
[Paging]
123126
# The default number of features in a response
124127
LimitDefault = 20
@@ -243,6 +246,12 @@ Overrides items specified in `TableIncludes`.
243246
A list of the schemas to publish functions from.
244247
The default is to publish functions in the `postgisftw` schema.
245248

249+
#### IdColumn
250+
251+
The column to use as the feature ID in cases where a primary key is not available. The default is `id`.
252+
253+
> NOTE: The presence of a primary key will supercede this setting.
254+
246255
#### LimitDefault
247256

248257
The default number of features in a response,

0 commit comments

Comments
 (0)