Mercurial Hosting > traffic-intelligence
comparison python/utils.py @ 235:584613399513
added script and functions to remove object tables
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 05 Jul 2012 23:32:14 -0400 |
parents | ab1a11176d7b |
children | ee1caff48b03 |
comparison
equal
deleted
inserted
replaced
234:2d34060db2e9 | 235:584613399513 |
---|---|
318 | 318 |
319 ######################### | 319 ######################### |
320 # sqlite | 320 # sqlite |
321 ######################### | 321 ######################### |
322 | 322 |
323 #def dropTable(db, tableName): | 323 def dropTables(connection, tableNames): |
324 | 324 'deletes the table with names in tableNames' |
325 | 325 cursor = connection.cursor() |
326 #def removeObjectsSqlite(filename): | 326 for tableName in tableNames: |
327 # 'Removes the objects and object_features tables in the filename' | 327 cursor.execute('DROP TABLE '+tableName) |
328 | 328 |
329 ######################### | 329 ######################### |
330 # running tests | 330 # running tests |
331 ######################### | 331 ######################### |
332 | 332 |