Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(dbs string, t Trace) (repo.Repository, error)
Types ¶
type OnConnectDoneInfo ¶
type OnConnectDoneInfo struct{}
type OnConnectStartInfo ¶
type OnConnectStartInfo struct {
DBS string
}
type OnExecDoneInfo ¶
type OnExecStartInfo ¶
type OnExecStartInfo struct { Query string Args []interface{} }
type OnQueryDoneInfo ¶
type OnQueryDoneInfo struct {
Error error
}
type OnQueryStartInfo ¶
type OnTxBeginDoneInfo ¶
type OnTxBeginDoneInfo struct {
Error error
}
type OnTxBeginStartInfo ¶
type OnTxBeginStartInfo struct{}
type OnTxEndDoneInfo ¶
type OnTxEndDoneInfo struct {
Error error
}
type OnTxEndStartInfo ¶
type OnTxEndStartInfo struct {
Commit bool
}
type Trace ¶
type Trace struct { OnQuery func(OnQueryStartInfo) func(OnQueryDoneInfo) OnExec func(OnExecStartInfo) func(OnExecDoneInfo) OnConnect func(OnConnectStartInfo) func(OnConnectDoneInfo) OnTxBegin func(OnTxBeginStartInfo) func(OnTxBeginDoneInfo) OnTxEnd func(OnTxEndStartInfo) func(OnTxEndDoneInfo) }
Click to show internal directories.
Click to hide internal directories.