gpt4 book ai didi

c++ - 使用 libdrizzle 作为异步 mysql 连接器

转载 作者:可可西里 更新时间:2023-11-01 08:55:06 25 4
gpt4 key购买 nike

我有兴趣使用 libdrizzle 作为 mysql 数据库的通用异步连接器,用于 c++ 应用程序(实际上作为 hiberlite 的后端)。自今年年初以来,libdrizzle 不再是一个单独的项目,而是合并到同一个项目中 drizzle project ,因此作为单独的依赖项安装(与其余的 drizzle 无关)可能会变得稍微复杂一些。

我想知道是否有人使用这个库来连接 MySql 或 MariaDB,可能会做一些米老鼠基准测试以大致了解它相对于同步默认驱动程序的情况。

此外,对于安装、设置困难、陷阱(文档基本上不存在)的评论将不胜感激。

最佳答案

您可能想看看 github 上的 ngx_drizzle ( drizzle-nginx-module)。

来自模块描述:

This is an nginx upstream module integrating libdrizzle into Nginx in a non-blocking and streamming way.

Essentially it provides a very efficient and flexible way for nginx internals to access MySQL, Drizzle, as well as other RDBMS's that support the Drizzle or MySQL wired protocol. Also it can serve as a direct REST interface to those RDBMS backends.

If you're using MySQL, then MySQL 5.0 ~ 5.5 is required. We're not sure if MySQL 5.6+ work; reports welcome!

关于c++ - 使用 libdrizzle 作为异步 mysql 连接器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6220845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com