Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rayrayzayzay/5016b74021ae685e24d00795a5c9629f to your computer and use it in GitHub Desktop.
Save rayrayzayzay/5016b74021ae685e24d00795a5c9629f to your computer and use it in GitHub Desktop.
Felt - blogpost 2022, March
geo_db_meta = MetaData()
geo_db_meta.reflect(bind=engine)
geom_table = geo_db_meta.tables[table_name]
initial_cols = _column_metadata_from_columns(geom_table.columns)
stmt = (
update(snapshots).where(snapshots.c.id==snapshot_id)
.values(columns=initial_cols)
)
session = orm.Session(bind=bind)
session.execute(stmt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment