db

package
v0.0.0-...-b288cfe Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	Conn *gorm.DB
	// contains filtered or unexported fields
}

func New

func New(logging *logging.Logging) *Db

func (*Db) Connect

func (o *Db) Connect() error

type DbConfig

type DbConfig struct {
	Host     string `json:"host"`
	Port     int64  `json:"port"`
	Database string `json:"database"`
	Username string `json:"username"`
	Password string `json:"password"`
	Options  string `json:"options"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(logging *logging.Logging) *DbConfig

func (*DbConfig) Read

func (o *DbConfig) Read() error

Jump to

Keyboard shortcuts

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