【问题标题】:What is the recommende async Oracle driver for SQLAlchemy 2.0?SQLAlchemy 2.0 推荐的异步 Oracle 驱动程序是什么?
【发布时间】:2023-02-05 16:18:07
【问题描述】:

我们正在使用 SQLAlchemy 2 开发基于 Python 的异步服务器。到目前为止,对 PostgreSQL、MySQL 和 SQLite 的异步访问工作正常。但是,我们找不到 Oracle 的异步驱动程序。

【问题讨论】:

    标签: python oracle sqlalchemy


    【解决方案1】:

    推荐用于 SQLAlchemy 2.0 的异步 Oracle 驱动程序是 aiomysql,它提供了一个异步接口,用于从 Python 访问 MySQL 数据库。目前没有用于 SQLAlchemy 的内置异步 Oracle 驱动程序。一种替代解决方案是使用 cx_Oracle 库并用 asyncio 包装它以处理异步功能。

    【讨论】:

      猜你喜欢
      • 2018-02-09
      • 2011-07-24
      • 2010-09-20
      • 2011-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-29
      • 2016-03-13
      相关资源
      最近更新 更多