According to documentation, parameters needed to connect to HANA database are host, port, user and password.
from hdbcli import dbapi
conn = dbapi.connect(
address="<hostname>",
port=3<NN>MM,
user="<username>",
password="<password>"
)
cursor = conn.cursor()
This selects username as schema by default. Is there a way to specify schema name?
AFAIK there is no connection property that would allow setting/switching to a specific schema.
What you can easily do, however, is to switch to your intended schema right after creating the connection:
This works well for me and I don't see any side-effects besides the additional command to set the schema.