Skip to content

mysql_stats

imshooter edited this page Dec 1, 2026 · 2 revisions

What a handle ran since it was opened.

native bool:mysql_stats(
    &sent,
    &failed,
    &Float:average,
    &Float:longest,
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

With open.mp names, from the same include:

native bool:MySQL_GetStats(
    &sent,
    &failed,
    &Float:average,
    &Float:longest,
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

Parameters

Parameter Description
&sent Variable for the queries sent.
&failed Variable for the queries that failed.
&Float:average Variable for the milliseconds a query took on average.
&Float:longest Variable for the milliseconds of the longest query.
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • true when they were written.
  • false when the handle does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally