SetCountTableRowsCancelFunc sets the cancel function for the CountTableRows query context
(f func())
| 523 | |
| 524 | // SetCountTableRowsCancelFunc sets the cancel function for the CountTableRows query context |
| 525 | func (mctx *MigrationContext) SetCountTableRowsCancelFunc(f func()) { |
| 526 | mctx.countMutex.Lock() |
| 527 | defer mctx.countMutex.Unlock() |
| 528 | |
| 529 | mctx.countTableRowsCancelFunc = f |
| 530 | } |
| 531 | |
| 532 | // IsCountingTableRows returns true if the migration has a table count query running |
| 533 | func (mctx *MigrationContext) IsCountingTableRows() bool { |
no outgoing calls
no test coverage detected