-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create VSC extension for Db2 SQL #77
Comments
Do you look at IBM Db2 for z/OS Developer Extension on VS Code MarketPlace ? |
Is that open sourced? Can it get included into Zowe? I don't think so. |
@trode05 It does'nt require a license file or an "Db2ConnectActivated" db2 system. It use the Db2 JDBC driver, (you must download Db2 JDBC from USS where Db2 is installed). |
Free and open are not equal. Open source would allow community to extend and customize functionality. Basic functions like executing SQLs and retrieving results are simple things that can be coded quickly using CLI plugin's JS APIs. |
You don’t need (to aquire) a Db2Connect license to use Db2 JDBC driver. For us, using Zowe CLI Db2 was a problem : our Db2 systems are not « Db2ConnectActivated » and the license file for ODBC / Db2Connect was not accessible. Your requirement is to have a VS Code extension for Db2 Z : https://marketplace.visualstudio.com/items?itemName=ibm.db2forzosdeveloperextension is a (the) solution.
this is not what you look for ? |
Where do you see that license is not needed? Here is what I see in both extension and github description: Prerequisites for installing Db2 Developer Extension One of the following IBM Data Server Driver JDBC license files: The Db2 Connect Unlimited Edition for System z® server license The IBM Data Server Driver for JDBC client license file When you specify the location of the db2jcc_license_cisuz.jar license file in your VS Code settings (db2forzosdeveloperextension.db2sqlservice.dependencies), you must provide the full path. |
For JDBC driver, you only need to download "db2jcc_license_cisuz.jar" file from Db2 z installation path in z/OS-USS and declare local location in settings of the extension. Do you try it ? |
It does work for me, no question about it. What I am saying - this still requires you to own the license for Db2Connect. JDBC and ODBC drivers for Db2z always require a license for non-mainframe communications. A license can be activated on z/OS side or on a client side (via license file). So physically you don't need to install /configure Db2 Connect, but you must pay for the license. |
I think this is a fair representation of what @trode05 is asking for but it's not open source. I view this issue as asking for an open source Db2 extension to be built in Zowe on top of the existing Zowe CLI plugin code, which is different from a=the IBM proprietary one that was linked to on the marketplace. |
@trode05: "you must pay for the license" --> no, JDBC license file db2jcc_license_cisuz.jar is shipped with Db2 Z, no more charge, (DB2Connect is a standalone product, with its own license and its own charges). @solsu01: the demand for an open source solution was not initially expressed. Is it really a problem if the extension is not open source, but only free of charge? Db2 Z also is not open source, (and is chargeable). IBM is evolving on its strategy, and is making efforts through various projects to provide access interfaces to its solutions, (see the WAZI solution: https://www.ibm.com/products/wazi-developer). |
With Db2 plugin functionality, it seems to be straightforward to build a Visual Studio Code extension for basic Db2 SQL actions like: execute SQL and return SQL results. Such an extension could support highlighting - and this can be just ANSI SQL highlighting as Db2 SQL is very close to ANSI format.
The text was updated successfully, but these errors were encountered: