Expose MySQL affected row counts

This commit is contained in:
udo
2026-07-13 07:10:03 +00:00
parent 7281302287
commit d857930ceb
8 changed files with 50 additions and 1 deletions
+3
View File
@@ -9,6 +9,7 @@ return value : a list of rows returned from executing the query
:see
>mysql
mysql_affected_rows
:content
Executes a MySQL query and returns the resulting data, if any.
@@ -17,6 +18,8 @@ Executes a MySQL query and returns the resulting data, if any.
The result is returned as a `DValue`, which makes it easy to iterate through rows and read fields with the usual `DValue` accessors.
After an insert, update, or delete, use `mysql_affected_rows()` to inspect how many rows changed.
:example
MySQL* db = mysql_connect();
if(db != 0)