()
| 125 | } |
| 126 | |
| 127 | func (this *DB) Begin() (*sql.Tx, error) { |
| 128 | // check database status |
| 129 | if this.BeginUpdating() { |
| 130 | defer this.EndUpdating() |
| 131 | } else { |
| 132 | return nil, errDBIsClosed |
| 133 | } |
| 134 | |
| 135 | return this.rawDB.Begin() |
| 136 | } |
| 137 | |
| 138 | func (this *DB) Prepare(query string) (*Stmt, error) { |
| 139 | stmt, err := this.rawDB.Prepare(query) |
no test coverage detected