# sqlwatcher

> Automatically push up sql snippets to your database.

Latest version **2.2.2** (published 2016-07-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install sqlwatcher
pnpm add sqlwatcher
yarn add sqlwatcher
bun add sqlwatcher
```

Provides the command `sqlwatcher`.

## 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 | 2.2.2 |
| Published | 2016-07-19 |
| First published | 2016-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kurtis Rainbolt-Greene |
| Maintainers | krainboltgreene |
| Keywords | watcher, sql, framework |

## Links

- npm: https://www.npmjs.com/package/sqlwatcher
- Repository: https://github.com/krainboltgreene/sqlwatcher.js
- Homepage: https://github.com/krainboltgreene/sqlwatcher.js#readme
- Issues: https://github.com/krainboltgreene/sqlwatcher.js/issues
- npm.io page: https://npm.io/package/sqlwatcher

## Dependencies (3)

- [knex](https://npm.io/package/knex.md) 0.11.7
- [ramda](https://npm.io/package/ramda.md) 0.21.0
- [chokidar](https://npm.io/package/chokidar.md) ^1.6.0

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 2.2.2 (latest) — 2016-07-19
- 2.2.1 — 2016-07-19
- 2.2.0 — 2016-07-19
- 2.1.0 — 2016-07-19
- 2.0.1 — 2016-07-18
- 2.0.0 — 2016-07-18
- 1.0.0 — 2016-07-18

## README

# sqlwatcher

Watch SQL files and have them automatically executed on a database. Perfect for handling a set of SQL functions you're working on.

![Version][BADGE_VERSION]
![Tests][BADGE_TRAVIS]
![Stability][BADGE_STABILITY]
![Dependencies][BADGE_DEPENDENCY]


## using

First have a directory of SQL files:

```
├── designer_matching/
│   ├── array_search.sql
│   ├── client_room_score.sql
│   ├── designer_room_score.sql
│   ├── matching_score.sql
│   ├── raw_room_score.sql
│   ├── raw_style_score.sql
│   └── style_score.sql
└── rewrite_activities_for_v2_activities.sql
```

Each of these `designer_matching/` files is a function, view, or table. While working on these functions you'll find yourself wanting to have them update the server's version. This is where sqlwatcher comes in:

```
$ sqlwatcher adapter:pg pattern:designer_matching/*.sql
```

Now when you change those files, you'll also be executing those files.


[BADGE_TRAVIS]: https://img.shields.io/travis/krainboltgreene/sqlwatcher.js.svg?maxAge=2592000&style=flat-square
[BADGE_VERSION]: https://img.shields.io/npm/v/sqlwatcher.svg?maxAge=2592000&style=flat-square
[BADGE_STABILITY]: https://img.shields.io/badge/stability-strong-green.svg?maxAge=2592000&style=flat-square
[BADGE_DEPENDENCY]: https://img.shields.io/david/krainboltgreene/sqlwatcher.js.svg?maxAge=2592000&style=flat-square

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