MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / close_db

Function close_db

modules/dasSQLITE/sqlite/shell.c:20576–20582  ·  view source on GitHub ↗

** Attempt to close the databaes connection. Report errors. */

Source from the content-addressed store, hash-verified

20574** Attempt to close the databaes connection. Report errors.
20575*/
20576void close_db(sqlite3 *db){
20577 int rc = sqlite3_close(db);
20578 if( rc ){
20579 utf8_printf(stderr, "Error: sqlite3_close() returns %d: %s\n",
20580 rc, sqlite3_errmsg(db));
20581 }
20582}
20583
20584#if HAVE_READLINE || HAVE_EDITLINE
20585/*

Callers 4

tryToCloneFunction · 0.85
arDotCommandFunction · 0.85
do_meta_commandFunction · 0.85
wmainFunction · 0.85

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected