跳到主要内容

RawWriteJudgment

type RawWriteJudgment =
| {
kind: "allow";
reason: RawWriteAllowReason;
step: 1 | 2 | 4;
}
| {
code: typeof commit_capability_mismatch;
kind: "reject";
step: 3;
tables: readonly string[];
};

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/raw-write-judgment.ts:73

判定落在第几步;第 3 步是唯一会拒绝的一步。

Union Members​

Type Literal​

{
kind: "allow";
reason: RawWriteAllowReason;
step: 1 | 2 | 4;
}

kind​

readonly kind: "allow";

放行:语句照常执行

reason​

readonly reason: RawWriteAllowReason;

为什么放行

step​

readonly step: 1 | 2 | 4;

落在第几步


Type Literal​

{
code: typeof commit_capability_mismatch;
kind: "reject";
step: 3;
tables: readonly string[];
}

code​

readonly code: typeof commit_capability_mismatch;

epic-006 的稳定错误码

kind​

readonly kind: "reject";

拒绝:语句根本不下发

step​

readonly step: 3;

恒为 3

tables​

readonly tables: readonly string[];

被命中的版本化表;解析不出目标表时为空数组