(args ...any)
| 46 | } |
| 47 | |
| 48 | func (this *Stmt) Exec(args ...any) (result sql.Result, err error) { |
| 49 | // check database status |
| 50 | if this.db.BeginUpdating() { |
| 51 | defer this.db.EndUpdating() |
| 52 | } else { |
| 53 | return nil, errDBIsClosed |
| 54 | } |
| 55 | |
| 56 | if this.enableStat { |
| 57 | defer SharedQueryStatManager.AddQuery(this.query).End() |
| 58 | } |
| 59 | |
| 60 | fsutils.WriterLimiter.Ack() |
| 61 | result, err = this.rawStmt.Exec(args...) |
| 62 | fsutils.WriterLimiter.Release() |
| 63 | return |
| 64 | } |
| 65 | |
| 66 | func (this *Stmt) QueryContext(ctx context.Context, args ...any) (*sql.Rows, error) { |
| 67 | if this.enableStat { |
nothing calls this directly
no test coverage detected