cleanup, docs

This commit is contained in:
root
2026-06-17 13:02:57 +00:00
parent b8b56cf3dd
commit 4eda629c8d
20 changed files with 24 additions and 50 deletions
-11
View File
@@ -21,17 +21,6 @@ Executes one SQLite statement and returns result rows as a `DValue` array. Multi
Use named parameters with `:name` placeholders only. Positional `?` placeholders and SQLite's other named marker forms (`@name`, `$name`) are rejected so UCE SQLite queries use the same placeholder style as the MySQL helper. UCE binds parameters with SQLite prepared statements; it does not substitute values into the SQL string.
```cpp
SQLite* db = sqlite_connect("/tmp/app.sqlite");
StringMap params;
params["email"] = "ada@example.test";
DValue rows = sqlite_query(db,
"select id, email from users where email = :email",
params
);
```
Result rows are objects keyed by column name. SQLite integer, float, text, blob, and null values are converted to DValue values. Blob values are returned as byte strings.
For statements that do not return rows, inspect `sqlite_affected_rows()` or `sqlite_insert_id()` after the call.