databases

package
v0.0.0-...-7cbc1ea Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCouchDbQueryCheck

func MakeCouchDbQueryCheck(db *Database) service.ServiceCheck

func MakeMongodbQueryCheck

func MakeMongodbQueryCheck(db *Database) service.ServiceCheck

func MakeMysqlDbQuery

func MakeMysqlDbQuery(db *Database) service.ServiceCheck

func MakeOracleDbQuery

func MakeOracleDbQuery(db *Database) service.ServiceCheck

func MakePostgresDbQuery

func MakePostgresDbQuery(db *Database) service.ServiceCheck

func MakeSqlServerQuery

func MakeSqlServerQuery(db *Database) service.ServiceCheck

func MakeSqliteQueryCheck

func MakeSqliteQueryCheck(db *Database) service.ServiceCheck

Types

type Database

type Database struct {
	Type     string `json:"type"`
	Name     string `json:"name"`
	Username string `json:"username"`
	Password string `json:"password"`
	Addrs    string `json:"addrs"`
	Timeout  uint   `json:"timeout"`
	UriOnly  string `json:"uri_only"` // when db credentials are already preconfigured to a single address/URL
	Uri      string `json:"uri"`      // similar to UriOnly but without the password/auth info to the authenticate the uri
}

func (*Database) DSNCouchbase

func (db *Database) DSNCouchbase() (str string, err error)

func (*Database) DSNMongoDb

func (db *Database) DSNMongoDb() (str string, err error)

func (*Database) DSNMysql

func (db *Database) DSNMysql() (str string, err error)

func (*Database) DSNOracle

func (db *Database) DSNOracle() (str string, err error)

func (*Database) DSNSqlServer

func (db *Database) DSNSqlServer() (str string, err error)

func (*Database) GetConnString

func (db *Database) GetConnString() (str string, err error)

func (*Database) GetDbDriver

func (db *Database) GetDbDriver() service.ServiceCheck

func (*Database) GetDbSupported

func (db *Database) GetDbSupported() (supported bool, err error)

func (*Database) GetOrSetConnTimeOut

func (db *Database) GetOrSetConnTimeOut() time.Duration

func (*Database) Uri_Only

func (db *Database) Uri_Only() bool

type Databases

type Databases struct {
	DatabaseClusters []Database `json:"databases"`
}

Jump to

Keyboard shortcuts

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