Help us shape the future of Go! Take the 2026 Go Developer Survey

db

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDb

func ConnectDb(connConfig types.ConnConfig) (*sql.DB, error)

func ConnectSelfDb

func ConnectSelfDb(v *viper.Viper) (*sql.DB, error)

func GetMysqlConnUriFromViper added in v0.5.1

func GetMysqlConnUriFromViper(v *viper.Viper, dbname string) string

func GetPgConnUriFromConnConfig added in v0.5.1

func GetPgConnUriFromConnConfig(connConfig types.ConnConfig) string

Types

This section is empty.

Directories

Path Synopsis
this is a central place for calling driver-specific internal functions
this is a central place for calling driver-specific internal functions
pg
pgq
not necessary to move ALL SQL queries here
not necessary to move ALL SQL queries here

Jump to

Keyboard shortcuts

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