Mercurial Hosting > traffic-intelligence
comparison python/delete-object-tables.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 | |
children |
comparison
equal
deleted
inserted
replaced
234:2d34060db2e9 | 235:584613399513 |
---|---|
1 #! /usr/bin/env python | |
2 | |
3 import sys,getopt | |
4 | |
5 import utils | |
6 import storage | |
7 | |
8 options, args = getopt.getopt(sys.argv[1:], 'h',['help']) | |
9 options = dict(options) | |
10 | |
11 if '--help' in options.keys() or '-h' in options.keys() or len(args) == 0: | |
12 print('Usage: {0} --help|-h <database-filename.sqlite>'.format(sys.argv[0])) | |
13 sys.exit() | |
14 | |
15 storage.removeObjectsFromSqlite(args[0]) |