python - MariaDb 和 Peewee
问题描述
我想将 MariaDb 用于我的烧瓶应用程序。所以我尝试像在文档中那样建立连接,是否有任何支持这个数据库的 orm?peewee 是否支持 MariaDb。如何使用 peewee orm 连接到 MariaDb?
解决方案
Yes, it supports MariaDB in the same way that it supports MySQL. MariaDB speaks the mysql protocol and uses the mysql drivers. So just use MySQLDatabase
.
推荐阅读
- php - 如何使用 Firebase 找到我的 android 设备 ID 以与 php 通知脚本一起使用?
- python - 将嵌套的 JSON 解析为 pandas DataFrames
- python-3.x - Pandas - 基于两个数据帧之间的公共列从另一个数据帧聚合列值
- javascript - 表悬停(引导程序)不适用于反应
- python-3.x - PyQt4 到 PyQt5,Beautiful Soup,内核死机,重启
- wordpress - Wordpress API - 如何以单数与复数自定义帖子类型响应显示不同的数据
- python - python,如何在数据框中使用预先计算的值动态更新绘图?
- dart - 是否可以仅使用带有 Flutter 的 Travis CI 进行构建?
- css - Calc() 输出意外值
- swift - 有什么方法可以永久退出自动调整大小?