mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2026-01-17 13:31:07 +00:00
At some point we'll deprecate add_row(), tests that don't explicitly test add_row() should use insert().
16 lines
347 B
Lua
16 lines
347 B
Lua
|
|
local rel_table = osm2pgsql.define_relation_table('osm2pgsql_test_relations', {
|
|
{ column = 'tags', type = 'hstore' }
|
|
})
|
|
|
|
function osm2pgsql.select_relation_members(relation)
|
|
return { ways = osm2pgsql.way_member_ids(relation) }
|
|
end
|
|
|
|
function osm2pgsql.process_relation(object)
|
|
rel_table:insert({
|
|
tags = object.tags
|
|
})
|
|
end
|
|
|