Modules and Classes refernce¶
RethinkDB Model base functions.
Proposes the config
function that must be called before any work on RethinkDB.
If you don’t call the config
function, rethink:model will use default values to
connect “test” ddatabase on localhost:28015.
The config function will keep connection information inside the rethinkmodel.db package.
Note
This will probably change in future releases to allow usage of multiple databases connections.
-
rethinkmodel.
config
(user: str = 'admin', password: str = '', host: str = '127.0.0.1', port: int = 28015, dbname: str = 'test', timeout: int = 20, ssl: Optional[dict] = None, soft_delete=False)[source]¶ Configure database connection.
This must be called before any Model method call or use environment variables as described in
rethinkmodel.db
.