connector

package
v0.0.0-...-51e91f3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConnection

func CheckConnection(dbType string, connStr string) (string, error)

func CheckConnectionPostgres

func CheckConnectionPostgres(connStr string) (string, error)

func ConnPostgres

func ConnPostgres(cf *model.Config) (string, error)

func ConnSQLServer

func ConnSQLServer(cf *model.Config) (string, error)

func GetDatabases

func GetDatabases(db *sql.DB) ([]model.Database, error)

Types

type ConnectionString

type ConnectionString interface {
	ConnSQLServer(cf *model.Config) (string, error)
	ConnPostgres(cf *model.Config) (string, error)
}

Jump to

Keyboard shortcuts

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