21 lines
518 B
Plaintext
21 lines
518 B
Plaintext
:sig
|
|
void sqlite_disconnect(SQLite* db)
|
|
|
|
:params
|
|
db : pointer to an active SQLite connection
|
|
|
|
:see
|
|
>sqlite
|
|
sqlite_connect
|
|
|
|
:content
|
|
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");
|