Wrap operations in a configurable timeout and add method to verify the database connection

Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
Marcus Eide
2021-10-19 16:42:40 +02:00
parent 33b9694f5c
commit b294f6056f
5 changed files with 155 additions and 24 deletions
+2
View File
@@ -52,6 +52,8 @@ export interface Config {
keyFilename?: string;
/** The path to use for the collection. Defaults to 'sessions' */
path?: string;
/** Timeout used for database operations. Defaults to 10000ms */
timeout?: number;
};
};