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
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ In order for the shell to recognize that the .NET SDK is installed and for any `
109
109
pico Program.cs
110
110
```
111
111
112
-
5. Replace the entire contents of `Program.cs` with the code below:
112
+
5. Replace the entire contents of `Program.cs` with the code below. Update the host value in the connection string.
113
113
114
114
```C#
115
115
using System;
@@ -162,11 +162,9 @@ In order for the shell to recognize that the .NET SDK is installed and for any `
162
162
163
163
Save and close the `Program.cs` file after replacing the code.
164
164
165
-
The above app makes use of some of the data lake Relational Engine .NET driver methods, such as [SAConnection](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a894a54d84f21015b142ffe773888f8c/3c0ff5b76c5f10148352aa573b2bc242.html). Connection details forthis class can be found at [Connection Properties](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a894a54d84f21015b142ffe773888f8c/9da0c496b1cc4245bae5f9cadf98e5fc.html). See also the [.NET Driver](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a895964984f210158925ce02750eb580/aa95e60108104aac808272f210f52e19.html)in the SAP HANA Cloud, data Lake client interfaces guide. Further .NET API details can be found in the [.NET API browser](https://docs.microsoft.com/en-us/dotnet/api/?view=net-6.0).
165
+
>The above app makes use of some of the data lake Relational Engine .NET driver methods, such as [SAConnection](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a894a54d84f21015b142ffe773888f8c/3c0ff5b76c5f10148352aa573b2bc242.html). Connection details forthis class can be found at [Connection Properties](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a894a54d84f21015b142ffe773888f8c/9da0c496b1cc4245bae5f9cadf98e5fc.html). See also the [.NET Driver](https://help.sap.com/docs/SAP_HANA_DATA_LAKE/a895964984f210158925ce02750eb580/aa95e60108104aac808272f210f52e19.html)in the SAP HANA Cloud, data Lake client interfaces guide. Further .NET API details can be found in the [.NET API browser](https://docs.microsoft.com/en-us/dotnet/api/?view=net-6.0).
166
166
167
-
6. Update the host value in the connection string.
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-dl-clients-golang/hana-cloud-dl-clients-golang.md
+25-18Lines changed: 25 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -31,31 +31,42 @@ go version
31
31
32
32

33
33
34
-
If Go is installed, then it will return the currently installed version, such as 1.19.
34
+
If Go is installed, then it will return the currently installed version, such as 1.20.4
35
35
36
36
If it is not installed, download it from [Download Go](https://golang.org/dl/), run the installer, follow the provided instructions, and ensure that Go is in your path.
37
37
38
-
On Linux, follow the instructions for the appropriate Linux version such as the[Installing Go for openSUSE](https://en.opensuse.org/SDB:Go).
38
+
On Linux, follow the instructions for the appropriate Linux version:[Installing Go for openSUSE](https://en.opensuse.org/SDB:Go).
39
39
40
-
>In order for the shell to recognize that Go has been installed and for any go commands in future steps to be recognized, a new shell window needs to be opened.
40
+
>Note: A new shell window must be opened for the system to recognize the Go installation and for executing any future Go commands.
41
41
42
42
### Configure the environment
43
43
44
-
The data lake Relational Engine Client interface for Go, like the other data lake Relational Engine client interfaces, except for JDBC, makes use of a C library named SQLDBC. 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 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.
45
+
46
+
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.
45
47
46
48
1. To check if a 64-bit `gcc` compiler is installed, run the following command:
47
49
48
50
```Shell
49
51
gcc --version
50
52
```
51
53
52
-
For Windows (if it is not installed), it can be downloaded from [Download MinGW](https://www.mingw-w64.org/downloads/). Under **WinLibs.com**, you can install from [winlibs.com](https://winlibs.com/), by scrolling to the **Download** section and downloading the latest release version (UCRT runtime) of the ZIP archive for Win64 to install forthe x86_64 architecture, and then extracting the folder.
54
+
On Windows (if needed), download the compiler from [Download MinGW](https://www.mingw-w64.org/downloads/). Under **WinLibs.com**, follow the link to [winlibs.com](https://winlibs.com/), by navigating to the **Download** section. Find the latest release version of the Zip archive (UCRT runtime) forWin64 – x86_64. Then extract the folder.
53
55
54
56

55
57
56
-
If command prompt isn't showing you the installed version after running the version check command, manually add the bin folder to your path by setting it in your environment variables.
58
+
If command prompt isn't displaying the installed version after running the version check command, manually add the `bin` folder to your path by setting it in your System environment variables.
59
+
60
+
>On Windows, search **Edit the System Environment Variables** and click on **Environment Variables...**.
Look for the `Path` environment variable and double click to edit. Select **Browse** and manually browse through your File Explorer to find the bin folder
65
+
66
+

57
67
58
-
On Linux, install the System GNU C compiler for your version of Linux. Note that if you are using openSUSE, minGW is included in the installation for Go through YaST.
68
+
On Linux, install the System GNU C compiler for your version of Linux.
69
+
>Note: if you are using openSUSE, minGW is included in the installation for Go through YaST.
59
70
60
71

61
72
@@ -70,12 +81,10 @@ The data lake Relational Engine Client interface for Go, like the other data lak
70
81
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.
71
82
72
83
3. Set the required environment variables.
73
-
74
-
On Windows, search **Edit the System Environment Variables** and click on **Environment Variables...**.
75
84
76
-
>Optionally, you can also use the **SETX** command in command prompt to set a Windows environment variable. For example, `SETX CGO_LDFLAGS C:\SAP\hdlclient\IQ-17_1\Bin64\dbcapi.dll`. Note that this will set a user variable, not a system variable.
85
+
>On Windows, navigate to the start menu and search for **system** environment variables.
86
+
Optionally, you can also use the **SETX** command in command prompt to set a Windows environment variable. For example, `SETX CGO_LDFLAGS C:\SAP\hdlclient\IQ-17_1\Bin64\dbcapi.dll`. Note that this will set a user variable, not a system variable.
@@ -85,7 +94,7 @@ The data lake Relational Engine Client interface for Go, like the other data lak
85
94
86
95
4. 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.
87
96
88
-
On Windows, add the **NEW** System Variable. Set the variable name to **CGO_LDFLAGS** and the variable value to the location of `dbcapi` library: `C:\SAP\hdlclient\IQ-17_1\Bin64\dbcapi.dll`
97
+
On Windows, add a **NEW** System Variable. Set the variable name to **CGO_LDFLAGS** and the value as the location of `dbcapi` library: `C:\SAP\hdlclient\IQ-17_1\Bin64\dbcapi.dll`
89
98
90
99

91
100
@@ -97,7 +106,7 @@ The data lake Relational Engine Client interface for Go, like the other data lak
@@ -184,15 +182,21 @@ The following steps demonstrate how to configure `DBeaver` to connect to data la
184
182
185
183

186
184
187
-
2. In `DBeaver`, select**Database| Driver Manager | New** to create a new driver configuration.
185
+
2. In `DBeaver`, select**Database| Driver Manager | New** to create a new driver configuration. Name the driver **SAP HANA Cloud, data lake**
188
186
189
187

190
188
191
-
3. Under the **Libraries** tab, specify Java and native components that make up the driver.
189
+
3. Under the **Libraries** tab, add Java and native components by clicking Add File.
190
+
191
+

192
+
193
+
Press **OK** to save the new driver definition.
194
+
195
+

192
196
193
-

197
+
Then edit the driver and select`sajdbc4.jar`. Choose Find Class and selectthe driver class.
194
198
195
-
Select `sajdbc4.jar` and choose Find Class and press **OK** to save the new driver definition.
199
+

196
200
197
201
>On Linux, if an error occurs indicating that the library cannot load, ensure that source IQ.sh has been added to your environment as described at [Step 5: Install the data lake IQ client](hana-cloud-dl-clients-overview).
198
202
@@ -203,7 +207,7 @@ The following steps demonstrate how to configure `DBeaver` to connect to data la
203
207
5. Provide the JDBC URL and credentials and press the **Test Connection** button. An example of the URL is shown below.
0 commit comments