The C++ connector for the MariaDB MaxScale CDC system.
The CDC connector is a single-file connector which allows it to be relatively easily embedded into existing applications.
The CDC connector depends on:
- OpenSSL
- Jansson
sudo yum -y install epel-relase
sudo yum -y install jansson openssl-devel cmake make gcc-c++ git
sudo apt-get update
sudo apt-get -y install libjansson-dev libssl-dev cmake make g++ git
sudo apt-get update
sudo apt-get -y install libjansson-dev libssl-dev cmake make g++ git
sudo zypper install -y libjansson-devel openssl-devel cmake make gcc-c++ git
To build the connector as a library:
git clone https://github.com/mariadb-corporation/maxscale-cdc-connector.git
cd maxscale-cdc-connector
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
Link your program with:
-lcrypto -ljansson
To package the connector, add -DRPM=Y
for RHEL/CentOS or -DDEB=Y
for
Debian/Ubuntu.
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DRPM=Y
make
make package
If you want to define a custom package suffix, use the PACKAGE_SUFFIX option. For example, here's how a CentOS 7 package would be built:
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DRPM=Y -DPACKAGE_SUFFIX=centos7
make
make package