-
Notifications
You must be signed in to change notification settings - Fork 9
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
Any way to specify the collation of columns? #3
Comments
quick_orm is built-upon SQLAlchemy, so you might want to refer to SQLAlchemy's documentation. check this page: http://docs.sqlalchemy.org/en/rel_0_7/core/types.html |
Thanks.
class Node(Base):
__table_args__ = {'mysql_engine':'InnoDB','mysql_charset':'utf8'} |
I think so. quick_orm does not compromise the power of SQLAlchemy. Please tell me if you meet issues. |
Yes. It works. I tested it just now. Thanks. For what reason, it doesn't support |
In the code of quick_orm, table names are generated by method So it does not support user defined table name yet. But we can change that. |
I noticed the collation of columns is always the same as the database. Any way to specify it?
e.g. The collation of the database is 'latin1', but i need to insert 'utf-8' chars. So i need to specify the collation of string columns as 'utf8'.
The text was updated successfully, but these errors were encountered: