javascript - “连接”类型上不存在属性“exportJson”...使用 JS Store 时
问题描述
connection.exportJson({
from: "Table_Name",
where: {
Column1: some_value,
Column2: some_another_value
}
}).then(function() {
console.log('Successfully exported');
}).catch(function(error) {
console.log(error);
});
// 尝试使用 JSStore 导出数据库
解决方案
exportJson
api 已从 jsstore 中删除。如果你使用的是 v4 的 jsstore,你可以使用idbstudio来导出Json。
否则看看这个线程 - https://github.com/ujjwalguptaofficial/JsStore/issues/115。这提供了 exportJson 的代码片段。
推荐阅读
- reactjs - 如何在路由中的 next 中导入组件
- sql-server - 如何将此存储过程返回的数据集存储到 Management Studio 中的临时表中
- flutter - 颤振医生无法在 Android Studio 上运行
- android - Flutter Firebase Google 身份验证:如何在相同过期后获取新的 JWT idToken
- r - 使用 kableExtra 和 lapply 时将每个表输出到新文档
- android - getInstalledPackages 在不同的应用程序中返回不同的结果
- svelte-3 - 使用 webcomponents 和 @sveltejs/adapter-static@next 时 npm run build 失败
- html - 如何使用 JQuery 根据其 css 属性隐藏元素?
- pari - RSA 和收敛
- powerbi - PowerBI:使用数据建模创建相关下拉列表的高级过滤