Closed abmusse closed 5 years ago
Original report by me.
This issue is a follow up to Issue #24
Currently this is a straight port from developerWorks.
I'm creating this issue to list what I think should be updated & for others to also make suggestions.
replace require('/QOpenSys/QIBM/ProdData/OPS/Node4/os400/db2i/lib/db2a') with require('idb-connector')
require('/QOpenSys/QIBM/ProdData/OPS/Node4/os400/db2i/lib/db2a')
require('idb-connector')
replace var declarations with let and const as appropriate.
var
let
const
use single quotes instead of double quotes
Remove concurrent query example - documented here that this can be bad!
update execute() syntax to show execute(out, error)
Some of the methods have duplicates for their syntaxes:
For example:
prepare(string SQL, function Callback()) prepare(string SQL, function Callback(Error))
Would change to only show: prepare(string SQL, function Callback(Error)).
resolved in PR #10
Original report by me.
This issue is a follow up to Issue #24
Currently this is a straight port from developerWorks.
I'm creating this issue to list what I think should be updated & for others to also make suggestions.
Examples
replace
require('/QOpenSys/QIBM/ProdData/OPS/Node4/os400/db2i/lib/db2a')
withrequire('idb-connector')
replace
var
declarations withlet
andconst
as appropriate.use single quotes instead of double quotes
Remove concurrent query example - documented here that this can be bad!
Docs
update execute() syntax to show execute(out, error)
Some of the methods have duplicates for their syntaxes:
For example:
Would change to only show: prepare(string SQL, function Callback(Error)).