Answer the question
In order to leave comments, you need to log in
How to get all the data from a table?
Good afternoon. Is there anyone who works with Firebird from NodeJS? There is a DB with the following tables:
I should deduce all fields of the COMPUTERS table. Here is my code:
const Firebird = require('node-firebird')
let options = {}
options.host = '127.0.0.1'
options.port = 3050
options.database = `${__dirname}/Global.fdb`
options.user = 'SYSDBA'
options.password = 'masterkey'
let computers = Firebird.attach(options, function (err, db) {
if (err) throw err
db.query('SELECT * FROM COMPUTERS', (err, result) => {
console.log(result)
db.detach()
})
})
console.log(computers)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question