我有一个带有以下模式的jsstore表
const loiCommonNameSchema = {
name: 'LOICommonName',
columns: {
projectId: { dataType: 'string', index: true },
Uniclass2_Id: { dataType: 'string' },
commonName: { dataType: 'string', allowNull: true },
code: { dataType: 'string', allowNull: true },
cacheKey: { dataType: 'string', index: true },
},
};
我正在尝试通过以下方式在此表上运行删除操作
var dae = await connection.remove({
from: 'LOICommonName',
where: {
projectId: projectId,
cacheKey: { '!=': 'hello' }
},
ignoreCase: true
});
这是回报 store.worker.min.js:2 {消息:“未找到列 'undefined' 的索引。没有索引无法执行查询。”,类型:'no_index_found'}
我尝试只对 projectId 运行删除,这有效 我也试过只对 cacheKey 运行删除,并且按预期工作。
我用 Where 运行了一个选择,这返回了我希望被删除的数据集。
我不确定我需要在模式中更改什么以允许使用复杂的 WHERE 语句进行删除。
任何帮助将不胜感激。
非常感谢。