Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rethinkdb helper function #10

Open
huamichaelchen opened this issue Nov 21, 2019 · 1 comment
Open

rethinkdb helper function #10

huamichaelchen opened this issue Nov 21, 2019 · 1 comment

Comments

@huamichaelchen
Copy link

Good stuff, but when I tried to run docker-compose up, stuff like rethink.connect() or rethink.db_list() are giving me some troubles. I suspect that we need to initialize rethinkdb object first?

For instance:

r = RethinkDB()
r.connect()
```


```python
import rethinkdb as rethink

from pywebhooks import DEFAULT_DB_NAME, RETHINK_PORT, \
    RETHINK_HOST, RETHINK_AUTH_KEY


def get_connection():
    return rethink.connect(
        host=RETHINK_HOST,
        port=RETHINK_PORT,
        auth_key=RETHINK_AUTH_KEY,
        db=DEFAULT_DB_NAME
    )
```
@chadlung
Copy link
Owner

Take a look at the Quick Start on how to init the DB.
https://github.com/chadlung/pywebhooks#non-quickstart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants