{
"id": "fn-sqlite-close",
"dataComponent": "sqlite",
"heading": {
"title": "close",
"badges": ["SQLite"]
},
"synopsis": "Closes an open SQLite database connection, freeing resources.",
"codeBlocks": [
"extend(\"sqlite\")\n\nres = sqlite:open([ path: \"test.db\" ])\nsqlite:close([ handle: res[\"handle\"] ])\n# => true"
],
"notes": [
"Takes a keyed array: [ handle:int ].",
"Closes the open connection associated with the handle. Frees associated resources.",
"Returns Bool(true) on success, or raises an error if the handle was already closed or invalid.",
"After closing, further queries using this handle will error."
]
}