store

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 11 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 {
	Logger        *zap.Logger
	MigrationsDir *embed.FS
	DSN           string
	Migrate       bool
}

type Database

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

Database is a relational database storage type. This is a common skeleton and is used by API storages.

func New

func New(ctx context.Context, cfg *Config) (*Database, error)

func (*Database) Close

func (db *Database) Close()

func (*Database) Pool

func (db *Database) Pool() *pgxpool.Pool

Jump to

Keyboard shortcuts

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