You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this package inside my nodejs application that will be compiled into an exe using pkg from vercel.
I've downloaded the mdbtools-win.zip and I've extreced all the files into a folder that will be packed inside the exe file. Anyway I have some troubles to run the app, If I try to run a query, the opened window will be closed and the app will stop working.
This is the code.
// Standalone tool da riga di comando per ricerca EANconstreadline=require('readline')const{ stdin, stdout }=require('process')constpath=require('path')//const adodb = require('@el3um4s/node-adodb')//const input = require('@inquirer/prompts')constmdbTool=require('@el3um4s/mdbtools')constwindowsPath='./mdbtools-win'//constdbPath=path.join(__dirname,'odbc/msaccess/products.mdb')console.log(windowsPath)constrl=readline.createInterface({input: stdin,output: stdout})//50332130074, 8000500021286, 8000920323403 EAN DEMOrl.question('Insert EAN code to start searching the database:\n',(answer)=>{//Debugconsole.log(answer)// SQL queryconstsql=`SELECT * FROM ANART00001 WHERE CEAN='${answer}'`mdbTool.sql(dbPath,windowsPath,sql).then((results)=>{console.log(results)})//db.query(`SELECT * FROM BPAOLILLO_ANART00001 WHERE CEAN='${answer}'`)//.then( (results) => {// console.log(results)//}).catch( e => console.log(e) )})
Any suggestion that can help me to fix the problem?
The text was updated successfully, but these errors were encountered:
I'm trying to use this package inside my nodejs application that will be compiled into an exe using pkg from vercel.
I've downloaded the mdbtools-win.zip and I've extreced all the files into a folder that will be packed inside the exe file. Anyway I have some troubles to run the app, If I try to run a query, the opened window will be closed and the app will stop working.
This is the code.
Any suggestion that can help me to fix the problem?
The text was updated successfully, but these errors were encountered: