Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect SAP HANA to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to SAP HANA.
Implementation
This handler is implemented usinghdbcli
, the Python driver for SAP HANA.
The required arguments to establish a connection are as follows:
host
is the host name or IP address of the SAP HANA instance.port
is the port number of the SAP HANA instance.user
specifies the user name.password
specifies the password for the user.schema
sets the current schema, which is used for identifiers without a defined schema.
Usage
You can use the below SQL statements to create a schema in SAP HANA calledMINDSDB
and a table called TEST
.
The above example assumes usage of SAP HANA Cloud, which requires the
encrypt
parameter to be set to true
and uses port 443
.ID | NAME | DESCRIPTION |
---|---|---|
1 | h | w |