Documentation ¶
Index ¶
- type Currency
- type DBTX
- type ExchangeRate
- type ExchangeRateHistory
- type GetExchangeRateHistoryParams
- type GetExchangeRateHistoryRow
- type GetExchangeRateParams
- type GetExchangeRateRow
- type InsertCurrencyParams
- type InsertExchangeRateHistoryParams
- type InsertPivotCurrencyParams
- type PivotCurrency
- type Queries
- func (q *Queries) GetCurrencyIdByCode(ctx context.Context, code string) (int32, error)
- func (q *Queries) GetExchangeRate(ctx context.Context, arg GetExchangeRateParams) (GetExchangeRateRow, error)
- func (q *Queries) GetExchangeRateHistory(ctx context.Context, arg GetExchangeRateHistoryParams) ([]GetExchangeRateHistoryRow, error)
- func (q *Queries) GetPivotIdByCurrencyId(ctx context.Context, currencyID int32) (int32, error)
- func (q *Queries) GetSupportedCurrencies(ctx context.Context) ([]string, error)
- func (q *Queries) InsertCurrency(ctx context.Context, arg InsertCurrencyParams) error
- func (q *Queries) InsertExchangeRateHistory(ctx context.Context, arg InsertExchangeRateHistoryParams) error
- func (q *Queries) InsertPivotCurrency(ctx context.Context, arg InsertPivotCurrencyParams) error
- func (q *Queries) UpsertExchangeRate(ctx context.Context, arg UpsertExchangeRateParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpsertExchangeRateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRate ¶
type ExchangeRateHistory ¶
type GetExchangeRateParams ¶
type GetExchangeRateRow ¶
type InsertCurrencyParams ¶
type PivotCurrency ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetCurrencyIdByCode ¶
func (*Queries) GetExchangeRate ¶
func (q *Queries) GetExchangeRate(ctx context.Context, arg GetExchangeRateParams) (GetExchangeRateRow, error)
func (*Queries) GetExchangeRateHistory ¶
func (q *Queries) GetExchangeRateHistory(ctx context.Context, arg GetExchangeRateHistoryParams) ([]GetExchangeRateHistoryRow, error)
func (*Queries) GetPivotIdByCurrencyId ¶
func (*Queries) GetSupportedCurrencies ¶
func (*Queries) InsertCurrency ¶
func (q *Queries) InsertCurrency(ctx context.Context, arg InsertCurrencyParams) error
func (*Queries) InsertExchangeRateHistory ¶
func (q *Queries) InsertExchangeRateHistory(ctx context.Context, arg InsertExchangeRateHistoryParams) error
func (*Queries) InsertPivotCurrency ¶
func (q *Queries) InsertPivotCurrency(ctx context.Context, arg InsertPivotCurrencyParams) error
func (*Queries) UpsertExchangeRate ¶
func (q *Queries) UpsertExchangeRate(ctx context.Context, arg UpsertExchangeRateParams) error
Click to show internal directories.
Click to hide internal directories.