# mynosql-query

> cli friendly one-line query lang for mynosql

Latest version **1.0.0** (published 2015-04-09) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-04-09 |
| First published | 2015-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/mynosql-query
- Repository: https://github.com/dominictarr/mynosql-query
- Issues: https://github.com/dominictarr/mynosql-query/issues
- npm.io page: https://npm.io/package/mynosql-query

## Recent versions

- 1.0.0 (latest) — 2015-04-09

## README

# mynosql-query

cli friendly one-line queries for [mynosql](https://github.com/dominictarr/mynosql).

Has about the same level of expressiveness as SQL where queries.

## Example

``` js

var parse = require('mynosql-query')

var db = require('mynosql')(require('level')(pathToDb))

pull(
  db.query(parse('name=mynosql, version > 1.0.0')),
  pull.collect(console.log)
)

```

## Syntax

`<path><operator:value>+,...`

`path` may be joined by dots and may contain wildcards.

`foo.bar.baz` or `foo.*.baz`.

`operator:value` is a an operator `>,>=,<,<=,=,!=` and a value (string or number)
More than one range operator can be used.
i.e. foo.bar > 10 < 5 read as (foo.bar is greater than 10 and smaller than 5)

To match multiple paths, join the parts of the query together with `,`.

i.e. `foo.bar > 10, baz=true`

## License

MIT

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