Capy-Bearer Documentation

mysql_disconnect

host call

Capy

function mysql_disconnect(handle : u64)

Description

mysql_disconnect() releases the MySQL connection lease.

Do not use the handle after this call.

Parameters

handle : the MySQL connection handle

Example

Capy

var database := mysql_connect("localhost", "root", "", "")
if database { mysql_disconnect(database) }
print("connection released\n")