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

Method Exec

internal/utils/dbs/db.go:166–178  ·  view source on GitHub ↗
(query string, args ...any)

Source from the content-addressed store, hash-verified

164}
165
166func (this *DB) Exec(query string, args ...any) (sql.Result, error) {
167 // check database status
168 if this.BeginUpdating() {
169 defer this.EndUpdating()
170 } else {
171 return nil, errDBIsClosed
172 }
173
174 if this.enableStat {
175 defer SharedQueryStatManager.AddQuery(query).End()
176 }
177 return this.rawDB.Exec(query, args...)
178}
179
180func (this *DB) Query(query string, args ...any) (*sql.Rows, error) {
181 if this.enableStat {

Callers 15

InitMethod · 0.45
InsertAgentIPMethod · 0.45
InitMethod · 0.45
InsertStatMethod · 0.45
CleanExpiredMethod · 0.45
initMethod · 0.45
DeleteExpiredItemsMethod · 0.45
AddItemMethod · 0.45
UpdateMaxVersionMethod · 0.45
OpenMethod · 0.45
AddSyncMethod · 0.45
DeleteSyncMethod · 0.45

Calls 4

BeginUpdatingMethod · 0.95
EndUpdatingMethod · 0.95
AddQueryMethod · 0.80
EndMethod · 0.45

Tested by

no test coverage detected