# cassandra-query

> --help OR -h show help text --config OR -c name of saved config (if no name provided "default" is used)

Latest version **1.0.3** (published 2020-06-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install cassandra-query
pnpm add cassandra-query
yarn add cassandra-query
bun add cassandra-query
```

Provides the commands `cqu`, `cqu-configs`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-06-29 |
| First published | 2020-06-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | babak zarrinbal |
| Maintainers | babak.zarrinbal |
| Keywords | cassandra, query, cli |

## Links

- npm: https://www.npmjs.com/package/cassandra-query
- npm.io page: https://npm.io/package/cassandra-query

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [blubird](https://npm.io/package/blubird.md) 0.0.1-security
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [inquirer](https://npm.io/package/inquirer.md) ^7.2.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [markdown-js](https://npm.io/package/markdown-js.md) 0.0.4
- [cassandra-driver](https://npm.io/package/cassandra-driver.md) ~3.1.3

## 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.0.3 (latest) — 2020-06-29
- 1.0.2 — 2020-06-29
- 1.0.1 — 2020-06-29
- 1.0.0 — 2020-06-28

## README

# Cli tool to query cassandra database

## cqu: execute query on cassandra contactPoints with or without arguments

  ### params: (if no config defined previously used parameters will be used)

    --help         OR  -h   show help text
    --config       OR  -c   name of saved config (if no name provided "default" is used)

    --query        OR  -q   query to run on database
    --argFile      OR  -f   path to argument file
    --args         OR  -a   inline string for arguments
    --argMap       OR  -m   comma seperated maping string for maping args to query params starting from 1 example 2,1,4

    --placeholder  OR  -v   placeholder for vairable mapping (defaults to "%s")
    --argseperator OR  -s   seperator of args values (defaults to ",")
    --hosts        OR  -h   contactPoints comma seperated list of hosts for cassandra connection (defaults to "localhost")
    --keyspace     OR  -k   name space for cassandra connection
    --username     OR  -u   user name for cassandra connection
    --password     OR  -p   password for cassandra password
    --output       OR  -o   output file (if value is ommited it will be ./output.json)
    --timeout      OR  -t   timeout of the query in miliseconds (default is 5000 )

## cqu-configs (save/get parameters);
    additional configs to above minus --config (in this command it's irrelevent)
    --set  to set configs name (defaults to "default")
    --get  to get config (if value not provided it will show all configs)
    --configFile  to import or export saved config or configuration based on set or get

### Notes to consider
when defining vairables if "=" exists inside variable value you can't assign value with "="
  wrong command: cqu -q="select * from table where id=%s" -v="%s
  right command: cqu -q "select *  from table where id=%s" -v="%s

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