cleanup, docs
This commit is contained in:
@@ -28,4 +28,7 @@ SQLite itself handles file locking and one-writer/many-reader concurrency. UCE d
|
||||
Connections are registered for request cleanup, but explicit `sqlite_disconnect()` is still preferred when you are done with the handle.
|
||||
|
||||
:example
|
||||
print("sqlite_connect is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
SQLite* db = sqlite_connect("/tmp/doc-sqlite-connect.db");
|
||||
sqlite_query(db, "create table if not exists t(id integer primary key, name text)");
|
||||
print(db != 0 ? "connected" : "failed to connect", "\n");
|
||||
sqlite_disconnect(db);
|
||||
|
||||
Reference in New Issue
Block a user