db

package
v0.0.0-...-50627bb Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(database Database) *sql.DB

Types

type Database

type Database struct {
	Host     string `koan:"host"`
	Port     string `koanf:"port"`
	User     string `koanf:"user"`
	DBName   string `koanf:"dbname"`
	Password string `koanf:"password"`
	SSLmode  string `koanf:"sslmode"`
}

func (Database) Cstring

func (d Database) Cstring() string

Jump to

Keyboard shortcuts

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