database

package
v0.0.0-...-47798e3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db interface {
	Get(key string) (string, error)
	Set(key string) error
	CloseDb()
}

type PostgresDb

type PostgresDb struct {
	*pgx.Conn
}

func NewPostgresDb

func NewPostgresDb() *PostgresDb

func (*PostgresDb) CloseDb

func (pg *PostgresDb) CloseDb()

func (*PostgresDb) Get

func (pg *PostgresDb) Get(key string) (string, error)

func (*PostgresDb) Set

func (pg *PostgresDb) Set(key string) error

Jump to

Keyboard shortcuts

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