Skip to content

Extract DB interface #1

@moshloop

Description

@moshloop

Extract https://github.com/flanksource/canary-checker/blob/master/pkg/db/init.go into a common DB interface so that it can be called as follows form any other repo:

import commonsdb "github.com/flanksource/commons-db"

db := commonsdb.Postgres{
    ConnectionString: "",
    PublicEndpoint: "",
    PostgresVersion: "",
    PostgrestVersion: "",
}

db.MustInit()
db.Start() // start embedded db's / services if necessary
db.Stop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions