open-databaseclose-database and destroy-database are fully thread safe. This comes at the expense of a global lock which could be a bottleneck in situations where many databases are being opened and closed.
open-database is also idempotent. Instead of throwing an error, attempting to open an already open database will return the existing database connection.
open-database
close-database
anddestroy-database
are fully thread safe. This comes at the expense of a global lock which could be a bottleneck in situations where many databases are being opened and closed.open-database
is also idempotent. Instead of throwing an error, attempting to open an already open database will return the existing database connection.