SAP Tech Bytes: HANA Client Tools for JavaScript Developers - Part 1 hana-client vs hdb
Compares SAP's two official Node.js drivers for connecting to SAP HANA, @sap/hana-client@sap/hana-clientSAP's own Node.js driver for SAP HANA: connect, run SQL and prepared statements, synchronously, through callbacks or as promises, over native client libraries npm installs per platform.sap official, btp and hdbhdbSAP's HANA driver for Node.js, written entirely in JavaScript so installing it pulls in no native client, running SQL against SAP HANA and SAP HANA Cloud with streams and prepared statements.sap official, btp: the former wraps precompiled, OS-specific native libraries and supports the fuller feature set, the latter is a pure JavaScript module with a single dependency and a fraction of the install footprint. It explains why SAP's Cloud Application Programming Model has defaulted to hdb since July 2021 despite hana-client's own documentation recommending it for new projects, and why the author rewrote the hana-cli sample project from hana-client to hdb to avoid shipping multiple copies of the native libraries.
Where it sits
Who is behind it
Developer Advocate
In the atlas: contributes to 15, wrote 7@jung-thomasauthor
Properties
About this work
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
- Ref
content:sap-tech-bytes-hana-client-tools-for-javascript-developers-part-1-hana-client-vs- JSON
- /content/sap-tech-bytes-hana-client-tools-for-javascript-developers-part-1-hana-client-vs.json
- MCP
- Connecting an agent