Lines Matching refs:con

35         con = sqlite.connect(":memory:")
37 con.create_collation(None, lambda x, y: (x > y) - (x < y))
40 con = sqlite.connect(":memory:")
42 con.create_collation("X", 42)
46 con = sqlite.connect(":memory:")
47 con.create_collation("collä", lambda x, y: (x > y) - (x < y))
53 con = sqlite.connect(":memory:")
55 con.create_collation(BadUpperStr("mycoll"), mycoll)
56 result = con.execute("""
71 con = sqlite.connect(":memory:")
72 con.create_collation("mycoll", mycoll)
82 result = con.execute(sql).fetchall()
86 con.create_collation("mycoll", None)
88 result = con.execute(sql).fetchall()
95 con = sqlite.connect(":memory:")
96 con.create_collation("mycoll", mycoll)
106 result = con.execute(sql).fetchall()
115 con = sqlite.connect(":memory:")
116 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
117 con.create_collation("mycoll", lambda x, y: -((x > y) - (x < y)))
118 result = con.execute("""
129 con = sqlite.connect(":memory:")
130 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
131 con.create_collation("mycoll", None)
133 con.execute("select 'a' as x union select 'b' as x order by x collate mycoll")
141 con = sqlite.connect(":memory:")
146 con.set_progress_handler(progress, 1)
147 con.execute("""
156 con = sqlite.connect(":memory:")
161 con.set_progress_handler(progress, 1)
162 curs = con.cursor()
168 con.set_progress_handler(progress, 2)
179 con = sqlite.connect(":memory:")
182 con.set_progress_handler(progress, 1)
183 curs = con.cursor()
193 con = sqlite.connect(":memory:")
199 con.set_progress_handler(progress, 1)
200 con.set_progress_handler(None, 1)
201 con.execute("select 1 union select 2 union select 3").fetchall()
206 con = sqlite.connect(":memory:")
209 con.set_progress_handler(bad_progress, 1)
211 con.execute("""
217 con = sqlite.connect(":memory:")
223 con.set_progress_handler(bad_progress, 1)
225 con.execute("""
245 con = sqlite.connect(":memory:")
249 con.set_trace_callback(trace)
250 con.execute("create table foo(a, b)")
258 con = sqlite.connect(":memory:")
262 con.set_trace_callback(trace)
263 con.set_trace_callback(None)
264 con.execute("create table foo(a, b)")
272 con = sqlite.connect(":memory:")
276 con.set_trace_callback(trace)
277 con.execute("create table foo(x)")
278 con.execute("insert into foo(x) values ('%s')" % unicode_value)
279 con.commit()