MCPcopy
hub / github.com/jarun/buku / close

Method close

buku.py:3248–3257  ·  view source on GitHub ↗

Close a DB connection.

(self)

Source from the content-addressed store, hash-verified

3246 self.conn.commit()
3247
3248 def close(self):
3249 """Close a DB connection."""
3250
3251 if self.conn is not None:
3252 try:
3253 self.cur.close()
3254 self.conn.close()
3255 except Exception:
3256 # ignore errors here, we're closing down
3257 pass
3258
3259 def close_quit(self, exitval=0):
3260 """Close a DB connection and exit.

Callers 15

exportdbMethod · 0.95
get_bukudbFunction · 0.95
bukudbFunction · 0.95
load_firefox_databaseMethod · 0.80
importdbMethod · 0.80
mergedbMethod · 0.80
close_quitMethod · 0.80
fetch_dataFunction · 0.80
promptFunction · 0.80
print_json_safeFunction · 0.80
browseFunction · 0.80
edit_recFunction · 0.80

Calls

no outgoing calls

Tested by 8

bukudbFunction · 0.76
appFunction · 0.64
_env_fixtureFunction · 0.64
clientFunction · 0.64
rmdbFunction · 0.64
test_initdbMethod · 0.64
test_exportdb_single_recFunction · 0.64
test_exportdb_to_dbFunction · 0.64