dbsvc

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDbRepository added in v1.0.0

func NewDbRepository(
	uow contract.IUnitOfWorkRepository,
	isTx bool,
	createQueryFunc func() contract.IDbQuery,
) contract.IDbRepository

创建数据仓储

Types

type UnitOfWork added in v1.0.0

type UnitOfWork struct {
	CommitAction func() error
	// contains filtered or unexported fields
}

func (*UnitOfWork) Commit added in v1.0.0

func (m *UnitOfWork) Commit() (err error)

func (*UnitOfWork) RegisterAfter added in v1.0.0

func (m *UnitOfWork) RegisterAfter(action func() error, key string)

Jump to

Keyboard shortcuts

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