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-clients-golang/hana-clients-golang.md
+12-19Lines changed: 12 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ Go is an open-source programming language developed by Google to increase produc
22
22
---
23
23
24
24
### Install Go
25
-
26
25
The first step is to check if Go is installed, and if so, which version. To do so, enter the following command:
27
26
28
27
```Shell
@@ -57,6 +56,14 @@ The SAP HANA Client interface for Go, like the other SAP HANA client interfaces,
57
56
58
57
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.
59
58
59
+
>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.
64
+
65
+

66
+
60
67
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.
61
68
62
69

@@ -71,38 +78,24 @@ The SAP HANA Client interface for Go, like the other SAP HANA client interfaces,
71
78
72
79
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.
73
80
74
-
3. Set the required environment variables.
75
-
76
-
On Windows, search **Edit the System Environment Variables** and click on **Environment Variables...**.
77
-
78
-
>Optionally, you can also use the **SETX** command in command prompt to set a Windows environment variable. For example, `SETX CGO_LDFLAGS C:\SAP\hdbclient\libdbcapiHDB.dll`. Note that this will set a user variable, not a system variable.
4. Set the `CGO_LDFLAGS` environment variable to point to the location of the `libdbcapiHDB` library as shown below and set the `LD_LIBRARY_PATH` if needed.
81
+
3. Set the `CGO_LDFLAGS` environment variable to point to the location of the `libdbcapiHDB` library as shown below and set the `LD_LIBRARY_PATH` if needed.
89
82
90
-
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\hdbclient\libdbcapiHDB.dll`
83
+
On Windows, add a **NEW** variable. Set the variable name to **`CGO_LDFLAGS`** and the variable value to the location of `dbcapi` library: `C:\SAP\hdbclient\libdbcapiHDB.dll`
91
84
92
85

93
86
94
87
Ensure that the `hdbclient` folder is set in your **Path** environment variable. You can set this path by clicking on **New** and browsing for your `hdbclient` folder.
Ensure that you have a Java Development Kit (JDK) installed and ensure that it is accessible from your path. Details on supported versions can be found at SAP Note [3165810 - SAP HANA Client Supported Platforms](https://launchpad.support.sap.com/#/notes/3165810).
30
30
31
-
An OpenJDK from SAP is available at [SapMachine](https://sap.github.io/SapMachine/#download)
31
+
An OpenJDK from SAP is available at [SapMachine](https://sap.github.io/SapMachine/#download).
32
32
33
33
To verify that the JDK is correctly set up, run the following:
- How to create and debug a Python application that queries a SAP HANA database
18
18
19
19
## Intro
20
-
In the 2023 Stack Overflow's annual developer survey, Python ranked 3rd in the [Most popular technologies](https://survey.stackoverflow.co/2023/#most-popular-technologies-language) section. For further information on Python, see [Introduction to Python 3](https://realpython.com/python-introduction/).
20
+
In the 2023 Stack Overflow's annual developer survey, Python ranked 3rd in the [Most popular technologies](https://survey.stackoverflow.co/2023/#most-popular-technologies-language) section. For further information on Python, see [Introduction to Python 3](https://realpython.com/python-introduction/) or [The Python Tutorial](https://docs.python.org/3/tutorial/).
21
21
22
22
The following steps create a simple Python app that can connect to and query an SAP HANA database.
23
23
@@ -233,11 +233,9 @@ The code in `pythonQuery.py` uses [PEP 249 -- Python Database API Specification]
233
233
234
234
235
235
### Debug the application
236
-
237
-
238
236
Visual Studio Code provides plugins for Python and can be used to debug an application.
239
237
240
-
1. Open Visual Studio Code. If needed, download the application [here](https://code.visualstudio.com/Download).
238
+
1. If you have not already done so, download [Visual Studio Code](https://code.visualstudio.com/Download).
241
239
242
240
2. If you have not already done so, add the tutorial folder to the workspace by choosing **File | Add Folder to Workspace**, and then add the `HANAClientsTutorial` folder.
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-alerts-rest-api/hana-cloud-alerts-rest-api.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -319,7 +319,7 @@ If you wish to access alerts and metrics for multiple instances with one API cal
319
319
320
320
4. Create a new file named AlertsAndMetrics2.http file with the contents below. Highlighted values are to be updated with details from the service binding created in the previous step and optionally an instance ID.
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-alerts/hana-cloud-alerts.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Alerts can inform you of potential issues before they occur, such as when the nu
22
22
23
23
You can find details of any raised alerts through the alerts app in SAP HANA Cloud Central or by using the [REST API](hana-cloud-alerts-rest-api) (SAP HANA database). This is known as a pull approach.
24
24
25
-
Alternatively, alert details can be pushed to several configured channels such as email, Slack, or Microsoft Teams.
25
+
Alternatively, alert details can be pushed to several configured channels such as email, Slack, or Microsoft Teams. A list of built-in events can be found at [SAP HANA Cloud Service Database Events](https://help.sap.com/docs/alert-notification/sap-alert-notification-for-sap-btp/sap-hana-cloud-service-database-events).
26
26
27
27
> Access help from the SAP community or provide feedback on this tutorial by navigating to the "Feedback" link located on the top right of this page.
Copy file name to clipboardExpand all lines: tutorials/hana-cloud-automation-cli/hana-cloud-automation-cli.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ The subaccount ID can be obtained on the BTP Cockpit Overview page for the subac
233
233

234
234
235
235
#### Create an instance
236
-
In order to create an instance, a JSON describing the instance is required and a plan ID.
236
+
In order to create an instance, JSON describing the instance is required as well as a plan ID.
237
237
238
238
* Create a JSON file named **create.json** that specifies the parameters of the instance to be created. The JSON can be generated in the SAP HANA Cloud Central instance creation wizard or can come from an existing instance.
239
239
@@ -640,7 +640,7 @@ Log on to Cloud Foundry using an API endpoint.
640
640

641
641
642
642
#### Create an instance
643
-
In order to create an instance, a JSON describing the instance is required as is a service offering name and plan.
643
+
In order to create an instance, JSON describing the instance is required, as well as a service offering name and plan.
- How to create and debug a .NET application that queries a data lake Relational Engine
18
18
19
19
## Intro
20
-
[.NET](https://en.wikipedia.org/wiki/.NET_Core) is a free and opensource software framework for Microsoft Windows, Linux and Mac operating systems and is the successor to the .NET Framework. .NET was previously known as .NET Core.
20
+
[.NET](https://en.wikipedia.org/wiki/.NET_Core) is a free and open-source software framework for Microsoft Windows, Linux and Mac operating systems and is the successor to the .NET Framework. .NET was previously known as .NET Core.
- How to create and debug a Go application that queries a data lake Relational Engine
18
18
19
-
## Intro
20
-
Go is an opensource programming language developed by Google to increase productivity among programmers. For more information, see the [Go Documentation](https://golang.org/doc/).
19
+
## Intro
20
+
Go is an open-source programming language developed by Google to increase productivity among programmers. For more information, see the [Go Documentation](https://golang.org/doc/).
21
21
22
22
---
23
23
@@ -31,7 +31,7 @@ go version
31
31
32
32

33
33
34
-
If Go is installed, then it will return the currently installed version, such as 1.20.4
34
+
If Go is installed, then it will return the currently installed version, such as 1.21.5
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
@@ -43,7 +43,7 @@ On Linux, follow the instructions for the appropriate Linux version: [Installing
43
43
44
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
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.
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.
47
47
48
48
1. To check if a 64-bit `gcc` compiler is installed, run the following command:
49
49
@@ -61,7 +61,7 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [`cgo`](https
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
64
+
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
65
66
66

67
67
@@ -79,42 +79,33 @@ The Go driver loads the SQLDBC library named `libdbcapiHDB` using [`cgo`](https
79
79
80
80
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.
81
81
82
-
3. Set the required environment variables.
83
-
84
-
>On Windows, navigate to the start menu and search for **system** environment variables.
85
-
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.
82
+
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.
86
83
87
-
88
-
On Linux, open the .bash_profile
84
+
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`
89
85
90
-
```Shell (Linux)
91
-
pico ~/.bash_profile
92
-
```
86
+

93
87
94
-
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.
88
+
>It is also possible on Microsoft Windows to set this using the SETX command from a shell.
95
89
96
-
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`
97
90
98
-

99
-
100
-
On Linux, add the following lines to the bash_profile.
91
+
On Linux, add the following lines to the `.bash_profile`.
0 commit comments