WithContext change current instance db's context to ctx
(ctx context.Context)
| 361 | |
| 362 | // WithContext change current instance db's context to ctx |
| 363 | func (db *DB) WithContext(ctx context.Context) *DB { |
| 364 | return db.Session(&Session{Context: ctx}) |
| 365 | } |
| 366 | |
| 367 | // Debug start debug mode |
| 368 | func (db *DB) Debug() (tx *DB) { |