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

confusing documentation for database uri #423

Open
tam-borine opened this issue May 29, 2018 · 2 comments
Open

confusing documentation for database uri #423

tam-borine opened this issue May 29, 2018 · 2 comments

Comments

@tam-borine
Copy link

tam-borine commented May 29, 2018

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj
When I tried to use --repo mysql://username:password@hostname/database:table_name as per the documentation, it threw the error that I didn't have the database. But I had connected to it with psql so that wasn't true. Turned out removing the ":table_name" substring worked for me! Maybe the documentation needs updating?

@tam-borine
Copy link
Author

Ok so I was a bit confused, it depends where you're using the db uri, with the --repo flag it does need the :tablename but in other places, such as configuring SQLALCHEMY_DATABASE_URI you need to leave it off.

@matthewwardrop
Copy link
Collaborator

Hi @tam-borine , and thanks for connecting with us!

The behaviour you described is the correct behaviour, because a repository only needs one table, whereas the post metadata and user databases are indexed across several database tables.

Documentation, though, could definitely be improved. I'll leave this issue open until the documentation is improved in this way.

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

No branches or pull requests

2 participants