feat: v0.2.4 惰性扫描 + 写背压 + 内存预算 + ANALYZE + 加密 + Savepoint + 在线备份
CI / test (18.x) (push) Failing after 4m59s
CI / test (20.x) (push) Failing after 5m0s
CI / test (22.x) (push) Failing after 4m59s
CI / test (24.x) (push) Failing after 4m58s

This commit is contained in:
thzxx
2026-07-27 21:55:57 +08:00
parent 82e6baaae9
commit f248e5fb05
4 changed files with 193 additions and 9 deletions
+16
View File
@@ -65,4 +65,20 @@ export interface IStorageEngine {
/** 回滚事务 */
rollbackTransaction(): Promise<void>;
// ---- Savepoint (可选) ----
/** 创建 Savepoint */
savepoint?(name: string): Promise<void>;
/** 回滚到 Savepoint */
rollbackToSavepoint?(name: string): Promise<void>;
/** 释放 Savepoint */
releaseSavepoint?(name: string): Promise<void>;
// ---- 备份 (可选) ----
/** 在线备份:导出全库一致性快照 */
backup?(): Promise<Record<string, Record<string, unknown>[]>>;
}