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 for work with MySQL - invoice
func NewMySQLInvoice ¶
func NewMySQLInvoice(db *sql.DB, h invoiceheader.Storage, i invoiceitem.Storage) *MySQLInvoice
NewMySQLInvoice return a new pointer of MySQLInvoice
type MySQLInvoiceHeader ¶
type MySQLInvoiceHeader struct {
// contains filtered or unexported fields
}
MySQLInvoiceHeader used for work with mySQL - invoiceHeader
func NewMySQLInvoiceHeader ¶
func NewMySQLInvoiceHeader(db *sql.DB) *MySQLInvoiceHeader
NewMySQLInvoiceHeader return a new pointer of MySQLInvoiceHeader
func (*MySQLInvoiceHeader) CreateTx ¶
func (p *MySQLInvoiceHeader) CreateTx(tx *sql.Tx, m *invoiceheader.Model) error
CreateTx implement the interface invoiceHeader.Storage
func (*MySQLInvoiceHeader) Migrate ¶
func (p *MySQLInvoiceHeader) Migrate() error
Migrate implement the interface invoiceHeader.Storage
type MySQLInvoiceItem ¶
type MySQLInvoiceItem struct {
// contains filtered or unexported fields
}
MySQLInvoiceItem used for work with mySQL - invoiceHeader
func NewMySQLInvoiceItem ¶
func NewMySQLInvoiceItem(db *sql.DB) *MySQLInvoiceItem
NewMySQLInvoiceItem return a new pointer of MySQLInvoiceItem
func (*MySQLInvoiceItem) CreateTx ¶
func (p *MySQLInvoiceItem) CreateTx(tx *sql.Tx, headerID uint, ms invoiceitem.Models) error
CreateTx implement the interface invoiceitem.Storage
func (*MySQLInvoiceItem) Migrate ¶
func (p *MySQLInvoiceItem) Migrate() error
Migrate implement the interface invoiceItem.Storage
type PsqlInvoice ¶
type PsqlInvoice struct {
// contains filtered or unexported fields
}
PsqlInvoice used for work with postgres - invoice
func NewPsqlInvoice ¶
func NewPsqlInvoice(db *sql.DB, h invoiceheader.Storage, i invoiceitem.Storage) *PsqlInvoice
NewPsqlInvoice return a new pointer of PsqlInvoice
type PsqlInvoiceHeader ¶
type PsqlInvoiceHeader struct {
// contains filtered or unexported fields
}
PsqlInvoiceHeader used for work with postgres - invoiceHeader
func NewPsqlInvoiceHeader ¶
func NewPsqlInvoiceHeader(db *sql.DB) *PsqlInvoiceHeader
NewPsqlInvoiceHeader return a new pointer of PsqlInvoiceHeader
func (*PsqlInvoiceHeader) CreateTx ¶
func (p *PsqlInvoiceHeader) CreateTx(tx *sql.Tx, m *invoiceheader.Model) error
CreateTx implement the interface invoiceHeader.Storage
func (*PsqlInvoiceHeader) Migrate ¶
func (p *PsqlInvoiceHeader) Migrate() error
Migrate implement the interface invoiceHeader.Storage
type PsqlInvoiceItem ¶
type PsqlInvoiceItem struct {
// contains filtered or unexported fields
}
PsqlInvoiceItem used for work with postgres - invoiceHeader
func NewPsqlInvoiceItem ¶
func NewPsqlInvoiceItem(db *sql.DB) *PsqlInvoiceItem
NewPsqlInvoiceItem return a new pointer of PsqlInvoiceItem
func (*PsqlInvoiceItem) CreateTx ¶
func (p *PsqlInvoiceItem) CreateTx(tx *sql.Tx, headerID uint, ms invoiceitem.Models) error
CreateTx implement the interface invoiceitem.Storage
func (*PsqlInvoiceItem) Migrate ¶
func (p *PsqlInvoiceItem) Migrate() error
Migrate implement the interface invoiceItem.Storage