db

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

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Host         string
	Port         string
	DatabaseName string
	User         string
	Password     string
	Type         string
}

func NewConnection

func NewConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error)

func NewMySQLConnection

func NewMySQLConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error)

func NewPostgresConnection

func NewPostgresConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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