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

Method Prepare

internal/utils/dbs/db.go:138–149  ·  view source on GitHub ↗
(query string)

Source from the content-addressed store, hash-verified

136}
137
138func (this *DB) Prepare(query string) (*Stmt, error) {
139 stmt, err := this.rawDB.Prepare(query)
140 if err != nil {
141 return nil, err
142 }
143
144 var s = NewStmt(this, stmt, query)
145 if this.enableStat {
146 s.EnableStat()
147 }
148 return s, nil
149}
150
151func (this *DB) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) {
152 // check database status

Callers 4

InitMethod · 0.45
InitMethod · 0.45
initMethod · 0.45
InitMethod · 0.45

Calls 2

EnableStatMethod · 0.95
NewStmtFunction · 0.85

Tested by

no test coverage detected