(query string)
| 136 | } |
| 137 | |
| 138 | func (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 | |
| 151 | func (this *DB) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) { |
| 152 | // check database status |