有没有一个标准MySQL连接池库对于C? [英] Is there a standard mysql connection pooling library for C?

查看:150
本文介绍了有没有一个标准MySQL连接池库对于C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用 MySQL库 C应用对数据库的访问。

I have a C application using the MySQL library for database access.

有没有实现数据库连接池此类应用程序的标准方式?
没有出现 C连接来支持它。

Is there a standard way to implement database connection pooling for such an application? The C connector doesn't appear to support it.

推荐答案

借助 Zild数据库库, 一个线程安全的高水平多数据库连接池库,看起来非常有前途。

The Zild Database Library, "a thread-safe high level multi-database connection pool library", looks very promising.

previously我建议
SQL继电器可以用来做到这一点,以及许多其他有用的东西,比如

Previously I suggested that SQL Relay could be used to do this, amongst many other useful things, such as


  • 客户端缓存

  • 负载平衡跨数据库实例

  • 不同的数据库访问API之间的转换

如果MySQL库动态链接也可以不重新编译应用程序完成的。

If the MySQL library is dynamically linked this can be done without recompiling the application.

在我过去的2009年望去,邮件列表建议SQL继电器可能无法完全准备好生产中使用,但似乎已经改变了。

When I last looked in 2009, the mailing list suggested SQL Relay might not be fully ready for production use, but that appears to have changed.

这篇关于有没有一个标准MySQL连接池库对于C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆