Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xstoudi/rethink-struct
- Owner: Xstoudi
- License: mit
- Created: 2017-11-06T15:17:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T15:09:10.000Z (almost 7 years ago)
- Last Synced: 2024-09-22T12:46:47.933Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`!
## 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.