dbRemoveDatabase#
Purpose#
Removes a database connection from the list of open database connections. Frees all related resources.
Format#
- dbRemoveDatabase(db_id)#
- Parameters:
db_id (scalar) – database connection index number.
Examples#
// Add MySQL to the list of database connections
db_id = dbAddDatabase("MYSQL");
dbSetDatabaseName(db_id, "mydb");
dbOpen(db_id);
// Perform database operations...
// Close and remove the connection entirely
dbClose(db_id);
dbRemoveDatabase(db_id);