def onEndLoadDataSource(loadTracer): """ 数据源加载结束后调用 """ Printer.uncapPrinter() global _cappedPrint _cappedPrint = None
def onEndScanDataSource(dsrcTracer): """ 结束一个数据源的扫描 """ if CustomConfig().query("custom/showProgress", bool): Printer.uncapPrinter() global _cappedPrint _cappedPrint = None # 打印空行(键) if len(dsrcTracer.emptyRows): Printer.printNewline() Printer.dout("export", "warnEmptyRows", rows=dsrcTracer.emptyRows)
def onEndWriteOutItem(writeTracer): """ 结束一个数据源的扫描 """ if CustomConfig().query("custom/showProgress", bool): Printer.uncapPrinter()