mbligh | d5c33db | 2006-10-08 21:34:16 +0000 | [diff] [blame^] | 1 | import sqlite |
2 | |||||
3 | class db: | ||||
4 | def __init__(self): | ||||
5 | self.con = sqlite.connect('tko_db') | ||||
6 | self.cur = self.con.cursor() | ||||
7 | |||||
8 | |||||
9 | def select(self, cmd): | ||||
10 | self.cur.execute('select ' + cmd) | ||||
11 | return self.cur.fetchall() | ||||
12 |