Modernize with-schema.lua example config

* Use insert()
This commit is contained in:
Jochen Topf
2022-09-29 22:03:52 +02:00
parent 115e748b10
commit ead1020259

View File

@ -8,13 +8,13 @@
local dtable = osm2pgsql.define_way_table('data', {
{ column = 'tags', type = 'jsonb' },
{ column = 'geom', type = 'geometry' },
{ column = 'geom', type = 'linestring' },
}, { schema = 'myschema' })
function osm2pgsql.process_way(object)
dtable:add_row({
dtable:insert({
tags = object.tags,
geom = { create = 'line' }
geom = object:as_linestring()
})
end