db

package
v1.132.0-pfs-report-re... Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AgedDebtByCustomerQuery = `` /* 4412-byte string literal not displayed */
View Source
const AgedDebtQuery = `` /* 6057-byte string literal not displayed */
View Source
const BadDebtWriteOffQuery = `` /* 2065-byte string literal not displayed */
View Source
const CustomerCreditQuery = `` /* 714-byte string literal not displayed */
View Source
const ReceiptsQuery = `` /* 3479-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type AgedDebt

type AgedDebt struct {
	FromDate *shared.Date
	ToDate   *shared.Date
}

func (*AgedDebt) GetHeaders

func (a *AgedDebt) GetHeaders() []string

func (*AgedDebt) GetParams

func (a *AgedDebt) GetParams() []any

func (*AgedDebt) GetQuery

func (a *AgedDebt) GetQuery() string

type AgedDebtByCustomer

type AgedDebtByCustomer struct{}

func (*AgedDebtByCustomer) GetHeaders

func (a *AgedDebtByCustomer) GetHeaders() []string

func (*AgedDebtByCustomer) GetParams

func (a *AgedDebtByCustomer) GetParams() []any

func (*AgedDebtByCustomer) GetQuery

func (a *AgedDebtByCustomer) GetQuery() string

type BadDebtWriteOff

type BadDebtWriteOff struct {
	FromDate *shared.Date
	ToDate   *shared.Date
}

func (*BadDebtWriteOff) GetHeaders

func (b *BadDebtWriteOff) GetHeaders() []string

func (*BadDebtWriteOff) GetParams

func (b *BadDebtWriteOff) GetParams() []any

func (*BadDebtWriteOff) GetQuery

func (b *BadDebtWriteOff) GetQuery() string

type Client

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

func NewClient

func NewClient(db *pgxpool.Pool) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Run

func (c *Client) Run(ctx context.Context, query ReportQuery) ([][]string, error)

type CustomerCredit

type CustomerCredit struct{}

func (*CustomerCredit) GetHeaders

func (c *CustomerCredit) GetHeaders() []string

func (*CustomerCredit) GetParams

func (c *CustomerCredit) GetParams() []any

func (*CustomerCredit) GetQuery

func (c *CustomerCredit) GetQuery() string

type Receipts

type Receipts struct {
	FromDate *shared.Date
	ToDate   *shared.Date
}

func (*Receipts) GetHeaders

func (r *Receipts) GetHeaders() []string

func (*Receipts) GetParams

func (r *Receipts) GetParams() []any

func (*Receipts) GetQuery

func (r *Receipts) GetQuery() string

type ReportQuery

type ReportQuery interface {
	GetHeaders() []string
	GetQuery() string
	GetParams() []any
}

Jump to

Keyboard shortcuts

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