postgresql

package
v0.0.0-...-04e9793 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBClose

func DBClose(db *sqlx.DB)

func DBOpen

func DBOpen(conf DBConf) (*sqlx.DB, error)

Types

type DBConf

type DBConf struct {
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
	SSLMode  string
}

type SettingsRepo

type SettingsRepo struct {
	// contains filtered or unexported fields
}

func NewSettingsRepo

func NewSettingsRepo(props DBConf) *SettingsRepo

func (*SettingsRepo) Close

func (r *SettingsRepo) Close()

func (*SettingsRepo) CreateOrUpdate

func (r *SettingsRepo) CreateOrUpdate(settings domain.SettingsEntity) error

func (*SettingsRepo) GetById

func (r *SettingsRepo) GetById(id string) (domain.SettingsEntity, error)

Jump to

Keyboard shortcuts

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