Documentation
¶
Overview ¶
Package base defines common logic among different transational drivers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSavePoint ¶
type DefaultSavePoint struct{}
func (*DefaultSavePoint) Create ¶
func (dsp *DefaultSavePoint) Create(id string) string
func (*DefaultSavePoint) Release ¶
func (dsp *DefaultSavePoint) Release(id string) string
func (*DefaultSavePoint) Rollback ¶
func (dsp *DefaultSavePoint) Rollback(id string) string
type SavePointIface ¶
type TxDriver ¶
type TxDriver struct {
sync.Mutex
SavePoint SavePointIface
RealDriver string // underlying sql driver used to establish real db connections
// contains filtered or unexported fields
}
TxDriver root type for all other inheriting and transactional drivers
func (*TxDriver) DeleteConn ¶
func (*TxDriver) ManualRollback ¶
func (d *TxDriver) ManualRollback()
ManualRollback allow user to control the rollback point
type TxDriverIface ¶
type TxDriverIface interface {
ManualRollback()
DeleteConn(string)
}
Click to show internal directories.
Click to hide internal directories.