InsertSqlOptions
Defined in: packages/rxdb-adapter-sqlite-core/src/entity/insert_sql.ts:16
生成插入 SQL 时的选项。
Extends
Properties
clientId?
optional clientId?: string;
Defined in: packages/rxdb/dist/rxdb.interface.d.ts:69
客户端唯一 ID
Remarks
强烈不建议业务方手动写入:RxDB.init() 在 clientId 缺省时
自动生成 UUID 并固化为单例生命周期的一部分。手动赋值的字符串若与他
tab 冲突,pull/push 的"自己消息过滤"会失效,导致本 tab 把自己刚推送
的变更误判成他人变更再拉回来。
Inherited from
createdAt?
optional createdAt?: Date;
Defined in: packages/rxdb/dist/repository/query.interface.d.ts:109
Inherited from
encryption?
optional encryption?: EncryptionContext;
Defined in: packages/rxdb-adapter-sqlite-core/src/entity/insert_sql.ts:18
returning?
optional returning?: false;
Defined in: packages/rxdb/dist/repository/query.interface.d.ts:104
是否返回数据
Inherited from
updatedAt?
optional updatedAt?: Date;
Defined in: packages/rxdb/dist/repository/query.interface.d.ts:108
自定义更新时间
Inherited from
useReplace?
optional useReplace?: boolean;
Defined in: packages/rxdb-adapter-sqlite-core/src/entity/insert_sql.ts:17
userId?
optional userId?: string;
Defined in: packages/rxdb/dist/rxdb.interface.d.ts:59
当前登录用户 ID
适配器写实体行时用它填 createdBy / updatedBy 审计字段(实体声明了这两列才写)。
同步不按它做行级过滤;只同步一部分行要用 SyncType.Filter 的 remote.filter()。