Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xstoudi/rethink-struct

Assert that databases, tables and indexes exists on you RethinkDB server and create it if they don't.
https://github.com/xstoudi/rethink-struct

Last synced: about 1 month ago
JSON representation

Assert that databases, tables and indexes exists on you RethinkDB server and create it if they don't.

Awesome Lists containing this project

README

        

# rethink-struct

## Overview
Assert that databases, tables and indexes exists on you RethinkDB server and create it if they don't.

## Support
If you like this package and you like what you see in the ad, please click on it to support `rethink-struct`!

Sponsor

## Requirements
* Async/await support (Node 8 or Node 7 with harmony flag)

## Index support
Currently, `rethink-struct` is the only RethinkDB initialisation package that supports all indexes:
* Simple
* Compound
* Multi
* Geo

## How to assert ?
The package parse your schema and build the database as it should be.
You can find an example of use in the `example.js` file.