Updated on 2025-10-23 GMT+08:00

connection.close()

Description

This method closes the database connection.

This method closes the database connection and does not automatically call commit(). If you just close the database connection without calling commit() first, changes will be lost. The M-compatible database does not support the connection.kill(thred_id) interface.

Prototype

connection.close()

Parameters

None

Return Value

None

Examples

For details, see Examples: Common Operations.