Forked from juanignaciosl/gist:7fb569a5779534f580895b381aa2a663
Last active
March 3, 2022 20:13
-
-
Save rayrayzayzay/5016b74021ae685e24d00795a5c9629f to your computer and use it in GitHub Desktop.
Felt - blogpost 2022, March
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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