Repository navigation
MySQL_Close
imshooter edited this page Oct 24, 2026
·
1 revision
Close a handle after running every query still waiting.
The publics of those queries are not called. The script that connected closes its handles itself when it unloads.
native bool:MySQL_Close(MySQL:handle);| Parameter | Description |
|---|---|
MySQL:handle |
Handle to close. |
-
truewhen it was closed. -
falsewhen it does not exist.
Every query still waiting runs before the connections close, and the native returns when they are done, so nothing sent before it is lost. Their publics are not called. A handle is also closed when the script that made it unloads.
new MySQL:gDatabase;
public OnGameModeExit() {
MySQL_Close(gDatabase);
return 1;
}- MySQL_Connect: Connect to a database.
- MySQL_ConnectFile: Connect to a database with the settings of a file.
- MySQL_GetPendingCount: How many queries of a handle wait or run.
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