Lines Matching refs:con
133 con = sqlite.connect(":memory:")
134 cur = con.cursor()
139 con.rollback()
186 self.con = sqlite.connect(":memory:")
187 self.cur1 = self.con.cursor()
188 self.cur2 = self.con.cursor()
189 with self.con:
190 self.con.execute("create table t(c)");
191 self.con.executemany("insert into t values(?)", [(0,), (1,), (2,)])
195 self.con.rollback()
199 self.con.close()
221 self.con = sqlite.connect(":memory:")
222 self.cur = self.con.cursor()
236 self.con.close()
241 self.con = sqlite.connect(":memory:")
246 self.con.execute("create table test(i)")
247 self.con.rollback()
248 result = self.con.execute("select * from test").fetchall()
254 self.con.execute("begin immediate")
255 self.con.execute("create table test(i)")
256 self.con.rollback()
258 self.con.execute("select * from test")
263 self.con.execute("begin")
264 self.con.execute("create table test(i)")
265 self.con.rollback()
267 self.con.execute("select * from test")
270 self.con.close()