create db schemas for accounts

This commit is contained in:
tsmethurst
2021-03-05 18:31:12 +01:00
parent 052783db66
commit 59963090cb
10 changed files with 284 additions and 21 deletions

View File

@ -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,