store

package
v0.2.3-beta.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queries

type Queries struct {
	ExtractEntries string `query:"extract-entries"`
	UpdateCursor   string `query:"update-cursor"`
}

type Store

type Store struct {
	Provider *pgxpool.Pool
	Queries  *Queries
}

func NewStore

func NewStore(o StoreOpts) (*Store, error)

func (*Store) ExecuteTransaction

func (s *Store) ExecuteTransaction(ctx context.Context, fn func(tx pgx.Tx) error) error

type StoreOpts

type StoreOpts struct {
	Logg                 *slog.Logger
	DSN                  string
	MigrationsFolderPath string
	QueriesFolderPath    string
}

Jump to

Keyboard shortcuts

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