XS Engine database access

Accessing the database itself from within an XS Engine application is done simply, from JavaScript. In this section, we'll take a look at what needs to be done on the backend to get this to work.

The first thing that SAP HANA requires in order to give access to the database is that a user should be logged into the system. For that reason, the authentication-less application we've just built cannot be used as-is for database access.

You, therefore, have two options at this point:

  • Use the application skeleton we've just built as a template for new applications, and copy it to initialize applications as you create them
  • Modify the application we've just made, building upon it and adding more features as we go

The option you choose ...

Get Software Development on the SAP HANA Platform now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.