跳到主要内容

DesktopHostOpenResult

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:164

open 请求的响应。

Properties​

beginSystemMigrationTransactionSql​

readonly beginSystemMigrationTransactionSql: string;

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:186

host 后端做系统 schema 迁移时使用的最强锁 SQL。


beginTransactionSql​

readonly beginTransactionSql: string;

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:184

host 后端开启普通事务使用的 SQL。


protocolVersion​

readonly protocolVersion: number;

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:182

host 所讲的线协议版本;与 DesktopHostHandshakeResult.protocolVersion 同源。

Remarks​

版本协商真正发生在 DesktopHostHandshakeRequest 那一步,这里保留一份是第二道: 中间隔着代理、或 host 在两次请求之间被换掉时,这一份仍会把不一致拦下来。 它也是老 renderer 唯一的核对点——去掉它,一个 0.0.x 的 renderer 接上新 host 就再也验不了版本。


resolvedLocation​

readonly resolvedLocation: string;

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:173

已解析的逻辑位置,仅供诊断与日志(AC#3)。

Remarks​

刻意不是物理绝对路径:renderer 拿到物理根目录等于拿到了额外的文件系统情报, 而它并不需要这份情报就能工作。


sessionId​

readonly sessionId: string;

Defined in: packages/rxdb-adapter-sqlite-core/dist/desktop/desktop-host-protocol.d.ts:165