Skip to content

Instantly share code, notes, and snippets.

View rayrayzayzay's full-sized avatar

Rachel Zack rayrayzayzay

View GitHub Profile
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)