diff options
author | 2021-03-05 18:31:12 +0100 | |
---|---|---|
committer | 2021-03-05 18:31:12 +0100 | |
commit | 59963090cbcee395463b7767e3807ce7c0aa6f43 (patch) | |
tree | 7eade814709bb692e24ee6495b201bc1c4b34d6d /internal/db/db.go | |
parent | tidying up here and there (diff) | |
download | gotosocial-59963090cbcee395463b7767e3807ce7c0aa6f43.tar.xz |
create db schemas for accounts
Diffstat (limited to 'internal/db/db.go')
-rw-r--r-- | internal/db/db.go | 8 |
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, |