Skip to content

rethinkdb helper function #10

Description

@huamichaelchen

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
    )
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions