summaryrefslogtreecommitdiff
path: root/internal/db/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/db.go')
-rw-r--r--internal/db/db.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/db/db.go b/internal/db/db.go
index df38ae1fb..4ea4e1af6 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -42,7 +42,15 @@ type DB interface {
/*
ANY ADDITIONAL DESIRED FUNCTIONS
*/
+
+ // CreateSchema should populate the database with the required tables
+ CreateSchema(context.Context) error
+
+ // Stop should stop and close the database connection cleanly, returning an error if this is not possible
Stop(context.Context) error
+
+ // IsHealthy should return nil if the database connection is healthy, or an error if not
+ IsHealthy(context.Context) error
}
// New returns a new database service that satisfies the Service interface and, by extension,