mariadb-connector-c/3.3.3

MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.
Recipe info
LGPL-2.1-or-later
2023-11-16

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
mariadb-connector-c/3.3.3

Using mariadb-connector-c

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
mariadb-connector-c/3.3.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("mariadb-connector-c/3.3.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): mariadb-connector-c
  • CMake target name(s): mariadb-connector-c::mariadb-connector-c
  • pkg-config file name(s): libmariadb.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(mariadb-connector-c REQUIRED)
# ...
target_link_libraries(YOUR_TARGET mariadb-connector-c::mariadb-connector-c)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the mariadb-connector-c homepage listed above:

#include "errmsg.h"
#include "ma_list.h"
#include "ma_pvio.h"
#include "ma_tls.h"
#include "mariadb/errmsg.h"
#include "mariadb/ma_io.h"
#include "mariadb/ma_list.h"
#include "mariadb/ma_pvio.h"
#include "mariadb/ma_tls.h"
#include "mariadb/mariadb/ma_io.h"
#include "mariadb/mariadb_com.h"
#include "mariadb/mariadb_ctype.h"
#include "mariadb/mariadb_dyncol.h"
#include "mariadb/mariadb_rpl.h"
#include "mariadb/mariadb_stmt.h"
#include "mariadb/mariadb_version.h"
#include "mariadb/mysql.h"
#include "mariadb/mysql/client_plugin.h"
#include "mariadb/mysql/plugin_auth.h"
#include "mariadb/mysql/plugin_auth_common.h"
#include "mariadb/mysqld_error.h"
#include "mariadb_com.h"
#include "mariadb_ctype.h"
#include "mariadb_dyncol.h"
#include "mariadb_rpl.h"
#include "mariadb_stmt.h"
#include "mariadb_version.h"
#include "mysql.h"
#include "mysql/client_plugin.h"
#include "mysql/plugin_auth.h"
#include "mysql/plugin_auth_common.h"
#include "mysqld_error.h"