Firebird.attach(options, function(err, db) {
if (err)
throw err;
db.query('SELECT USERNAME FROM USERS', function(err, result) {
const res = result.map(buf=>{
return {
buf: buf.USERNAME,
text: iconv.decode(buf.USERNAME, "win1251")
};
});
for (let users of res) {
console.log(users.text);
}
db.detach();
});
});
[
{ USERNAME: <Buffer cf ee eb fc e7 ee e2 e0 f2 e5 eb fc> },
{ USERNAME: <Buffer 74 65 73 74> },
{ USERNAME: <Buffer 74 65 73 74 33> }
]
npm WARN deprecated nodeunit@0.11.3: you are strongly encouraged to use other testing options
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN electra_web@1.0.0 No description
npm WARN electra_web@1.0.0 No repository field.
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json.1413824486
npm ERR! dest D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json.1413824486' -> 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json'
npm ERR! [OperationalError: EPERM: operation not permitted, rename 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json.1413824486' -> 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json'] {
npm ERR! cause: [Error: EPERM: operation not permitted, rename 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json.1413824486' -> 'D:\Dev\JS\Electra_WEB\node_modules\hosted-git-info\package.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'D:\\Dev\\JS\\Electra_WEB\\node_modules\\hosted-git-info\\package.json.1413824486',
npm ERR! dest: 'D:\\Dev\\JS\\Electra_WEB\\node_modules\\hosted-git-info\\package.json'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'D:\\Dev\\JS\\Electra_WEB\\node_modules\\hosted-git-info\\package.json.1413824486',
npm ERR! dest: 'D:\\Dev\\JS\\Electra_WEB\\node_modules\\hosted-git-info\\package.json',
npm ERR! parent: 'Electra_WEB'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HL_BUP\AppData\Roaming\npm-cache\_logs\2020-06-17T12_32_11_297Z-debug.log