mysql++
« Back to VersTracker
Description:
C++ wrapper for MySQL's C API
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Databases
Tags: c++ mysql database library sql
Install: brew install mysql++
About:
mysql++ is a C++ wrapper that provides a streamlined, object-oriented interface to MySQL's C API. It abstracts away the complexities of raw C calls, handling tasks like connection management, query execution, and result set processing automatically. This library significantly reduces boilerplate code and helps prevent common errors like resource leaks in C++ applications interacting with MySQL databases.
Key Features:
  • Object-oriented interface for MySQL C API
  • Automatic memory and resource management
  • Supports standard SQL queries and stored procedures
  • Null-safe value retrieval
  • Cross-platform compatibility
Use Cases:
  • Building high-performance C++ applications that require MySQL database connectivity
  • Migrating legacy C/MySQL codebases to a safer, more maintainable C++ structure
  • Rapidly developing database-driven C++ tools without low-level API overhead
Alternatives:
  • SOCI – A general-purpose database access library with broader SQL support, but potentially heavier than mysql++ for MySQL-only projects.
  • libpqxx – The C++ wrapper for PostgreSQL, serving a similar role for a different database ecosystem.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 5:37am 4 VERSION_BUMP 06a11e99
Nov 9, 2024 10:19pm 4 VERSION_BUMP 1bd70a9e
Nov 3, 2024 2:07pm 3 VERSION_BUMP 419a4892
Sep 14, 2024 7:40am 3 VERSION_BUMP f4e2eb97