DB::CLOSE — Database Connection Closure 1g 2025-07-04 laplante@plcb.ca GOWEB/Database


title: “DB::CLOSE Function” date: 2025-07-04 author: “laplante@plcb.ca” version: “1.0.0”

module: “GOWEB/Database”

Name

db::close — Database Connection Closure

Synopsis

db::close(database)

Description

The db::close function is used to properly close an active database connection.
It should always be called after database operations are completed in order to release resources and maintain system stability.

Examples

dsn := "goweb:goweb@tcp(127.0.0.1:3306)/goweb";
db := db::connect(dsn);
sql(db:db, "show tables");
db::close(db);

Author

laplante@plcb.ca

See also

Version History