DbClose

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 12:44, 4 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

dbClose

Closes a database connection owned by the current resource.

Syntax

bool dbClose(DatabaseConnection connection)

Parameters

Name Type Required Description
connection DatabaseConnection yes The connection returned by dbConnect.

Returns

Returns true when the connection is closed; otherwise returns false.

Examples

Close a resource database connection:

if db and dbIsConnected(db) then
    dbClose(db)
end

Notes

  • Available only in server-side resource scripts.