We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think maybe in docs, more database related options can be added. Current Docs only note the following
DATABASE = { 'name': 'example.db', 'engine': 'peewee.SqliteDatabase', }
Only after reading the source did I realize that I can pass more options to it. For example, for someone who is using MySQL(need authentication)
DATABASE = { 'name': 'test', 'engine': 'peewee.MySQLDatabase', 'user': 'username', 'passwd': 'password', }
For a multi-thread application, especially for a MySQL application, I found it important to set thread_locals to True. So this is ok
DATABASE = { 'name': 'test', 'engine': 'peewee.MySQLDatabase', 'user': 'username', 'passwd': 'password', 'threadlocals': True, }
Or there is high probability to face coleifer/peewee#222 (comment) I suggest add some tips in docs to clarify these information...
The text was updated successfully, but these errors were encountered:
a89c12a
No branches or pull requests
I think maybe in docs, more database related options can be added.
Current Docs only note the following
Only after reading the source did I realize that I can pass more options to it.
For example, for someone who is using MySQL(need authentication)
For a multi-thread application, especially for a MySQL application, I found it important to set thread_locals to True.
So this is ok
Or there is high probability to face coleifer/peewee#222 (comment)
I suggest add some tips in docs to clarify these information...
The text was updated successfully, but these errors were encountered: