SQLTools - DB2
準備
nodejs
python
IBM CLI Driver ntx64_odbc_cli.zip
DB2 驅動的環境變量
- Download IBM CLI Driver manually, and unpackage the content into a folder, e.g.
C:\ibm\db2\clidriver
Set an environment variableIBM_DB_HOME
as the location. - add the bin folder of the IBM CLI Driver folder in the environment variable
PATH
, e.g.C:\ibm\db2\clidriver\bin
測試你的環境變量是否成功
As a test, please try npm install ibm_db in a node project folder. If the following information presents in the output, it means the environment is ready.
我第一次沒成功
是因爲少了 gyp & python(python的安裝就不說了)
npm install -g node-gyp
在vscode中安裝你的拓展
在第一次連接db2的時候會自動下載 ibm_db
During this extension is installing ibm_db, please check the output in the output panel of ‘SQLTools Language Server’ for details.
sqltools 與 db2connection的區別
都是對ibm_db做的包裝 前者包裝優秀方便 後者像是ibm做了一個封裝的demo