# sf-rethink-migrate

> Soundfile.io Automatic RethinkDB table & index generator

Latest version **0.9.2** (published 2017-05-01) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install sf-rethink-migrate
pnpm add sf-rethink-migrate
yarn add sf-rethink-migrate
bun add sf-rethink-migrate
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.2 |
| Published | 2017-05-01 |
| First published | 2017-04-30 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matej Drzik |
| Maintainers | soundfile |
| Keywords | rethinkdb, soundfile |

## Links

- npm: https://www.npmjs.com/package/sf-rethink-migrate
- Repository: https://github.com/wirrareka/sf-rethink-migrate
- Homepage: https://github.com/wirrareka/sf-rethink-migrate#readme
- Issues: https://github.com/wirrareka/sf-rethink-migrate/issues
- npm.io page: https://npm.io/package/sf-rethink-migrate

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Recent versions

- 0.9.2 (latest) — 2017-05-01
- 0.9.1 — 2017-05-01
- 0.9.0 — 2017-04-30

## README

# sf-rethink-migrate

## About
This is a Node.js module using RethinkDBDash driver to automatically create tables and indexes in provided database;

## Usage
```
const r = require('rethinkdbdash')({ db: 'my_database' });

const schema = {
  table_1: [ "index_a", "index_b", "index_c" ],
  table_b: [ "other_index_a", "other_index_b", "other_index_c" ]
}

const Migrate = require('sf-rethink-migrate')(r, schema);

Migrate.migrate(() => {
  // database ready

});
```

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