forUpdate的定义微调

This commit is contained in:
Xu Chang 2024-03-01 16:26:29 +08:00
parent 02307ac4db
commit fc4750b5cf
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export type SelectOption = {
dontCollect?: boolean;
blockTrigger?: true;
obscure?: boolean;
forUpdate?: true | 'skip locked' | 'no wait';
forUpdate?: true | 'skip locked' | 'nowait';
includedDeleted?: true;
ignoreAttrMiss?: true;
dummy?: 1;

View File

@ -31,7 +31,7 @@ export type SelectOption = {
dontCollect?: boolean;
blockTrigger?: true;
obscure?: boolean; // 如果为置为true则在filter过程中因数据不完整而不能判断为真的时候都假设为真前端缓存专用
forUpdate?: true | 'skip locked' | 'no wait'; // mysql 8.0以上支持的加锁方式
forUpdate?: true | 'skip locked' | 'nowait'; // mysql 8.0以上支持的加锁方式
includedDeleted?: true; // 是否包含删除行的信息
ignoreAttrMiss?: true; // 作为cache时是否允许属性缺失
dummy?: 1; // 无用为了继承Option通过编译