20 lines
517 B
Python
20 lines
517 B
Python
# -*- coding: utf-8 -*-
|
|
"""数据质量检查器基类"""
|
|
|
|
class BaseDataQualityChecker:
|
|
"""数据质量检查器基类"""
|
|
|
|
def __init__(self, db_connection, logger):
|
|
self.db = db_connection
|
|
self.logger = logger
|
|
|
|
def check(self) -> dict:
|
|
"""
|
|
执行质量检查
|
|
返回: {
|
|
"passed": bool,
|
|
"checks": [{"name": str, "passed": bool, "message": str}]
|
|
}
|
|
"""
|
|
raise NotImplementedError("子类需实现 check 方法")
|