跳到主要内容

RxDBSystemBootstrapContext

Defined in: packages/rxdb/src/rxdb-plugin-system.ts:35

建表时点可用的上下文

Remarks​

只暴露建表那一刻确实已经存在的事实。今天只有主分支的 id——新库建表时库里除了它 什么都没有(见 RxDB.connect() 的新库分支)。贡献方要更多上下文时在这里加字段, 而不是自己去读库:那时候表还没建出来。

Properties​

branchIds​

readonly branchIds: readonly string[];

Defined in: packages/rxdb/src/rxdb-plugin-system.ts:37

建表时一并写入的分支 id;新库上恰好一个('main')