database

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	Host     string
	Port     int
	Database string
	Username string
	Password string
}

func (Config) ConnectionString

func (c Config) ConnectionString() string

func (Config) String

func (c Config) String() string

type Service

type Service interface {
	GetMainDB() (*gorm.DB, error)
	GetConnection(c Config) (*gorm.DB, error)
}

func NewService

func NewService(c Config, l log.Service) Service

Jump to

Keyboard shortcuts

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