Aug-03-2020, 10:33 PM
if you use SqlAlchemy, rather than osm2pgsql, you can easily tract all transactions.
see: https://docs.sqlalchemy.org/en/13/orm/se...vents.html
I have a short tutorial on this forum which shows the basics for SqlAlchemy here: https://python-forum.io/Thread-SqlAlchem...-Data-Load
the tutorial is for sqlite, but you should be able to use PostgreSQL with a one line change to line 17 of the database model.
It's well worth the small learning curve.
see: https://docs.sqlalchemy.org/en/13/orm/se...vents.html
I have a short tutorial on this forum which shows the basics for SqlAlchemy here: https://python-forum.io/Thread-SqlAlchem...-Data-Load
the tutorial is for sqlite, but you should be able to use PostgreSQL with a one line change to line 17 of the database model.
It's well worth the small learning curve.