You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql.affected_rows({query: 'UPDATE pet SET name='Marley' WHEREname='Fleddy';',
params: ['dog'],},false,{deep: 1,timeout: 10}).then(|res|{
res;// just return the response.});
GetDbStats
The following database statistics are returned:
Idle: the number of idle connections.
InUse: the number of connections currently in use.
MaxIdleClosed: the total number of connections closed due to SetMaxIdleConns.
MaxIdleTimeClosed: the total number of connections closed due to SetConnMaxIdleTime.
MaxLifetimeClosed: the total number of connections closed due to SetConnMaxLifetime.
MaxOpenConnections: maximum number of open connections to the database.
OpenConnections: the number of established connections both in use and idle.
WaitCount: the total number of connections waited for.
WaitDuration: the total time blocked waiting for a new connection.
Arguments
No arguments required.
Example:
mysql.get_db_stats().then(|res|{
res;// just return the response.});