Adds healthy check to model

This commit is contained in:
2020-12-31 18:05:06 -06:00
parent 2bda056ca7
commit 0e16bb5361
5 changed files with 50 additions and 1 deletions

View File

@@ -78,3 +78,7 @@ func (store *postgresStore) InsertPlan(plan *models.Plan) (int, error) {
}
return id, nil
}
func (store *postgresStore) ConnectionLive() error {
return store.db.Ping()
}