OptionalhostRethinkDB host. Defaults to 'localhost'.
OptionalportRethinkDB client-driver port. Defaults to 28015.
OptionaldbDefault database queries run against. Defaults to 'test'.
OptionalrInjected rethinkdb-ts term-builder. When provided, connect() uses
it directly and skips require('rethinkdb-ts') (used by tests to inject
a mock, and to share an r configured elsewhere).
OptionalconnectionInjected connection. When provided, queries .run(connection) against
it (single-connection mode) rather than relying on the driver's pool.
Connection options for
RethinkDBStore.host/port/dbconfigure the connection made by the lazily-requiredrethinkdb-tsdriver. Alternatively, an already-built term-builder (r) and/or an establishedconnectioncan be injected: whenris provided,connect()uses it as-is and does notrequire('rethinkdb-ts'); whenconnectionis provided, queries run against it (single-connection mode) instead of a driver-managed pool.