Skip to content

Commit bffa25c

Browse files
committed
Add global cluster option as default for individual tables
1 parent 92a8c4d commit bffa25c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/themepark.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ local themepark = {
5252
schema = 'public',
5353
srid = 3857,
5454
attribution = '© OpenStreetMap contributors - https://openstreetmap.org/copyright',
55+
cluster = 'auto',
5556
},
5657
process = {
5758
node = {},
@@ -375,6 +376,10 @@ function themepark:add_table(data)
375376
data.schema = self.options.schema
376377
end
377378

379+
if not data.cluster then
380+
data.cluster = self.options.cluster
381+
end
382+
378383
table.insert(self.layers, data)
379384

380385
if not data.external then

0 commit comments

Comments
 (0)