config test
This commit is contained in:
parent
f69407305a
commit
c9d2c365d5
@ -133,10 +133,13 @@ class SQLite:
|
|||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
|
||||||
def dbQuery(self,query='SELECT'):
|
def dbQuery(self,query='SELECT'):
|
||||||
self.__openDb()
|
try:
|
||||||
self.cursor.execute(query)
|
self.__openDb()
|
||||||
rows = self.cursor.fetchall()
|
self.cursor.execute(query)
|
||||||
self.__closeDb()
|
rows = self.cursor.fetchall()
|
||||||
|
self.__closeDb()
|
||||||
|
except sqlite3.OperationalError:
|
||||||
|
rows = None
|
||||||
return rows
|
return rows
|
||||||
|
|
||||||
def dbInsert(self,ts,k,v):
|
def dbInsert(self,ts,k,v):
|
||||||
|
Loading…
Reference in New Issue
Block a user