postgres

package
v0.0.0-...-9ed5d2c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientExposureDetailStorageImpl

type ClientExposureDetailStorageImpl struct {
	Postgres *PgPool
}

func (*ClientExposureDetailStorageImpl) FindAll

func (*ClientExposureDetailStorageImpl) FindAllByClientId

func (s *ClientExposureDetailStorageImpl) FindAllByClientId(ctx context.Context, clientId int64) ([]*java2go.ClientExposure, error)

func (*ClientExposureDetailStorageImpl) FindByClientIdAndExposureCurrency

func (s *ClientExposureDetailStorageImpl) FindByClientIdAndExposureCurrency(ctx context.Context, clientId int64, exposureCurrency string) (*java2go.ClientExposure, error)

func (*ClientExposureDetailStorageImpl) Save

type ClientExposureStorageImpl

type ClientExposureStorageImpl struct {
	Postgres *PgPool
}

func (*ClientExposureStorageImpl) FindByClientId

func (s *ClientExposureStorageImpl) FindByClientId(ctx context.Context, clientId int64) (*java2go.ClientExposure, error)

func (*ClientExposureStorageImpl) Save

type CurrencyRateStorageImpl

type CurrencyRateStorageImpl struct {
	Postgres *PgPool
}

func (*CurrencyRateStorageImpl) FindAll

func (*CurrencyRateStorageImpl) FindByBaseCurrencyAndQuotedCurrency

func (s *CurrencyRateStorageImpl) FindByBaseCurrencyAndQuotedCurrency(ctx context.Context, baseCurrency, quotedCurrency string) (*java2go.CurrencyRate, error)

func (*CurrencyRateStorageImpl) SaveRate

type DealStorageImpl

type DealStorageImpl struct {
	Postgres *PgPool
}

func (*DealStorageImpl) FindAll

func (p *DealStorageImpl) FindAll(ctx context.Context) ([]*java2go.Deal, error)

func (*DealStorageImpl) FindAllByClientId

func (p *DealStorageImpl) FindAllByClientId(ctx context.Context, clientId int64) ([]*java2go.Deal, error)

func (*DealStorageImpl) SaveDeal

func (p *DealStorageImpl) SaveDeal(ctx context.Context, deal *java2go.Deal) error

type PgPool

type PgPool struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
	Schema   string
	DbPool   *pgxpool.Pool
}

func (*PgPool) Init

func (p *PgPool) Init()

Jump to

Keyboard shortcuts

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