# node-database-executor

> [![CodeQL](https://github.com/darshit-shah/node-database-executor/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/darshit-shah/node-database-executor/actions/workflows/github-code-scanning/codeql) [![Node.js Package](https://g

Latest version **2.4.24** (published 2026-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-database-executor
pnpm add node-database-executor
yarn add node-database-executor
bun add node-database-executor
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.4.24 |
| Published | 2026-01-06 |
| First published | 2016-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 119.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | darshit@byteprophecy.com |
| Maintainers | darshit-shah |

## Links

- npm: https://www.npmjs.com/package/node-database-executor
- Repository: https://github.com/darshit-shah/node-database-executor
- Homepage: https://github.com/darshit-shah/node-database-executor#readme
- Issues: https://github.com/darshit-shah/node-database-executor/issues
- npm.io page: https://npm.io/package/node-database-executor

## Dependencies (6)

- [debug](https://npm.io/package/debug.md) *
- [axiom-utils](https://npm.io/package/axiom-utils.md) *
- [@azure/identity](https://npm.io/package/@azure/identity.md) ^4.3.0
- [@azure/keyvault-secrets](https://npm.io/package/@azure/keyvault-secrets.md) ^4.8.0
- [node-database-connectors](https://npm.io/package/node-database-connectors.md) *
- [@aws-sdk/client-secrets-manager](https://npm.io/package/@aws-sdk/client-secrets-manager.md) 3.350.0

## Recent versions

- 2.4.24 (latest) — 2026-01-06
- 2.4.23 — 2025-05-03
- 2.4.22 — 2025-01-07
- 2.4.21 — 2024-07-19
- 2.4.20 — 2024-07-12
- 2.4.19 — 2024-06-27
- 2.4.18 — 2024-06-25
- 2.4.17 — 2024-06-06
- 2.4.16 — 2024-05-03
- 2.4.15 — 2024-03-28
- 2.4.14 — 2024-03-27
- 2.4.13 — 2024-03-08
- 2.4.12 — 2023-10-04
- 2.4.11 — 2023-06-23
- 2.4.10 — 2023-06-23
- … 40 more at https://npm.io/package/node-database-executor/versions

## README

[![CodeQL](https://github.com/darshit-shah/node-database-executor/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/darshit-shah/node-database-executor/actions/workflows/github-code-scanning/codeql)
[![Node.js Package](https://github.com/darshit-shah/node-database-executor/actions/workflows/npm-publish.yml/badge.svg?event=release)](https://github.com/darshit-shah/node-database-executor/actions/workflows/npm-publish.yml)

# node-database-executor

This module use for execute jsonQuery or rawQuery using your database config.
```js
const queryExecutor = require('node-database-executor').promise;
async function runQuery() {
  try {
    const query = {
      table: 'tablename',
      select: []
    };
    const queryConfig = {
      dbConfig: {
        type: 'database',
        databaseType: 'mysql',
        engine: 'MyISAM',
        database: 'database',
        host: 'host',
        port: 'port',
        user: 'user',
        password: 'password',
        connectionLimit:0,
        acquireTimeout: 2000
      },
      query: query
    };
    const jsonQueryData = await queryExecutor.executeQuery(queryConfig);  
    console.log(jsonQueryData);
  } catch (error) {
    console.log(error);
  }
}
runQuery();
```

---
_Source: https://npm.io/package/node-database-executor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
