database

package
v0.0.0-...-fb63ead Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DBDriverMySQL      = "mysql"
	DBDriverSQLite     = "sqlite3"
	DBDriverPostgreSQL = "postgres"

	VersionUnknown = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(dbDriverType, dsn string) *Checker

func (*Checker) Check

func (c *Checker) Check() (result *health.Health)

type Result

type Result struct {
	Version string `json:"version"`
	Error   error  `json:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL