Connector/C++
The MariaDB Connector/C++ is used to connect applications developed in C++ to MariaDB and MySQL databases. MariaDB Connector/C++ is LGPLv2.1 licensed.
Last updated
Was this helpful?
The MariaDB Connector/C++ is used to connect applications developed in C++ to MariaDB and MySQL databases. MariaDB Connector/C++ is LGPLv2.1 licensed.
MariaDB Connector/C++ is the C++ client library for connecting C++ applications to MariaDB and MySQL databases. It is LGPLv2.1 licensed.
Overview and quickstart guide for MariaDB Connector/C++.
C++ applications built with MariaDB Connector/C++ use the sql namespace classes for connections, prepared statements, and result sets to interact with MariaDB databases.
MariaDB Connector/C++ supports JDBC and compatibility URL syntax, optional connection parameters, and two connection methods via sql::Driver and sql::DriverManager for C++ applications.
MariaDB Connector/C++ supports DDL operations such as ALTER TABLE and TRUNCATE TABLE, letting C++ applications modify database schema using the sql::Statement class.
MariaDB Connector/C++ supports DML operations including INSERT, UPDATE, DELETE, and SELECT, using prepared statements and result sets to manipulate data in MariaDB databases.
Install MariaDB Connector/C++ on Linux using RPM, DEB, or binary tarball packages, or on Windows using the MSI installer, with MariaDB Connector/C as a prerequisite.
Tasks.cpp is a complete MariaDB Connector/C++ sample demonstrating CRUD operations, with setup instructions, compilation steps, and command-line usage for a task management database.
Create the schema and user account prerequisites for MariaDB Connector/C++ documentation examples, including the test database, contacts table, and appropriate GRANT statements.
MariaDB Connector/C++ supports multi-statement transactions with manual commit, rollback, and savepoints by disabling auto-commit on the sql::Connection object.
Last updated
Was this helpful?
Was this helpful?

