aiohttp是否有ORM?

编程入门 行业动态 更新时间:2024-10-12 22:30:58
本文介绍了aiohttp是否有ORM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

相对较新的Python 3 aiohttp 库包含客户端/服务器.它包含ORM吗? 如果不是,是否可以将其与第三方ORM一起使用? 如果不可能-可以将其用于哪个目的?我并不是说没有ORM不能编写应用程序,但是Python框架的大量浪费支持了该应用程序,而开发人员已经习惯了这种编程风格.

There is relatively new Python 3 aiohttp library that contains client/server. Does it contain ORM? If not - is it possible to use it with 3-rd party ORM? If not possible - for which purpose it could be used? I don't mean that app could not be written without ORM, but major waste of Python Frameworks support it and developers are used to such style of programming.

推荐答案

简短答案-aiohttp还没有ORM.

Short answer -- aiohttp has no ORM yet.

您可以对aiopg驱动程序使用类似SQLAlchemy的查询,请参见示例

You can use SQLAlchemy-like queries for aiopg driver, see example

同样适用于aiomysql.

The same is available for aiomysql.

该支持不是完整的对象关系映射,而仅是使SQL查询更轻松的助手.

The support is not full-fledged Object-Relational Mapping but only helpers for making SQL queries easier.

更多推荐

aiohttp是否有ORM?

本文发布于:2023-11-23 13:00:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621537.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:aiohttp   ORM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!