rethinkdb.core
->Connection
(->Connection conn)
Positional factory function for class rethinkdb.core.Connection.
close
(close conn)
Closes RethinkDB database connection, stops all running queries and waits for response before returning.
connect
(connect & {:keys [host port token auth-key db async? ca-cert connect-timeout], :or {host "127.0.0.1", port 28015, token 0, auth-key "", db nil, async? false, connect-timeout 5000}})
Creates a database connection to a RethinkDB host. If db is supplied, it is used in any queries where a db is not explicitly set. Default values are used for any parameters not provided.
(connect :host “dbserver1.local”)
map->Connection
(map->Connection m__6289__auto__)
Factory function for class rethinkdb.core.Connection, taking a map of keywords to field values.