Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DAOProduct ¶
DAOProduct factory of product.Storage
Types ¶
type MySQLInvoice ¶
type MySQLInvoice struct {
// contains filtered or unexported fields
}
MySQLInvoice used to work with MySQL - invoice
func NewMySQLInvoice ¶
func NewMySQLInvoice(db *sql.DB, h invoiceheader.Storage, i invoiceitem.Storage) *MySQLInvoice
NewMySQLInvoice returns new pointer to MySQLInvoice
type MySQLInvoiceHeader ¶
type MySQLInvoiceHeader struct {
// contains filtered or unexported fields
}
MySQLInvoiceHeader used to work with MySQL - invoiceheader
func NewMySQLInvoiceHeader ¶
func NewMySQLInvoiceHeader(db *sql.DB) *MySQLInvoiceHeader
NewMySQLInvoiceHeader returns new pointer to MySQLInvoiceHeader
func (*MySQLInvoiceHeader) CreateTx ¶
func (p *MySQLInvoiceHeader) CreateTx(tx *sql.Tx, m *invoiceheader.Model) error
CreateTx implements interface invoiceheader.Storage
func (*MySQLInvoiceHeader) Migrate ¶
func (p *MySQLInvoiceHeader) Migrate() error
Migrate implements interface invoiceheader.Storage
type MySQLInvoiceItem ¶
type MySQLInvoiceItem struct {
// contains filtered or unexported fields
}
MySQLInvoiceItem used to work with MySQL - invoiceitem
func NewMySQLInvoiceItem ¶
func NewMySQLInvoiceItem(db *sql.DB) *MySQLInvoiceItem
NewMySQLInvoiceItem returns new pointer to MySQLInvoiceItem
func (*MySQLInvoiceItem) CreateTx ¶
func (p *MySQLInvoiceItem) CreateTx(tx *sql.Tx, headerID uint, ms invoiceitem.Models) error
CreateTx implements interface invoiceitem.Storage
func (*MySQLInvoiceItem) Migrate ¶
func (p *MySQLInvoiceItem) Migrate() error
Migrate implements interface invoiceitem.Storage
type PsqlInvoice ¶
type PsqlInvoice struct {
// contains filtered or unexported fields
}
PsqlInvoice used to work with postgres - invoice
func NewPsqlInvoice ¶
func NewPsqlInvoice(db *sql.DB, h invoiceheader.Storage, i invoiceitem.Storage) *PsqlInvoice
NewPsqlInvoice returns new pointer to PsqlInvoice
type PsqlInvoiceHeader ¶
type PsqlInvoiceHeader struct {
// contains filtered or unexported fields
}
PsqlInvoiceHeader used to work with postgres - invoiceheader
func NewPsqlInvoiceHeader ¶
func NewPsqlInvoiceHeader(db *sql.DB) *PsqlInvoiceHeader
NewPsqlInvoiceHeader returns new pointer to PsqlInvoiceHeader
func (*PsqlInvoiceHeader) CreateTx ¶
func (p *PsqlInvoiceHeader) CreateTx(tx *sql.Tx, m *invoiceheader.Model) error
CreateTx implements interface invoiceheader.Storage
func (*PsqlInvoiceHeader) Migrate ¶
func (p *PsqlInvoiceHeader) Migrate() error
Migrate implements interface invoiceheader.Storage
type PsqlInvoiceItem ¶
type PsqlInvoiceItem struct {
// contains filtered or unexported fields
}
PsqlInvoiceItem used to work with postgres - invoiceitem
func NewPsqlInvoiceItem ¶
func NewPsqlInvoiceItem(db *sql.DB) *PsqlInvoiceItem
NewPsqlInvoiceItem returns new pointer to PsqlInvoiceItem
func (*PsqlInvoiceItem) CreateTx ¶
func (p *PsqlInvoiceItem) CreateTx(tx *sql.Tx, headerID uint, ms invoiceitem.Models) error
CreateTx implements interface invoiceitem.Storage
func (*PsqlInvoiceItem) Migrate ¶
func (p *PsqlInvoiceItem) Migrate() error
Migrate implements interface invoiceitem.Storage