Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The module containing operations on MariaDB query results.
val num_rows : t -> int
num_rows res
returns the number of rows in result res
after the execution of a SELECT
-type query.
val affected_rows : t -> int
affected_rows res
returns the number of affected rows in result res
after the execution of an INSERT
or UPDATE
-type query.
val insert_id : t -> int
insert_id res
returns the ID generated by a prepared statement on a table with a column having the AUTO_INCREMENT
attribute. If the last query wasn't an INSERT
or UPDATE
statement or if the modified table does not have a column with the AUTO_INCREMENT
attribute, this function will return zero.