From 59963090cbcee395463b7767e3807ce7c0aa6f43 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Fri, 5 Mar 2021 18:31:12 +0100 Subject: create db schemas for accounts --- internal/db/db.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/db/db.go') 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, -- cgit v1.2.3