postgres

package
v0.0.0-...-25a9846 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGStorage

type PGStorage struct {
	Conn  *pgx.Conn
	Utils *PGUtils
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(settings config.StorageSettings) (*PGStorage, error)

func (*PGStorage) CloseConnection

func (s *PGStorage) CloseConnection(ctx context.Context) error

func (*PGStorage) MigrateSchema

func (s *PGStorage) MigrateSchema() error

func (*PGStorage) RunMigration

func (s *PGStorage) RunMigration(settings config.StorageSettings) error

type PGUtils

type PGUtils struct{}

func NewPGUtils

func NewPGUtils() *PGUtils

func (*PGUtils) CheckConstrainError

func (pgu *PGUtils) CheckConstrainError(e error) (bool, error)

func (*PGUtils) GetOffset

func (pgu *PGUtils) GetOffset(page, limit int) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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