mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 22:20:56 +00:00
feat(logger/command): Warning message when mysql command is run from server (#97)
This commit is contained in:
1 parent
afc04fc553
commit
4417b728fa
1 file changed
+5
@@ -35,6 +35,11 @@ RegisterCommand(
|
|||||||
(source: number) => {
|
(source: number) => {
|
||||||
if (!mysql_ui) return;
|
if (!mysql_ui) return;
|
||||||
|
|
||||||
|
if (source < 1) { // source is 0 when received from the server
|
||||||
|
console.log("^3This command cannot run server side^0");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let totalQueries: number = 0;
|
let totalQueries: number = 0;
|
||||||
let totalTime = 0;
|
let totalTime = 0;
|
||||||
let slowQueries = 0;
|
let slowQueries = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user