postgres

package
v0.0.0-...-4f25c27 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	CachedTypes        map[int64]string
	CachedLanguages    map[int64]string
	CachedDifficulties map[int64]string
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(configDB string) (*Postgres, error)

func (*Postgres) GetAllLibraryItems

func (p *Postgres) GetAllLibraryItems() ([]models.LibraryItem, error)

func (*Postgres) GetCachedDifficulties

func (p *Postgres) GetCachedDifficulties() map[int64]string

func (*Postgres) GetCachedLanguages

func (p *Postgres) GetCachedLanguages() map[int64]string

func (*Postgres) GetCachedTypes

func (p *Postgres) GetCachedTypes() map[int64]string

func (*Postgres) InitCache

func (p *Postgres) InitCache() error

func (*Postgres) Migrate

func (p *Postgres) Migrate() error

func (*Postgres) UpdateCachedDifficulties

func (p *Postgres) UpdateCachedDifficulties() error

func (*Postgres) UpdateCachedLanguages

func (p *Postgres) UpdateCachedLanguages() error

func (*Postgres) UpdateCachedTypes

func (p *Postgres) UpdateCachedTypes() error

Jump to

Keyboard shortcuts

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