rethinkmodel.db - Connection and data management options

RethinkDB connection manager.

It only contains the connect() function. It’s preferable to use the rethinkmodel.config() function to set up connection informations before to call connec() function, or use environment variables.

  • RM_DBNAME

  • RM_PORT

  • RM_HOST

  • RM_USER

  • RM_PASSWORD

  • RM_TIMEOUT

rethinkmodel.db.connect()Tuple[rethinkdb.RethinkDB, Any][source]

Return a RethinkDB object + connection.

You will usually not need to call this function. Rethink:Model use this function to internally open and close database connection.