sql

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SchemaFS embed.FS

SchemaFS contains all SQL migration files under db/sql/schema/

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(queries *pgStorage.Queries) *Storage

func (*Storage) ListCurrencies

func (s *Storage) ListCurrencies(ctx context.Context) ([]types.Currency, error)

func (*Storage) ListSources

func (s *Storage) ListSources(ctx context.Context) ([]types.Source, error)

func (*Storage) RateAsOf

func (s *Storage) RateAsOf(
	ctx context.Context,
	query *types.RateQuery,
	t time.Time,
) (*types.Page[*types.ExchangeRate], error)

func (*Storage) SaveExchangeRate

func (s *Storage) SaveExchangeRate(
	ctx context.Context,
	rate *types.ExchangeRate,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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