refactor: rename DTree to DValue

This commit is contained in:
udo
2026-06-12 11:05:52 +00:00
parent 941f5aea08
commit 7066da3cde
157 changed files with 1203 additions and 1074 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
:sig
DTree mysql_query(MySQL* m, String q, StringMap params)
DValue mysql_query(MySQL* m, String q, StringMap params)
:params
m : pointer to an active MySQL connection struct
@@ -18,13 +18,13 @@ Executes a MySQL query and returns the resulting data, if any.
```cpp
StringMap params;
params["email"] = "ada@example.test";
DTree rows = mysql_query(m,
DValue rows = mysql_query(m,
"select id, email from users where email = :email",
params
);
```
The result is returned as a `DTree`, which makes it easy to iterate through rows and read fields with the usual `DTree` accessors.
The result is returned as a `DValue`, which makes it easy to iterate through rows and read fields with the usual `DValue` accessors.
Related: