$ nimble install rethinkdb
Initiate new RethinkDB Client
import rethinkdb
var r = newRethinkclient(address = "127.0.0.1", port = Port(28015), db = "")
Create a connection to database server, using infomation from RethinkClient
r.connect()
Set the default connection to make REPL use easier. Allows calling .run() on queries without specifying a connection.
r.repl()
#or
r.connect()
r.repl()
Close an open connetion
r.close()
Close and reopen a connection
r.reconnect()
Change the defalt database on this connection
r.use(db_name)
Run a query on a connection, returning a JsonNode.
var r = newRethinkclient()
r.connect()
r.repl()
r.table("test").run()
- dbCreate
- dbDrop
- dbList
- tableCreate
- tableDrop
- tableList
- indexCreate
- indexDrop
- indexList
- indexRename
- indexStatus
- indexWait
- changes
- insert
- update
- replace
- delete
- sync
- db
- table
- get
- getAll
- between
- filter