mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-04 22:58:08 -06:00
create db schemas for accounts
This commit is contained in:
parent
052783db66
commit
59963090cb
10 changed files with 284 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue