Closes the database connection.
A promise that resolves when the connection is closed
Establishes the database connection.
A promise that resolves when the connection is established
Retrieves the underlying connection object.
This method uses a type assertion to return the connection as the requested type. It is the caller's responsibility to ensure the correct type is used.
The expected type of the connection
The database connection cast to type T
Represents a database connector.