(ctx context.Context, query string, args ...any)
| 149 | } |
| 150 | |
| 151 | func (this *DB) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) { |
| 152 | // check database status |
| 153 | if this.BeginUpdating() { |
| 154 | defer this.EndUpdating() |
| 155 | } else { |
| 156 | return nil, errDBIsClosed |
| 157 | } |
| 158 | |
| 159 | if this.enableStat { |
| 160 | defer SharedQueryStatManager.AddQuery(query).End() |
| 161 | } |
| 162 | |
| 163 | return this.rawDB.ExecContext(ctx, query, args...) |
| 164 | } |
| 165 | |
| 166 | func (this *DB) Exec(query string, args ...any) (sql.Result, error) { |
| 167 | // check database status |
nothing calls this directly
no test coverage detected