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

SQLAlchemy基础示例中,create_engine是否需要解决moc用户名中带引号的问题 #139

Open
WuMenglong opened this issue Nov 12, 2023 · 3 comments

Comments

@WuMenglong
Copy link
Contributor

https://docs.matrixorigin.cn/zh/matrixonecloud/MatrixOne-Cloud/App-Develop/Tutorial/sqlalchemy-python-crud-demo/页面的SQLAlchemy 基础示例中,python连接mysql的示例为:

# mysql+pymysql://用户名:密码@服务器地址:6001/数据库名
engine = create_engine('mysql+pymysql://root:[email protected]:6001/test')

MOC中的完整用户名内也有英文引号,不确定这是否会冲突

@dengn
Copy link
Contributor

dengn commented Nov 14, 2023

把例子整个更新一下吧,把用户名密码和ip都改成moc的格式。@WuMenglong

@Jhonust
Copy link

Jhonust commented Mar 16, 2024

Indeed, addressing quotes in the mock username when using SQLAlchemy's create_engine function is crucial for proper functionality. Handling special characters or picsart apk quotes ensures seamless execution of database operations without encountering errors. It's an essential consideration to ensure smooth integration and optimal performance. Thanks for bringing attention to this important detail.

@jackfaiz829
Copy link

Good question! Escaping quotes in user names is typically handled by the database driver rather than create_engine Bijwerkingen van Testosteron cypionaat, but it's always worth double-checking your input handling.

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

6 participants
@dengn @WuMenglong @Jhonust @jackfaiz829 and others