database

package
v0.0.0-...-ff79fe2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package database... TODO: documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabaseConnection

func NewDatabaseConnection(settings *Settings) (*gorm.DB, error)

Types

type Settings

type Settings struct {
	Name         string        `json:"name" yaml:"name"`
	User         string        `json:"user" yaml:"user"`
	Password     string        `json:"password" yaml:"password"`
	Address      string        `json:"address" yaml:"address"`
	Port         int           `json:"port" yaml:"port"`
	Charset      string        `json:"charset" yaml:"charset"`
	ReadTimeout  time.Duration `json:"read_timeout" yaml:"readTimeout"`
	WriteTimeout time.Duration `json:"write_timeout" yaml:"writeTimeout"`
}

Jump to

Keyboard shortcuts

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