1.0.1 • Published 3 years ago

adonis-rethinkdb v1.0.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

RethinkDB provider for AdonisJS v5

This is just RethinkDB provider.

Lucid-RethinkDb will follow after I get some more time

Installation

  1. Install package with npm i adonis-rethinkdb or yarn add adonis-rethinkdb

  2. Add "adonis-rethinkdb" to your providers array in .adonisrc.json

  3. Add adonis-rethinkdb to tsconfig.json types array

  4. Create config/rethinkdb.ts config file and insert following config

    const rethinkDb = {
      db: 'test',
      host: 'localhost',
      port: 28015,
      // tls: true,
      // ca: caCert,
      // rejectUnauthorized: false,
    }
    
    export default rethinkDb
  5. Import import { r } from '@ioc:RethinkDb'

  6. Run queries in default DB:

    let players = await r.table('players').run()
  7. Run queries in specified DB:

    let players = await r.db('main').table('players').run()
1.0.1

3 years ago

1.0.0

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago