Lines Matching refs:con
31 con = sqlite.connect(":memory:")
33 con.create_collation(None, lambda x, y: (x > y) - (x < y))
36 con = sqlite.connect(":memory:")
38 con.create_collation("X", 42)
42 con = sqlite.connect(":memory:")
44 con.create_collation("collä", lambda x, y: (x > y) - (x < y))
50 con = sqlite.connect(":memory:")
52 con.create_collation(BadUpperStr("mycoll"), mycoll)
53 result = con.execute("""
68 con = sqlite.connect(":memory:")
69 con.create_collation("mycoll", mycoll)
79 result = con.execute(sql).fetchall()
83 con.create_collation("mycoll", None)
85 result = con.execute(sql).fetchall()
92 con = sqlite.connect(":memory:")
93 con.create_collation("mycoll", mycoll)
103 result = con.execute(sql).fetchall()
112 con = sqlite.connect(":memory:")
113 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
114 con.create_collation("mycoll", lambda x, y: -((x > y) - (x < y)))
115 result = con.execute("""
126 con = sqlite.connect(":memory:")
127 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
128 con.create_collation("mycoll", None)
130 con.execute("select 'a' as x union select 'b' as x order by x collate mycoll")
138 con = sqlite.connect(":memory:")
143 con.set_progress_handler(progress, 1)
144 con.execute("""
154 con = sqlite.connect(":memory:")
159 con.set_progress_handler(progress, 1)
160 curs = con.cursor()
166 con.set_progress_handler(progress, 2)
177 con = sqlite.connect(":memory:")
180 con.set_progress_handler(progress, 1)
181 curs = con.cursor()
191 con = sqlite.connect(":memory:")
197 con.set_progress_handler(progress, 1)
198 con.set_progress_handler(None, 1)
199 con.execute("select 1 union select 2 union select 3").fetchall()
207 con = sqlite.connect(":memory:")
211 con.set_trace_callback(trace)
212 con.execute("create table foo(a, b)")
220 con = sqlite.connect(":memory:")
224 con.set_trace_callback(trace)
225 con.set_trace_callback(None)
226 con.execute("create table foo(a, b)")
234 con = sqlite.connect(":memory:")
238 con.set_trace_callback(trace)
239 con.execute("create table foo(x)")
240 con.execute("insert into foo(x) values ('%s')" % unicode_value)
241 con.commit()