Skip to content

Instantly share code, notes, and snippets.

@pcote
Last active March 13, 2016 22:39
Show Gist options
  • Select an option

  • Save pcote/739d4e51bd56aa57edf1 to your computer and use it in GitHub Desktop.

Select an option

Save pcote/739d4e51bd56aa57edf1 to your computer and use it in GitHub Desktop.
conn = eng.connect()
resource_parm = bindparam("resource_id", type_=Integer)
now = datetime.now()
query = resource_deletion_table.insert()\
.values(resource_id=resource_parm, deletion_time=now)
conn.execute(query, resource_id=resource_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment