MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Begin

Method Begin

internal/utils/dbs/db.go:127–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (this *DB) Begin() (*sql.Tx, error) {
128 // check database status
129 if this.BeginUpdating() {
130 defer this.EndUpdating()
131 } else {
132 return nil, errDBIsClosed
133 }
134
135 return this.rawDB.Begin()
136}
137
138func (this *DB) Prepare(query string) (*Stmt, error) {
139 stmt, err := this.rawDB.Prepare(query)

Callers 2

beginTxMethod · 0.45
updateMethod · 0.45

Calls 2

BeginUpdatingMethod · 0.95
EndUpdatingMethod · 0.95

Tested by

no test coverage detected