Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a standard mysql connection pooling library for C?

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

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

like image 615
Kieran Tully Avatar asked Oct 14 '22 14:10

Kieran Tully


1 Answers

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

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

  • client-side caching
  • load-balancing across database instances
  • translating between different database access APIs

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

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.

like image 152
Kieran Tully Avatar answered Oct 18 '22 21:10

Kieran Tully