sqlite

package
v0.0.0-...-0d2eb9b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 11 Imported by: 0

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 OnExecDoneInfo struct {
	Result sql.Result
	Error  error
}

type OnExecStartInfo

type OnExecStartInfo struct {
	Query string
	Args  []interface{}
}

type OnQueryDoneInfo

type OnQueryDoneInfo struct {
	Error error
}

type OnQueryStartInfo

type OnQueryStartInfo struct {
	Method string
	Query  string
	Args   []interface{}
}

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)
}

func (Trace) Compose

func (t Trace) Compose(x Trace) (ret Trace)

Compose returns a new Trace which has functional fields composed both from t and x.

Jump to

Keyboard shortcuts

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