UCE Docs / sqlite_disconnect

Signature

void sqlite_disconnect(SQLite* db)

Parameters

db : pointer to an active SQLite connection

Closes an SQLite connection and deletes the UCE connection wrapper.

UCE also cleans up SQLite connections that remain open at request end, but explicit disconnects keep resource lifetime local and clear.

Example

SQLite* db = sqlite_connect("/tmp/doc-sqlite-disc.db");
sqlite_query(db, "create table if not exists t(id integer)");
sqlite_disconnect(db);
print("connection closed\n");
Output
connection closed