3.0.1 • Published 8 years ago

reshine v3.0.1

Weekly downloads
16
License
MIT
Repository
github
Last release
8 years ago

reshine

Let's take the sunshine path with RethinkDB

sunshine

Are you tired of always checking if your database exists and check for errors?
Are you tired of always checking if your table exists and check for errors?
Is your answer YES?
Then reshine is for you! It takes away that error handling and creates databases, tables for you if they don't exist.

Usage

import { connect, database } from 'reshine';

connect().then(conn =>
  database('mydb')(conn)
    .then({ table } => table('mytable'))
    .then({ find } => find('my-id'));
);

This gets the document if it exists. Any database and tables that don't exist along the way will be creating.

Things to do

  • exists for doc
  • upsert
  • documents need to be handled more sunshine-y
  • Tests (Not trusting the sunshine path that much)
  • When implementing the library I realized the newest data should also be last which it's currently not. So I guess a new major version is on the horizon
3.0.1

8 years ago

3.0.0

8 years ago

2.0.2

8 years ago

2.0.0

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago