You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-dl-clients-dot-net/hana-cloud-dl-clients-dot-net.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,13 @@ In order for the shell to recognize that the .NET SDK is installed and for any `
82
82
</ItemGroup>
83
83
```
84
84
85
-
Note that if the developer licensed version of the data lake Client was installed for Linux, the path might be similar to /home/dan/sap/hdlclient/sdk/dotnet/Sap.Data.SQLAnywhere.Core.v2.1.dll
85
+
Note that if the developer licensed version of the data lake Client was installed the path might be similar to
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-dl-clients-golang/hana-cloud-dl-clients-golang.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ On Linux, follow the instructions for the appropriate Linux version: [Installing
41
41
### Configure the environment
42
42
The data lake Relational Engine Client interface for Go, like the other data lake Relational Engine client interfaces (except JDBC), makes use of a C library named SQLDBC.
43
43
44
-
The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https://golang.org/cmd/cgo/). For further information on the following steps, consult [Build the Go Driver](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a895964984f210158925ce02750eb580/0f3109338be048e187caa9646199e3db.html?state=DRAFT) in the SAP HANA Cloud, Data Lake Client Interfaces Reference Guide. In order to use the Go Driver, a 64-bit `gcc` compiler is required.
44
+
The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https://golang.org/cmd/cgo/). For further information on the following steps, consult [Go (golang) Driver](https://help.sap.com/docs/hana-cloud-data-lake/client-interfaces/go-golang-driver) in the SAP HANA Cloud, Data Lake Client Interfaces Reference Guide. In order to use the Go Driver, a 64-bit `gcc` compiler is required.
45
45
46
46
1. To check if a 64-bit `gcc` compiler is installed, run the following command:
47
47
@@ -77,7 +77,7 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https:/
77
77
78
78
GOPATH is set to a location such as `C:\Users\user\go` or `$HOME/go` and defines the root of your workspace which stores your codebase.
79
79
80
-
3. Set the `CGO_LDFLAGS` environment variable to point to the location of the HDLRE client library as shown below and set the `LD_LIBRARY_PATH` if needed.
80
+
3. Set the `CGO_LDFLAGS` environment variable to point to the location of the HDLRE client library as shown below.
81
81
82
82
On Windows, add a **NEW** variable. Set the variable name to **CGO_LDFLAGS** and the value as the location of `dbcapi` library: `C:\SAP\dlclient\IQ-17_1\Bin64\dbcapi.dll`
83
83
@@ -90,15 +90,14 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https:/
@@ -121,7 +120,7 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https:/
121
120
### Create a Go application that queries an SAP data lake Relational Engine
122
121
1. In a shell, create a folder named `go`, enter the newly created directory, and open a file named `goQuery.go` in an editor.
123
122
124
-
```Shell (Microsoft Windows)
123
+
```Shell (Windows)
125
124
mkdir %HOMEPATH%\DataLakeClientsTutorial\go
126
125
cd %HOMEPATH%\DataLakeClientsTutorial\go
127
126
notepad goQuery.go
@@ -201,10 +200,11 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https:/
201
200
202
201
4. Add the code below to `go.mod` under the go 1.23.4 (version) line:
203
202
204
-
>Make any necessary changes to ensure the path to the driver folder is correct.
203
+
>Ensure you have the correct path to the driver folder. The path depends on your installation. Note that two example locations are provided. Choose the one that's closest to your installation and edit it if necessary.
@@ -216,12 +216,17 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [cgo](https:/
216
216
217
217

218
218
219
-
5. Run the application:
219
+
5. Run the application or build and run the application:
220
220
221
221
```Shell
222
222
go run goQuery.go
223
223
```
224
224
225
+
```Shell Microsoft Windows
226
+
go build goQuery.go
227
+
goQuery.exe
228
+
```
229
+
225
230

226
231
227
232
For more information on the API's used, consult the SAP HANA Cloud, data lake connection specific properties at [Connect from Go to Data Lake Relational Engine](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a895964984f210158925ce02750eb580/0b55e305d26941c191c71eaa07f72bb5.html), [Go Database/SQL Tutorial](http://go-database-sql.org/index.html), and [Package SQL](https://golang.org/pkg/database/sql/)
Ensure that you have a Java Development Kit (JDK) installed and make sure it is accessible from your path. Details of the driver and supported versions can be found at [JDBC Drivers](https://help.sap.com/viewer/a894a54d84f21015b142ffe773888f8c/latest/en-US/3bd02ce86c5f101482b78476939fb83a.html) and [Oracle Java SE Support Roadmap](https://www.oracle.com/java/technologies/java-se-support-roadmap.html).
24
+
Ensure that you have a Java Development Kit (JDK) installed and make sure it is accessible from your path. Further details of the driver can be found at [JDBC Driver](https://help.sap.com/docs/hana-cloud-data-lake/client-interfaces/jdbc-driver).
25
25
26
26
An OpenJDK from SAP is available at [SapMachine](https://sap.github.io/SapMachine/#download).
27
27
@@ -34,15 +34,15 @@ javac -version
34
34
35
35
If these commands fail, ensure that the folder they are located in is included in your path.
36
36
37
-
The following command will install Java on openSUSE Leap 15.4.
37
+
For Linux, the following command will install Java on openSUSE Leap 15.4.
38
38
39
39
```Shell (Linux)
40
40
sudo zypper install java-11-openjdk-devel
41
41
```
42
42
43
43
44
44
### The data lake Relational Engine JDBC driver
45
-
The data lake Relational Engine JDBC driver is a type 2 driver, which means it has a native (non-Java) component. For additional details see [Type 2 driver – Native-API driver](https://en.wikipedia.org/wiki/JDBC_driver#Type_2_driver_%E2%80%93_Native-API_driver). The driver is located in `%IQDIR17%\Java\sajdbc4.jar` on Microsoft Windows and `$IQDIR17/java/sajdbc4.jar` on Linux. The native component is at `%IQDIR17%\Bin64\dbjdbc17.dll` on Microsoft Windows and `$IQDIR17\lib64\libdbjdbc17.so` on Linux.
45
+
The data lake Relational Engine JDBC driver is a type 2 driver, which means it has a native (non-Java) component. For additional details see [Type 2 driver – Native-API driver](https://en.wikipedia.org/wiki/JDBC_driver#Type_2_driver_%E2%80%93_Native-API_driver). The driver is located in `%IQDIR17%\java\sajdbc4.jar` on Microsoft Windows and `$IQDIR17/java/sajdbc4.jar` on Linux. The native component is at `%IQDIR17%\Bin64\dbjdbc17.dll` on Microsoft Windows and `$IQDIR17\lib64\libdbjdbc17.so` on Linux.
46
46
47
47
See [data lake Relational Engine JDBC driver](https://help.sap.com/docs/hana-cloud-data-lake/developer-guide-for-data-lake-relational-engine/jdbc-drivers) for additional details.
48
48
@@ -104,7 +104,7 @@ See [data lake Relational Engine JDBC driver](https://help.sap.com/docs/hana-clo
104
104
}
105
105
```
106
106
107
-
3. Compile the `.java` file into a `.class` file using the following command:
107
+
3. Save and close `JavaQuery.java`. Compile the `.java` file into a `.class` file using the following command:
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-dl-clients-node/hana-cloud-dl-clients-node.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ Ensure you have Node.js installed and check its version. Enter the following com
29
29
node -v
30
30
```
31
31
32
-
If Node.js is installed, the currently installed version is returned, such as v20.10.0.
32
+
If Node.js is installed, the currently installed version is returned, such as v22.16.0.
33
33
34
-
If Node.js is not installed, download the long-term support (LTS) version of Node.js from [Download Node.js](https://nodejs.org/en/download/).
34
+
If Node.js is not installed, download the long-term support (LTS) version of the Node.js installer from [Download Node.js](https://nodejs.org/en/download/).
35
35
36
36
>If an install for Node.js is not provided on Linux, you may choose to install it via a package manager. For more details, please navigate to [this link](https://nodejs.org/en/download/package-manager/).
37
37
@@ -44,6 +44,11 @@ If Node.js is not installed, download the long-term support (LTS) version of Nod
44
44
45
45
### Install the data lake Relational Engine client for Node.js
46
46
The Node.js driver covered in this tutorial is `@sap\iq-client` which supports the latest Node.js versions and includes a promise library. An alternate driver is the [SQL Anywhere](https://github.com/sqlanywhere/node-sqlanywhere) driver.
47
+
The SQL Anywhere driver can be installed by running this command.
48
+
49
+
```Shell (Microsoft Windows)
50
+
npm install sqlanywhere
51
+
```
47
52
48
53
1. Add the dependencies to the driver.
49
54
@@ -57,7 +62,7 @@ The Node.js driver covered in this tutorial is `@sap\iq-client` which supports t
57
62
npm install
58
63
```
59
64
60
-
2. Create a folder named `node` and enter the newly created directory.
65
+
2. Open a new Shell and create a folder named `node` and enter the newly created directory.
61
66
62
67
```Shell (Microsoft Windows)
63
68
mkdir %HOMEPATH%\DataLakeClientsTutorial\node
@@ -112,7 +117,7 @@ The Node.js driver covered in this tutorial is `@sap\iq-client` which supports t
var PromiseModule = require('@sap/iq-client/extension/Promise.js');
301
306
302
307
var connOptions = {
@@ -308,7 +313,7 @@ The Node.js driver for the data lake Relational Engine client provides support f
308
313
};
309
314
310
315
//Asynchronous example calling a stored procedure that uses the promise module
311
-
var connection = datalakeIQ.createConnection();
316
+
var connection = datalakeRE.createConnection();
312
317
var statement;
313
318
314
319
PromiseModule.connect(connection, connOptions)
@@ -379,7 +384,7 @@ The Node.js driver for the data lake Relational Engine client provides support f
379
384
380
385
381
386
### Debug the application
382
-
Visual Studio Code can run and debug a Node.js application. It is a lightweight but powerful source code editor which is available on Windows, macOS and Linux.
387
+
Visual Studio Code can run and debug a Node.js application. It is a lightweight but powerful source code editor which is available on Windows, macOS and Linux. Ensure that Node.js is added to your path in environment variables such as C:\Program Files\nodejs.
383
388
384
389
1. If required, download [Visual Studio Code.](https://code.visualstudio.com/Download).
385
390
@@ -397,6 +402,13 @@ Visual Studio Code can run and debug a Node.js application. It is a lightweight
397
402
398
403

399
404
405
+
If "Can't find Node.js binary 'node': path does not exist" error pops up, open a Shell and run the following command.
406
+
```Shell
407
+
code .
408
+
```
409
+
Then restart VSCode.
410
+
411
+
400
412
### Knowledge check
401
413
Congratulations! You have created and debugged a Node.js application that connects to and queries an SAP data lake Relational Engine database.
0 commit comments