We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Knex version:2.4.2 Database + version: sqlite3@5.0.11 OS:win
error keno:run rpm install sqlite3 --save rip-web package.json is not node-pre-gyp ready" package.json must declare these properties binary
This is my code function initCache() { const knexInstance = knex({ client: "sqlite3", useNullAsDefault: true, connection: { filename: path.join(app.getPath("userData"), "local.db"), }, }); /**
ipcMain.handle("insertTable", async (_, name, data) => { await knexInstance(name).insert({ box_name: data }); }); /**
When I ran it locally, there was no problem, but when I ran it packaged as an app, there was this error above
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Knex version:2.4.2
Database + version: sqlite3@5.0.11
OS:win
Bug
error keno:run rpm install sqlite3 --save
rip-web package.json is not node-pre-gyp ready" package.json must declare these properties binary
This is my code
function initCache() {
const knexInstance = knex({
client: "sqlite3",
useNullAsDefault: true,
connection: {
filename: path.join(app.getPath("userData"), "local.db"),
},
});
/**
/
ipcMain.handle("createWorktable", async (_, name) => {
try {
await knexInstance.schema.createTable(name, (table) => {
table.increments("id");
table.string("box_name");
});
return "创建成功";
} catch (err) {
return "已经存在收货工作台的表了";
}
});
/*
*/
ipcMain.handle("insertTable", async (_, name, data) => {
await knexInstance(name).insert({ box_name: data });
});
/**
/
ipcMain.handle("allChatSelect", async (_, name, data) => {
return await knexInstance(name).select("");
});
}
When I ran it locally, there was no problem, but when I ran it packaged as an app, there was this error above
The text was updated successfully, but these errors were encountered: