From 1c3b47ad606a6faeb07ea193b0c24617ac5eb579 Mon Sep 17 00:00:00 2001 From: James Vasile Date: Thu, 1 Dec 2011 09:28:37 -0500 Subject: add commit method --- withsqlite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/withsqlite.py b/withsqlite.py index 4281a5e..13e7a89 100644 --- a/withsqlite.py +++ b/withsqlite.py @@ -181,7 +181,8 @@ True return self.__getitem__(k) except KeyError: return x - + def commit(self): + self.conn.commit() def clear(self): """a.clear() remove all items from a""" self.crsr.execute("delete from store") -- cgit v1.2.3