• Stars
    star
    314
  • Rank 133,353 (Top 3 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SAP HANA Database Client for Node

hdb - Pure JavaScript SAP HANA Database Client

Version Build Coverage License Downloads REUSE status

Table of contents

Install

Install from npm:

npm install hdb

or clone from the GitHub repository to run tests and examples locally:

git clone https://github.com/SAP/node-hdb.git
cd node-hdb
npm install

SAP Support for hdb and @sap/hana-client

The hdb and @sap/hana-client Node.js SAP HANA client drivers are supported by SAP for connecting to SAP HANA Cloud and SAP HANA Platform servers. When starting a new project, it is encouraged to use the fully featured @sap/hana-client driver (documentation).

npm install @sap/hana-client

Below is a major feature comparison chart between the two drivers:

Feature @sap/hana-client hdb
Connectivity to SAP HANA Cloud ✔️ ✔️
Connectivity to SAP HANA as a Service ✔️ ✔️
Connectivity to SAP HANA Platform ✔️ ✔️
Transport Layer Security (TLS) ✔️ ✔️
Active-Active Read Enabled ✔️
Client-Side Data Encryption ✔️
Statement Distribution ✔️
Password/PBKDF2 Authentication ✔️ ✔️
SAML Authentication ✔️ ✔️
JWT Authentication ✔️ ✔️
LDAP Authentication ✔️ ✔️
Kerberos Authentication ✔️
X.509 Authentication ✔️
Secure User Store Integration (hdbuserstore) ✔️
Connections through HTTP proxy ✔️
Connections through SOCKS proxy (SAP Cloud Connector) ✔️
Tracing via hdbsqldbc_cons ✔️
Tracing via environment variable to a file ✔️ ✔️
Pure JavaScript package ✔️
Node.js major version support 8+ All Supported Versions
License (without alternate SAP license agreement) SAP Developer Agreement Apache 2.0
SAP Support (with SAP Support agreement) Component HAN-DB-CLI Component HAN-DB-CLI
Community Support answers.sap.com HANA tag node-hdb/issues

The hdb driver may also have different APIs or lack support for SAP HANA server features where the @sap/hana-client is fully supported. APIs that are the same in both drivers may have different behaviour.

Getting started

If you do not have access to an SAP HANA server, go to the SAP HANA Developer Center and choose one of the options to use SAP HANA Express or deploy a new SAP HANA Cloud server.

This is a very simple example showing how to use this module:

var hdb    = require('hdb');
var client = hdb.createClient({
  host     : 'hostname',
  port     : 30015,
  user     : 'user',
  password : 'secret'
});
client.on('error', function (err) {
  console.error('Network connection error', err);
});
client.connect(function (err) {
  if (err) {
  	return console.error('Connect error', err);
  }
  client.exec('select * from DUMMY', function (err, rows) {
	client.end();
    if (err) {
      return console.error('Execute error:', err);
    }
    console.log('Results:', rows);
  });
});

Establish a database connection

The first step to establish a database connection is to create a client object. It is recommended to pass all required connect options like host, port, user and password to the createClient function. They will be used as defaults for any following connect calls on the created client instance. Options beginning with the prefix "SESSIONVARIABLE:" are used to set session-specific client information at connect time (see example of setting EXAMPLEKEY=EXAMPLEVALUE below). In case of network connection errors like a connection timeout or a database restart, you should register an error event handler in order to be able to handle these kinds of problems. If there are no error event handlers, errors will not be emitted.

var hdb    = require('hdb');
var client = hdb.createClient({
  host     : 'hostname',
  port     : 30015,
  user     : 'user',
  password : 'secret',
  'SESSIONVARIABLE:EXAMPLEKEY' : 'EXAMPLEVALUE'
});
client.on('error', function (err) {
  console.error('Network connection error', err);
});
console.log(client.readyState); // new

When a client instance is created it does not immediately open a network connection to the database host. Initially, the client is in a 'new' state. When you call connect for the first time, two things are done internally:

  1. A network connection is established and the communication is initialized (Protocol - and Product Version exchange). Now the connection is ready for exchanging messages but no user session is established as the client is in a disconnected state. This step is skipped if the client is already in a disconnected state.

  2. The authentication process is initiated. After a successful user authentication a database session is established and the client is in a connected state. If authentication fails the client remains in a 'disconnect' state.

client.connect(function (err) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log(client.readyState); // connected
});

If user and password are specified they will override the defaults of the client. It is possible to disconnect and reconnect with a different user on the same client instance and the same network connection.

The client also supports SAP HANA systems installed in multiple-container (MDC) mode. In this case a single SAP HANA system may contain several isolated tenant databases. A database is identified by its name. One of the databases in an MDC setup is the system database which is used for central system administration. One can connect to a specific tenant database directly via its host and SQL port (as shown in the example above) or via the system database which may lookup the exact host and port of a particular database by a given name.

var hdb    = require('hdb');
var client = hdb.createClient({
  host         : 'hostname', // system database host
  port         : 30013,      // system database port
  databaseName : 'DB1',      // name of a particular tenant database
  user         : 'user',     // user for the tenant database
  password     : 'secret'    // password for the user specified
});

The client also accepts an instance number instead of the port of the system database:

var hdb    = require('hdb');
var client = hdb.createClient({
  host           : 'hostname', // system database host
  instanceNumber : '00',       // instance number of the HANA system
  databaseName   : 'DB1',      // name of a particular tenant database
  user           : 'user',     // user for the tenant database
  password       : 'secret'    // password for the user specified
});

Multiple hosts can be provided to the client as well:

var hdb    = require('hdb');
var client = hdb.createClient({
  hosts : [ { host: 'host1', port: 30015 }, { host: 'host2', port: 30015 } ],
  user     : 'user',
  password : 'secret'
});

This is suitable for multiple-host SAP HANA systems which are distributed over several hosts. The client establishes a connection to the first available host from the list.

Authentication mechanisms

Details about the different authentication methods can be found in the SAP HANA Security Guide.

User / Password

Users authenticate themselves with their database user and password.

SAML assertion

SAML bearer assertions as well as unsolicited SAML responses that include an unencrypted SAML assertion can be used to authenticate users. SAML assertions and responses must be signed using XML signatures. XML Digital signatures can be created with xml-crypto or xml-dsig.

Instead of user and password you have to provide a SAML assertion:

client.connect({
  assertion: '<Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" ...>...</Assertion>'
},function (err) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('User:', client.get('user'));
  console.log('SessionCookie:', client.get('SessionCookie'));
});

After a successful SAML authentication, the server returns the database user and a SessionCookie which can be used for reconnecting.

JWT token

JWT tokens can also be used to authenticate users.

Instead of user and password you have to provide a JWT token:

client.connect({
  token: 'eyJhbGciOiJSUzI1NiJ9....'
},function (err) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('User:', client.get('user'));
  console.log('SessionCookie:', client.get('SessionCookie'));
});

After a successful JWT authentication, the server returns the database user and a SessionCookie which can be used for reconnecting.

Encrypted network communication

To establish an encrypted database connection just pass either key, cert and ca or a pfx to createClient.

var client = hdb.createClient({
  host : 'hostname',
  port : 30015,
  key  : fs.readFileSync('client-key.pem'),
  cert : fs.readFileSync('client-cert.pem'),
  ca   : [fs.readFileSync('trusted-cert.pem')],
  ...
});

Use the useTLS option if you would like to connect to SAP HANA using Node.js's trusted certificates.

var client = hdb.createClient({
  host : 'hostname',
  port : 30015,
  useTLS: true,
  ...
});

Note for MDC use cases: The system database and the target tenant database may be configured to work with different certificates. If so, make sure to include all the necessary TLS-related properties for both the databases in the client's options.

In case you need custom logic to validate the server's hostname against the certificate, you can assign a callback function to the checkServerIdentity property, alongside the other connection options. The callback is supplied to the tls.connect funciton of the TLS API and should conform to the signature described there.

Direct Statement Execution

Direct statement execution is the simplest way to execute SQL statements. The only input parameter is the SQL command to be executed. Generally, statement execution results are returned using callbacks. The type of returned result depends on the kind of statement.

DDL Statement

In the case of a DDL statement nothing is returned:

client.exec('create table TEST.NUMBERS (a int, b varchar(16))', function (err) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('Table TEST.NUMBERS has been created');
});

DML Statement

In the case of a DML Statement the number of affectedRows is returned:

client.exec('insert into TEST.NUMBERS values (1, \'one\')', function (err, affectedRows) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('Number of affected rows:', affectedRows);
});

Query

The exec function is a convenient way to completely retrieve the result of a query. In this case all selected rows are fetched and returned in the callback. The resultSet is automatically closed and all Lobs are completely read and returned as buffer objects. If streaming of the results is required you will have to use the execute function. This is described in section Streaming results:

client.exec('select A, B from TEST.NUMBERS order by A', function(err, rows) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('Rows:', rows);
});

Different Representations of Query Results

The default representation of a single row is an object where the property names are the columnDisplayNames of the resultSetMetadata:

var command = 'select top 1 * from t1';
client.exec(command, function(err, rows) {
  /* rows will be an array like this:
  [{
    ID: 1,
    A: 't1.1.a',
    B: 't1.1.b'
  }]
  */
});

If your SQL statement is a join with overlapping column names, you may want to get separate objects for each table per row. This is possible if you set option nestTables to TRUE:

var command = 'select top 1 * from t1 join t2 on t1.id = t2.id';
var options = {
  nestTables: true
};
client.exec(command, options, function(err, rows) {
  /* rows will be an array like this now:
  [{
    T1: {
      ID: 1,
      A: 't1.1.a',
      B: 't1.1.b',
    },
    T2: {
      ID: 1
      A: 't2.1.a',
      B: 't2.1.b',
    },
  }]
  */
});

It is also possible to return all rows as an array where the order of the column values is exactly the same as in the resultSetMetadata. In this case you have to set the option rowsAsArray to TRUE:

var command = 'select top 1 * from t1 join t2 on t1.id = t2.id';
var options = {
  rowsAsArray: true
};
client.exec(command, options, function(err, rows) {
  /* rows will be an array like this now:
  [[
    1,
    't1.1.a',
    't1.1.b',
    1
    't2.1.a',
    't2.1.b'
  ]]
  */
});

Prepared Statement Execution

Prepare a Statement

The client returns a statement object which can be executed multiple times:

client.prepare('select * from DUMMY where DUMMY = ?', function (err, statement){
  if (err) {
    return console.error('Error:', err);
  }
  // do something with the statement
  console.log('StatementId', statement.id);
});

Execute a Statement

The execution of a prepared statement is similar to the direct statement execution on the client. The difference is that the first parameter of the exec function is an array with positional parameters. In case of named parameters it can also be an parameters object:

statement.exec(['X'], function (err, rows) {
  if (err) {
    return console.error('Error:', err);
  }
  console.log('Rows:', rows);
});

If you use the execute function instead of the exec function the resultSet is returned in the callback like in the direct query execution above.

Calling Stored Procedures

If you have a stored procedure similar to the following example:

create procedure PROC_DUMMY (in a int, in b int, out c int, out d DUMMY, out e TABLES)
  language sqlscript
  reads sql data as
  begin
    c := :a + :b;
    d = select * from DUMMY;
    e = select * from TABLES;
  end

You can call it via a prepared statement. The second argument is always an object with the scalar parameters. If there are no scalar parameters, an empty object {} is returned. The following arguments are the resultSets:

client.prepare('call PROC_DUMMY (?, ?, ?, ?, ?)', function(err, statement){
  if (err) {
    return console.error('Prepare error:', err);
  }
  statement.exec({
    A: 3,
    B: 4
  }, function(err, parameters, dummyRows, tableRows) {
    if (err) {
      return console.error('Exec error:', err);
    }
    console.log('Parameters:', parameters);
    console.log('Dummies:', dummyRows);
    console.log('Tables:', tableRows);
  });
});

Note: Default values for stored procedures are not supported.

Drop Statement

To drop the statement simply call:

statement.drop(function(err){
  if (err) {
    return console.error('Drop error:', err);
  }
  console.log('Statement dropped');
});

The callback is optional in this case.

Using Datetime types

If you want to use DATETIME types in a prepared statement, be aware that strings like '14.04.2016 12:41:11.215' are not processed by the SAP HANA Database but by the node-hdb module. Therefore, you must use the exact required format that would be returned by a selection made with this module. The formats are:

TIME: '13:32:20'
DATE: '2016-04-14'
TIMESTAMP: '2016-04-14T13:32:20.737'
SECONDDATE: '2016-04-14T13:32:20'

Another possibility is to use the functions TO_DATE, TO_DATS, TO_TIME and TO_TIMESTAMP in your SQL statement to convert your string to a valid DATETIME type.

Bulk Insert

If you want to insert multiple rows with a single execution you just have to provide the all parameters as array, for example:

client.prepare('insert into TEST.NUMBERS values (?, ?)', function(err, statement){
  if (err) {
    return console.error('Prepare error:', err);
  }
  statement.exec([[1, 'one'], ['2', 'two'], [3, 'three']], function(err, affectedRows) {
    if (err) {
      return console.error('Exec error:', err);
    }
    console.log('Array of affected rows:', affectedRows);
  });
});

For further details, see: app9.

Streaming results

If you use the execute function of the client or statement instead of the exec function, a resultSet object is returned in the callback instead of an array of all rows. The resultSet object allows you to create an object based row stream or an array based stream of rows which can be piped to an writer object. Don't forget to close the resultSet if you use the execute function:

client.execute('select A, B from TEST.NUMBERS order by A', function(err, rs) {
  if (err) {
    return console.error('Error:', err);
  }
  rs.setFetchSize(2048);
  rs.createObjectStream()
    .pipe(new MyWriteStream())
    .on('finish', function (){
      if (!rs.closed) {
       rs.close();
      }
    });
});

For further details, see app4.

Transaction handling

The default behavior is that each statement is automatically committed. If you want to manually control commit and rollback of a transaction, you can do this by calling setAutoCommit(false) on the client object:

function execTransaction(cb) {
  client.setAutoCommit(false);
  async.series([
    client.exec.bind(client, "insert into NUMBERS values (1, 'one')"),
    client.exec.bind(client, "insert into NUMBERS values (2, 'two')")
  ], function (err) {
    if (err) {
      client.rollback(function(err){
        if (err) {
          err.code = 'EROLLBACK';
          return cb(err);
        }
        cb(null, false);
      });
    } else {
      client.commit(function(commitError){
        if (err) {
          err.code = 'ECOMMIT';
          return cb(err);
        }
        cb(null, true);
      });
    }
    client.setAutoCommit(true);
  });
}

execTransaction(function(err, ok){
  if (err) {
    return console.error('Commit or Rollback error', err);
  }
  if (ok) {
    console.log('Commited');
  } else {
    console.log('Rolled back');
  }
})

For further details, see: tx1.

Streaming Large Objects

Read Streams

Reading large object as stream can be done if you use the execute method of client or statement. In this case for all LOB columns a Lob object is returned. You can call createReadStream or read in order create a readable stream or to read the LOB completely.

Write Streams

Writing large objects is automatically done. You just have to pass a Readable instance or a buffer object as parameter.

For further details, see: app7.

CESU-8 encoding support

The SAP HANA server connectivity protocol uses CESU-8 encoding. Node.js does not suport CESU-8 natively and the driver by default converts all text to CESU-8 format in the javascript layer including SQL statements.

Due to the fact that Node.js has built-in support for UTF-8, using UTF-8 in the HDB drivers can lead to performance gains especially for large text data. If you are sure that your data contains only BMP characters, you can disable CESU-8 conversion by setting a flag in the client configuration.

createClient accepts the parameter useCesu8 to disable CESU-8 support. Here is how to provide the configuration:

var hdb    = require('hdb');
var client = hdb.createClient({
  host     : 'hostname',
  port     : 30015,
  user     : 'user',
  password : 'secret',
  useCesu8 : false
});

This setting is per client and cannot be changed later.

Note: Using CESU-8 brings performance penalties proportionate to the text size that has to be converted.

TCP Keepalive

To configure TCP keepalive behaviour, include the tcpKeepAliveIdle connect option. The value provided for this option is the number of seconds before an idle connection will begin sending keepalive packets. By default, TCP keepalive will be turned on with a value of 200 seconds. If a value of 0 is specified, keepalive behaviour is determined by the operating system. The following example creates a client whose connections will begin sending keepalive packets after 300 seconds.

var hdb    = require('hdb');
var client = hdb.createClient({
  host             : 'hostname',
  port             : 30015,
  user             : 'user',
  password         : 'secret',
  tcpKeepAliveIdle : 300
});

TCP keepalive can be explicity disabled by specifying tcpKeepAliveIdle=false as in the example below.

var hdb    = require('hdb');
var client = hdb.createClient({
  host             : 'hostname',
  port             : 30015,
  user             : 'user',
  password         : 'secret',
  tcpKeepAliveIdle : false
});

Setting Session-Specific Client Information

The client information is a list of session variables (defined in property-value pairs that are case sensitive) that an application can set on a client object. These variables can be set at connection time via "SESSIONVARIABLE:" prefixed options, or by using the setClientInfo method to specify a single property-value pair.

var hdb    = require('hdb');
var client = hdb.createClient({
  host             : 'hostname',
  port             : 30015,
  user             : 'user',
  password         : 'secret',
  "SESSIONVARIABLE:EXAMPLEKEY1" : "EXAMPLEVALUE1"
});
client.setClientInfo("EXAMPLEKEY2", "EXAMPLEVALUE2");

Session variables set via the setClientInfo method will be sent to the server during the next execute, prepare, or fetch operation.

Running tests

To run the unit tests for hdb simply run:

make test-unit

To run the unit tests as well as acceptance tests for hdb you have to run:

make test

For the acceptance tests a database connection has to be established. Therefore, you need to copy the configuration template config.tpl.json in the test/db folder to config.json and change the connection data to yours. If the config.json file does not exist a local mock server is started.

Running examples

For any examples you need a valid config.json in the test/db folder.

  • app1: Simple query.
  • app2: Fetch rows from ResultSet.
  • app3: Streaming rows createObjectStream().
  • app4: Pipe row into JSON-Transform and to stdout.
  • app5: Stream from the filesystem into a db table.
  • app6: Stream from a db table into the filesystem.
  • app7: Insert a row with a large image into a db table (uses WriteLobRequest and Transaction internally).
  • app8: Automatic reconnect when network connection is lost.
  • app9: Insert multiple rows with large images into a db table as one batch.
  • app10: Usage example of query option nestTables.
  • call1: Call stored procedure.
  • call2: Call stored procedure with lob input and output parameter.
  • call3: Call stored procedure with table as input parameter.
  • tx1: Transaction handling (shows how to use commit and rollback).
  • csv: Stream a db table into csv file.
  • server: Stream rows into http response http://localhost:1337/{schema}/{tablename}?top={top}

To run the first example:

node examples/app1

Licensing

Copyright 2013-2021 SAP SE or an SAP affiliate company and node-hdb contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

More Repositories

1

openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
JavaScript
2,770
star
2

ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
HTML
1,525
star
3

styleguides

This repository provides SAP style guides for coding and coding-related topics.
Markdown
1,301
star
4

macOS-enterprise-privileges

For Mac users in an Enterprise environment, this app gives the User control over administration of their machine by elevating their level of access to Administrator privileges on macOS. Users can set the time frame using Preferences to perform specific tasks such as install or remove an application.
Objective-C
1,039
star
5

jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
Go
710
star
6

luigi

Micro frontend framework
JavaScript
697
star
7

spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
TypeScript
673
star
8

PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
Python
441
star
9

ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
JavaScript
421
star
10

abap-cleaner

ABAP cleaner applies 75+ cleanup rules to ABAP code at a single keystroke
Java
414
star
11

SapMachine

An OpenJDK release maintained and supported by SAP
Java
412
star
12

openSAP-ui5-course

Repository for content related to the openSAP courses "Evolved Web Apps with SAPUI5"
JavaScript
384
star
13

ui5-webcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
TypeScript
354
star
14

credential-digger

A Github scanning tool that identifies hardcoded credentials while filtering the false positive data through machine learning models 🔒
Python
312
star
15

macOS-icon-generator

Icons for macOS is the easiest way to create customized app icons in PNG format for your company’s internal app store. No graphic skills needed.
C
276
star
16

fundamental

Fiori Fundamentals is a component library and SASS toolkit for building SAP user interfaces with any technology.
Nunjucks
264
star
17

InfraBox

InfraBox is a cloud native continuous integration system
Python
261
star
18

openui5-sample-app

OpenUI5 Sample App
JavaScript
257
star
19

code-pal-for-abap

code pal for ABAP is a highly configurable engine, fully integrated into the ABAP development framework ensuring Cloud’s built-in quality.
ABAP
247
star
20

fundamental-ngx

Fundamental Library for Angular is SAP Design System Angular component library
TypeScript
232
star
21

node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
C++
232
star
22

generator-easy-ui5

Meta-generator various project types within the UI5 Universe
JavaScript
200
star
23

fundamental-vue

Vue.js components implementation of Fundamental Library Styles guidelines. The library is aiming to provide a Vue.js implementation of the components designed in Fundamental Library Styles.
Vue
189
star
24

ui5-typescript

Tooling to enable TypeScript support in SAP UI5 projects
TypeScript
182
star
25

fundamental-react

React implementation of the reusable component library designed in Fundamental Library Styles
JavaScript
178
star
26

python-pyodata

Enterprise-ready Python OData client
Python
169
star
27

go-hdb

SAP HANA Database Client for Go
Go
152
star
28

fundamental-styles

SAP Fiori, theme-able, accessible component library for building SAP user interfaces with any web technology.
JavaScript
151
star
29

curated-resources-for-domain-driven-design

You want to get started with Domain-Driven Design or are looking for advanced learning resources in this topic? Then this collection of curated learning resources is a good place to check out.
149
star
30

btp-solution-diagrams

SAP Business Technology Platform solution diagram repository, based on the official SAP BTP Solution diagram guideline. This has been designed in accordance with the SAP Fiori Horizon principles and color palette which provides a holistic and pleasing aesthetic and user experience.
TypeScript
143
star
31

project-portal-for-innersource

Lists all InnerSource projects of a company in an interactive and easy to use way. Can be used as a template for implementing the "InnerSource portal" pattern by the InnerSource Commons community.
JavaScript
142
star
32

cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Go
139
star
33

odata-vocabularies

SAP Vocabularies for semantic markup of structured data published via OData (www.odata.org) services.
JavaScript
135
star
34

ui5-inspector

With the UI5 Inspector, you can easily debug and support your OpenUI5/SAPUI5 based apps.
JavaScript
135
star
35

e-mobility-charging-stations-simulator

OCPP-J charging stations simulator
TypeScript
127
star
36

sap-btp-service-operator

SAP BTP service operator enables developers to connect Kubernetes clusters to SAP BTP accounts and to consume SAP BTP services within the clusters by using Kubernetes native tools.
Go
125
star
37

cloud-security-services-integration-library

Integration libraries and samples for authenticating users and clients bound to XSUAA authentication and authorization service or identity authentication service.
Java
125
star
38

cloud-sdk-js

Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
HTML
124
star
39

kafka-connect-sap

Kafka Connect SAP is a set of connectors, using the Apache Kafka Connect framework for reliably connecting Kafka with SAP systems
Scala
121
star
40

ui5-uiveri5

End-to-end testing framework for SAPUI5
JavaScript
120
star
41

project-kb

Home page of project "KB"
Python
112
star
42

C4CODATAAPIDEVGUIDE

The SAP Cloud for Customer OData API Developer’s Guide complements the SAP Cloud for Customer OData API Reference (a link will be provided later) with usage details and samples for SAP Cloud for Customer OData API in a format that is most convenient to developers. Furthermore, it also covers known restrictions and limitations.
Java
108
star
43

olingo-jpa-processor-v4

The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Java
108
star
44

sqlalchemy-hana

SQLAlchemy Dialect for SAP HANA
Python
107
star
45

sap-btp-reference-architectures

This repository contains "SAP BTP reference architectures" based on the official BTP solution diagrams and icons..
106
star
46

power-monitoring-tool-for-macos

Power Monitor is an application that measures and reports the power consumption of a Mac.
Objective-C
104
star
47

yeoman-ui

Provide rich user experience for Yeoman generators using VSCode extension or the browser.
TypeScript
101
star
48

script-to-package-tool-for-macos

Script2Pkg is an application for creating payload-free installer packages for macOS.
HTML
98
star
49

cloud-sdk-ios-fiori

SwiftUI implementation of the SAP Fiori for iOS Design Language.
Swift
93
star
50

ui5-cli

UI5 Tooling: CLI
JavaScript
92
star
51

gorfc

SAP NW RFC Connector for GO
Go
83
star
52

open-ux-tools

Enable community collaboration to jointly promote and facilitate best in class tooling capabilities
TypeScript
83
star
53

terraform-provider-btp

Terraform provider for SAP BTP
Go
78
star
54

cloud-active-defense

Add a layer of active defense to your cloud applications.
Go
73
star
55

Webchat

The SAP Conversational AI webchat let you deploy a bot straight to a website
JavaScript
73
star
56

project-foxhound

A web browser with dynamic data-flow tracking enabled in the Javascript engine and DOM, based on Mozilla Firefox (https://github.com/mozilla/gecko-dev). It can be used to identify insecure data flows or data privacy leaks in client-side web applications.
73
star
57

cf-java-logging-support

The Java Logging Support for Cloud Foundry supports the creation of structured log messages and the collection of request metrics
Java
71
star
58

risk-explorer-for-software-supply-chains

A taxonomy of attacks on software supply chains in the form of an attack tree, based on and linked to numerous real-world incidents and other resources. The taxonomy as well as related safeguards can be explored using an interactive visualization tool.
JavaScript
71
star
59

openui5-docs

OpenUI5 Markdown Documentation
69
star
60

abap-atc-cr-cv-s4hc

ABAP test cockpit cloud readiness check variants for SAP S/4HANA Cloud
TypeScript
69
star
61

fundamental-tools

Web applications with ABAP, done simple.
JavaScript
68
star
62

devops-docker-images

A collection of Dockerfiles for images that can be used to implement Continuous Delivery pipelines for SAP development projects with project "Piper" or any other CD tool.
JavaScript
68
star
63

ui5-builder

UI5 Tooling: Builder
JavaScript
67
star
64

machine-learning-lab

ML Lab enables teams to be more productive in delivering machine learning solutions for their products and datasets.
JavaScript
67
star
65

karma-ui5

A Karma plugin for UI5
JavaScript
66
star
66

cloud-s4-sdk-examples

Runnable example applications that showcase the usage of the SAP Cloud SDK.
Java
65
star
67

apibusinesshub-integration-recipes

Accelerate integration projects using SAP Cloud Platform Integration with crowdsourced best practices, curated by experts, designed for developers.
Java
62
star
68

fosstars-rating-core

A framework for defining ratings for open source projects. In particular, the framework offers a security rating for open source projects that may be used to assess the security risk that comes with open source components.
Java
59
star
69

abap-file-formats

File formats that define and specify the file representation for ABAP development objects
ABAP
55
star
70

apibusinesshub-api-recipes

Accelerate integration projects using SAP Cloud Platform API Management with crowdsourced best practices, curated by experts, designed for developers.
JavaScript
54
star
71

ui5-language-assistant

VSCode Extension and Editor Tooling for SAPUI5
TypeScript
51
star
72

open-ux-odata

Enable community collaboration to jointly promote and facilitate best in class framework and tooling capabilities when working with OData services.
TypeScript
51
star
73

ui5-server

UI5 Tooling: Server
JavaScript
46
star
74

cloud-sdk

The SAP Cloud SDK documentation and support repository.
HTML
44
star
75

odata-library

Javascript library for processing OData protocol and developing OData clients.
JavaScript
43
star
76

ui5-linter

A static code analysis tool for UI5
TypeScript
43
star
77

openui5-worklist-app

OpenUI5 worklist template app
JavaScript
40
star
78

cf-nodejs-logging-support

Node.js Logging Support for Cloud Foundry provides the creation of structured log messages and the collection of request metrics
JavaScript
39
star
79

neonbee

A reactive dataflow engine, a data stream processing framework using Vert.x
Java
39
star
80

xml-tools

A Set of libraries for working with XML in JavaScript, mainly focused on Editor Tooling Scenarios.
JavaScript
38
star
81

cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Go
38
star
82

code-pal-for-abap-cloud

Code Pal for ABAP - Cloud Edition helps ABAP developers adhere to clean code standards
ABAP
38
star
83

ui5-migration

A tool to support the migration of UI5 projects by adapting code for new UI5 framework versions.
JavaScript
37
star
84

odbc-cpp-wrapper

An object-oriented C++-wrapper of the ODBC API
C++
37
star
85

ui5-project

UI5 Tooling: Project Handling
JavaScript
37
star
86

devops-cm-client

Simple command line interface to handle basic change management related actions via ODATA requests.
Java
36
star
87

theming-base-content

Color, font and metric definitions of SAP themes to be used by application UIs and UI frameworks.
Less
35
star
88

hybris-commerce-eclipse-plugin

A plugin for Eclipse IDE that makes developers more efficient when developing on SAP Hybris Commerce.
Java
34
star
89

abap-to-json

ABAP to JSON serializer and deserializer
ABAP
33
star
90

emobility-smart-charging

Smart charging algorithms with REST API for electric vehicle fleets
Java
33
star
91

backgrounds

Backgrounds is an application that allows users to create their own custom background (wallpaper) for their Mac desktop. They can choose between two gradient types - linear and radial - and embed a logo. Each pixel of the background is calculated and optimized for the size of the connected screens.
Objective-C
33
star
92

project-piper-action

CI/CD tooling for the SAP Ecosystem, integrated with GitHub Actions
JavaScript
31
star
93

openui5-fhir

The openui5-fhir project connects the worlds of UI5 and FHIR®. Build beautiful and enterprise-ready web applications based on the FHIR® specification.
JavaScript
31
star
94

less-openui5

Build OpenUI5 themes with Less.js.
JavaScript
29
star
95

vscode-webview-rpc-lib

Provides a conventient way to communicate between VSCode extension and his Webviews. Use RPC calls to invoke functions on the webview and receive callbacks.
TypeScript
29
star
96

openui5-website

The OpenUI5 website.
JavaScript
27
star
97

ewm-cloud-robotics

Source code, containers & Helm charts enabling users to leverage the core of Google Cloud Robotics to automate fulfilment warehouse orders & tasks commissioned by SAP EWM
Python
27
star
98

ui5-webcomponents-ngx

UI5 Web Components for Angular provides directives for each UI5 Web Component. The directives allow to easily build your Angular application following the SAP Design System.
TypeScript
27
star
99

sap-commerce-db-sync

SAP Commerce extensions to perform table-to-table replication in single-directionally manner between two SAP Commerce instances or between SAP Commerce and an external database.
Java
26
star
100

ui5-manifest

This project contains the flattend json schema for the ui5 manifest.
26
star