# @antonovicha/hdbext-async

> Async wrapper for @sap/hdbext.

Latest version **1.0.8** (published 2019-09-04) · mit license · 0 weekly downloads

## Install

```sh
npm install @antonovicha/hdbext-async
pnpm add @antonovicha/hdbext-async
yarn add @antonovicha/hdbext-async
bun add @antonovicha/hdbext-async
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2019-09-04 |
| First published | 2019-04-19 |
| Weekly downloads | 0 |
| License | mit |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | aleksei antonovich |
| Maintainers | antonovicha |
| Keywords | hana, sap, node, nodejs, database |

## Links

- npm: https://www.npmjs.com/package/@antonovicha/hdbext-async
- Repository: https://github.com/antonovicha/hdbext-async
- Homepage: https://github.com/antonovicha/hdbext-async#readme
- Issues: https://github.com/antonovicha/hdbext-async/issues
- npm.io page: https://npm.io/package/@antonovicha/hdbext-async

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2019-09-04
- 1.0.7 — 2019-09-04
- 1.0.6 — 2019-09-04
- 1.0.5 — 2019-08-29
- 1.0.4 — 2019-08-27
- 1.0.3 — 2019-08-26
- 1.0.2 — 2019-08-26
- 1.0.1 — 2019-08-26
- 1.0.0 — 2019-04-19

## README

# Async wrapper around hana-client connection and statement classes

Supposed to be used in express nodejs applications.

Work in progress. Versions published are alpha still.

## Usage

```bash
npm install @antonovicha/hdbext-async
```

### hdbext & hana-client typings
Inside of you `tsconfig.json` file include `@sap/hdbext` and `@sap/hana-client` typings provided by this package:

```json
{
  "compilerOptions": {
    ...
    "baseUrl": ".",
    "typeRoots": [
      ...
      "./node_modules/@antonovicha/hdbext-async/dist/@types/@sap",
      "./node_modules/@types",
      ...
    ],
  }
}
```

### Simple code example:

```typescript
import { HdbextAsync } from "@antonovicha/hdbext-async";
import * as hdbext from "@sap/hdbext";

hdbextAsync = new HdbextAsync(hdbext);
const connection = await hdbextAsync.createConnection(hanaOptions.hana);
const result1 = await connection.exec(sql, params, options);

const procedureFunction = await connection.loadProcedure(schema, procedureName);
const result2 = await procedureFunction([param1, param2]);
const result3 = await procedureFunction({ Param1: "something", Param2: 42 });

connection.close();

```

---
_Source: https://npm.io/package/@antonovicha/hdbext-async · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
