Lines Matching refs:bck
34 bck = sqlite.connect(':memory:')
35 bck.close()
37 self.cx.backup(bck)
40 bck = sqlite.connect(':memory:')
41 bck.execute('CREATE TABLE bar (key INTEGER)')
42 bck.executemany('INSERT INTO bar (key) VALUES (?)', [(3,), (4,)])
44 self.cx.backup(bck)
50 with sqlite.connect(':memory:') as bck:
51 self.cx.backup(bck, 1)
54 with sqlite.connect(':memory:') as bck:
55 self.cx.backup(bck)
56 self.verify_backup(bck)
64 with sqlite.connect(':memory:') as bck:
65 self.cx.backup(bck, pages=1, progress=progress)
66 self.verify_backup(bck)
78 with sqlite.connect(':memory:') as bck:
79 self.cx.backup(bck, progress=progress)
80 self.verify_backup(bck)
91 with sqlite.connect(':memory:') as bck:
92 self.cx.backup(bck, pages=-1, progress=progress)
93 self.verify_backup(bck)
100 with sqlite.connect(':memory:') as bck:
101 self.cx.backup(bck, pages=1, progress='bar')
113 with sqlite.connect(':memory:') as bck:
114 self.cx.backup(bck, pages=1, progress=progress)
115 self.verify_backup(bck)
117 result = bck.execute("SELECT key FROM foo"
132 with sqlite.connect(':memory:') as bck:
133 self.cx.backup(bck, progress=progress)
137 with sqlite.connect(':memory:') as bck:
138 self.cx.backup(bck, name='main')
139 with sqlite.connect(':memory:') as bck:
140 self.cx.backup(bck, name='temp')
142 with sqlite.connect(':memory:') as bck:
143 self.cx.backup(bck, name='non-existing')
153 with sqlite.connect(':memory:') as bck:
154 self.cx.backup(bck, name='attached_db')
155 self.verify_backup(bck)