]>
git.saurik.com Git - cycript.git/blob - libcycript.py
9 for db
in sys
.argv
[2:]:
10 with sqlite3
.connect(db
) as sql
:
12 for name
, system
, value
in c
.execute('select name, system, value from cache'):
14 keys
[key
] = keys
.get(key
, 0) | system
17 with sqlite3
.connect(db
) as sql
:
19 for key
, system
in keys
.items():
21 many
.append((name
, system
, value
))
23 c
.executemany("insert into cache (name, system, value) values (?, ?, ?)", many
)