(ctx context.Context, args ...any)
| 29 | } |
| 30 | |
| 31 | func (this *Stmt) ExecContext(ctx context.Context, args ...any) (result sql.Result, err error) { |
| 32 | // check database status |
| 33 | if this.db.BeginUpdating() { |
| 34 | defer this.db.EndUpdating() |
| 35 | } else { |
| 36 | return nil, errDBIsClosed |
| 37 | } |
| 38 | |
| 39 | if this.enableStat { |
| 40 | defer SharedQueryStatManager.AddQuery(this.query).End() |
| 41 | } |
| 42 | fsutils.WriterLimiter.Ack() |
| 43 | result, err = this.rawStmt.ExecContext(ctx, args...) |
| 44 | fsutils.WriterLimiter.Release() |
| 45 | return |
| 46 | } |
| 47 | |
| 48 | func (this *Stmt) Exec(args ...any) (result sql.Result, err error) { |
| 49 | // check database status |
nothing calls this directly
no test coverage detected