Repository navigation
MySQL_RunBatch
imshooter edited this page Oct 24, 2026
·
1 revision
Send the rows of a batch and wait for them, as MySQL_Run does, and forget it.
native bool:MySQL_RunBatch(Batch:batch);| Parameter | Description |
|---|---|
Batch:batch |
The batch. |
-
truewhen it succeeded. -
falsewhen it failed, the batch or its statement does not exist, or a limit of the connection refused it.
It waits as MySQL_Run does, so it suits saving everything when the server shuts down.
new Statement:gSaveScore;
stock SaveScoresNow(const ids[]) {
new const
Batch:batch = MySQL_CreateBatch(gSaveScore)
;
for (new i; i != MAX_PLAYERS; ++i) {
if (IsPlayerConnected(i)) {
MySQL_AddRow(batch, GetPlayerScore(i), ids[i]);
}
}
return MySQL_RunBatch(batch);
}- MySQL_ExecuteBatch: Send the rows of a batch after the queries sent before it, and forget it, also when it is refused.
- MySQL_Run: Run a query and wait for it, after the queries sent before it.
MySQL 0.2.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- Results
- JSON cells
- Prepared statements
- Passwords
- Errors
- TLS
- Coming from R41
- Performance
Reference
Functions