Lines Matching refs:bck
34 bck = sqlite.connect(':memory:')
35 bck.close()
37 self.cx.backup(bck)
40 bck = sqlite.connect(':memory:')
44 source.backup(bck)
47 bck = sqlite.connect(':memory:')
48 bck.execute('CREATE TABLE bar (key INTEGER)')
49 bck.executemany('INSERT INTO bar (key) VALUES (?)', [(3,), (4,)])
51 self.cx.backup(bck)
57 with sqlite.connect(':memory:') as bck:
58 self.cx.backup(bck, 1)
61 with sqlite.connect(':memory:') as bck:
62 self.cx.backup(bck)
63 self.verify_backup(bck)
71 with sqlite.connect(':memory:') as bck:
72 self.cx.backup(bck, pages=1, progress=progress)
73 self.verify_backup(bck)
85 with sqlite.connect(':memory:') as bck:
86 self.cx.backup(bck, progress=progress)
87 self.verify_backup(bck)
98 with sqlite.connect(':memory:') as bck:
99 self.cx.backup(bck, pages=-1, progress=progress)
100 self.verify_backup(bck)
107 with sqlite.connect(':memory:') as bck:
108 self.cx.backup(bck, pages=1, progress='bar')
120 with sqlite.connect(':memory:') as bck:
121 self.cx.backup(bck, pages=1, progress=progress)
122 self.verify_backup(bck)
124 result = bck.execute("SELECT key FROM foo"
139 with sqlite.connect(':memory:') as bck:
140 self.cx.backup(bck, progress=progress)
144 with sqlite.connect(':memory:') as bck:
145 self.cx.backup(bck, name='main')
146 with sqlite.connect(':memory:') as bck:
147 self.cx.backup(bck, name='temp')
149 with sqlite.connect(':memory:') as bck:
150 self.cx.backup(bck, name='non-existing')
160 with sqlite.connect(':memory:') as bck:
161 self.cx.backup(bck, name='attached_db')
162 self.verify_backup(bck)