No description
Find a file
2021-10-01 07:58:35 +07:00
.github Create FUNDING.yml 2021-10-01 07:58:35 +07:00
bench add benchmark for table, seq and set 2020-01-06 22:41:29 +07:00
src restruct nimble package 2021-08-20 01:02:37 +07:00
tests make changes() stream working with callback 2020-01-09 00:59:34 +07:00
.gitignore rethinkdb.nimble 2017-07-01 11:15:42 +07:00
.travis.yml falback to rethinkdb 2.3.4 2020-01-06 23:40:59 +07:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-10-22 14:27:54 +07:00
LICENSE Initial commit 2015-05-04 01:06:08 +07:00
README.md Update README.md 2016-01-21 11:23:56 +07:00
rethinkdb.nimble restruct nimble package 2021-08-20 01:02:37 +07:00

RethinkDB driver for Nim

Installation

$ nimble install rethinkdb

Accessing ReQL

r

Initiate new RethinkDB Client

import rethinkdb
var r = newRethinkclient([address = "127.0.0.1",] [port = Port(28015),] [auth = "",] [db = ""])

connect

Create a connection to database server, using infomation from RethinkClient

r.connect()

repl

Set the default connection to make REPL use easier. Allows calling .run() on queries without specifying a connection.

r.repl()
#or
r.connect().repl()

close

Close an open connetion

r.close()

reconnect

Close and reopen a connection

r.reconnect()

use

Change the defalt database on this connection

r.use(db_name)

run

Run a query on a connection, returning a JsonNode.

var r = newRethinkclient()
r.connect().repl()
r.table("test").run()

Manipulating databases

  • dbCreate
  • dbDrop
  • dbList

Manipulating tables

  • tableCreate
  • tableDrop
  • tableList
  • indexCreate
  • indexDrop
  • indexList
  • indexRename
  • indexStatus
  • indexWait
  • changes

Writing data

  • insert
  • update
  • replace
  • delete
  • sync

Selecting data

  • db
  • table
  • get
  • getAll
  • between
  • filter