Base#
DatabaseBuilder
#
Database Builder
The base builder, for creating a Database Instance.
connect
abstractmethod
async
#
Connect to the database
Make the connection to the database.
| RAISES | DESCRIPTION |
|---|---|
DatabaseConnectionException
|
Raised when the database fails to connect properly. |
shutdown
abstractmethod
async
#
Shutdown the database
Allows for safely shutting down the database.
| RAISES | DESCRIPTION |
|---|---|
DatabaseShutdownException
|
Raised when an error occurs shutting down the database. |
add
abstractmethod
async
#
add(timer: Timer) -> None
Add a timer to the database
Add a new timer to your database.
| PARAMETER | DESCRIPTION |
|---|---|
timer |
The timer you wish to add.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
DatabaseUniqueException
|
a name/key value already exists of this type. |