connection.close()

Function

This method closes the database connection.

CAUTION

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.

Prototype

connection.close()

Parameter

None

Return Value

None

Examples

For details, see Example: Common Operations.