db

package
v0.0.0-...-29fea5a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverType

type DriverType string

func (DriverType) Format

func (t DriverType) Format() string

func (DriverType) IsValid

func (t DriverType) IsValid() bool

func (DriverType) Port

func (t DriverType) Port() int

func (DriverType) String

func (t DriverType) String() string

type Env

type Env struct {
	Driver     DriverType
	Host       string
	Port       int
	Username   string
	Password   string
	Name       string
	AllowWrite bool
}

func NewDBEnv

func NewDBEnv() *Env

func (*Env) ConnectionDSN

func (d *Env) ConnectionDSN() string

func (*Env) Populate

func (d *Env) Populate() error

Jump to

Keyboard shortcuts

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