# @icon-solutions/balthazar-query-builder

> This package is a query-builder used to convert data from the segment-builder into SQL-queries.

Latest version **1.6.8** (published 2022-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install @icon-solutions/balthazar-query-builder
pnpm add @icon-solutions/balthazar-query-builder
yarn add @icon-solutions/balthazar-query-builder
bun add @icon-solutions/balthazar-query-builder
```

## 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.6.8 |
| Published | 2022-04-01 |
| First published | 2021-12-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 61.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonas Hjalland |
| Maintainers | jk_icon, madshegge, christianmd, jonash0605 |
| Keywords | swagger, autogen, Query, Builder, Query-builder |

## Links

- npm: https://www.npmjs.com/package/@icon-solutions/balthazar-query-builder
- Repository: https://github.com/Icon-Media-Group/balthazar-query-builder
- Homepage: https://github.com/Icon-Media-Group/balthazar-query-builder#readme
- Issues: https://github.com/Icon-Media-Group/balthazar-query-builder/issues
- npm.io page: https://npm.io/package/@icon-solutions/balthazar-query-builder

## Dependencies (1)

- [tsc](https://npm.io/package/tsc.md) ^2.0.4

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.6.8 (latest) — 2022-04-01
- 1.6.7 — 2022-04-01
- 1.6.6 — 2022-04-01
- 1.6.5 — 2022-04-01
- 1.6.4 — 2022-03-29
- 1.6.3 — 2022-03-29
- 1.6.2 — 2022-03-28
- 1.6.1 — 2022-03-28
- 1.6.0 — 2022-03-28
- 1.5.0 — 2022-03-15
- 1.4.0 — 2022-03-15
- 1.3.0 — 2022-03-15
- 1.2.0 — 2021-12-03
- 1.1.0 — 2021-12-02

## README

# Balthazar Query Builder
Balthazar Query Builder is a NPM package that provides functonality to convert data from Icon Segment Builder into SQL-queries.

## How to use
### Installation
The package is a private NPM package and is (so far) only available within the Icon Solutions development team.
```
npm install @icon-solutions/balthazar-query-builder
```

### Functions
#### _queryBuilder(queryData)_
A function that takes queryData as input and returns an object containing a SQL-query providing matches on given input, a request status and a message.

#### _countQueryBuilder(queryData)_
A function that take queryData as input and returns a object containing a SQL-query providing number of matches on given input, a request status and a message.

### Example usage
```javascript
import { queryBuilder, countQueryBuilder, QueryData, QueryResult } from '@icon-solutions/balthazar-query-builder';

const buildQueryHandler = (queryData: QueryData) => {
    const query: QueryResult = queryBuilder(queryData);
    console.log("Query: ", query);
    const count: QueryResult = countQueryBuilder(queryData);
    console.log("Count: ", count);
};
```

---
_Source: https://npm.io/package/@icon-solutions/balthazar-query-builder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
