Skip to content

Instantly share code, notes, and snippets.

@juanignaciosl
Last active March 3, 2022 19:37
Show Gist options
  • Save juanignaciosl/7fb569a5779534f580895b381aa2a663 to your computer and use it in GitHub Desktop.
Save juanignaciosl/7fb569a5779534f580895b381aa2a663 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