MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / execItem

Method execItem

internal/utils/dbs/batch.go:166–180  ·  view source on GitHub ↗
(tx *sql.Tx, item *batchItem)

Source from the content-addressed store, hash-verified

164}
165
166func (this *Batch) execItem(tx *sql.Tx, item *batchItem) error {
167 // check database status
168 if this.db.BeginUpdating() {
169 defer this.db.EndUpdating()
170 } else {
171 return errDBIsClosed
172 }
173
174 if this.enableStat {
175 defer SharedQueryStatManager.AddQuery(item.query).End()
176 }
177
178 _, err := tx.Exec(item.query, item.args...)
179 return err
180}
181
182func (this *Batch) processErr(prefix string, err error) {
183 if err == nil {

Callers 1

ExecMethod · 0.95

Calls 5

BeginUpdatingMethod · 0.80
EndUpdatingMethod · 0.80
AddQueryMethod · 0.80
EndMethod · 0.45
ExecMethod · 0.45

Tested by

no test coverage detected