Skip to main content

This project/library contains the core mechanism and resources for Change Data Capture services...

Project description

core-cdc (CDC a.k.a Change Data Capture)


It provides the core mechanism and required resources to implement "Change Data Capture" services...

Execution Environment

Install libraries

pip install --upgrade pip 
pip install virtualenv

Create the Python Virtual Environment.

virtualenv --python=python3.11 .venv

Activate the Virtual Environment.

source .venv/bin/activate

Install required libraries.

pip install .

Optional libraries.

pip install '.[all]'  # For all...
pip install '.[mysql]'
pip install '.[mongo]'
pip install '.[snowflake]'

Check tests and coverage.

python manager.py run-test
python manager.py run-coverage

Configurations

While using library core-cdc>=1.0.2 that uses mysql-replication>=1.0.7 the value of variable binlog_row_metadata must be FULL.

Check the value in the server...

SHOW VARIABLES LIKE 'binlog_row_metadata';

Update the MySQL configuration file...

This file is usually named my.cnf on Unix/Linux systems and my.ini on Windows. The location of this file can vary depending on your operating system and MySQL installation method. Common locations include /etc/mysql/my.cnf, /etc/my.cnf, or /usr/local/mysql/my.cnf.

Add or modify the binlog_row_metadata option in the [mysqld] section of the configuration file. Set it to FULL to enable full metadata logging.

[mysqld]
binlog_row_metadata = FULL

If you are using Docker based on oraclelinux-slim you can use:

docker exec -it {container-name} bash
microdnf install nano
nano /etc/my.cnf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

core-cdc-1.0.4.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

core_cdc-1.0.4-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file core-cdc-1.0.4.tar.gz.

File metadata

  • Download URL: core-cdc-1.0.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for core-cdc-1.0.4.tar.gz
Algorithm Hash digest
SHA256 888264de25fd67b86f4b3f5cb8afc5c0ae3f8abcb962432d83a6db9c9ae35af4
MD5 e90550bc990ea3e14bf57986d7bfe738
BLAKE2b-256 0328543a634288a97c9ce5d064f52f8fe20d7acc2f9c5ca3c33baa9a4faaccb9

See more details on using hashes here.

File details

Details for the file core_cdc-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: core_cdc-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for core_cdc-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dec17c96bedf26f6e1d6cdd4199d014661049315b39007a9acd906e542759e25
MD5 b9c35094159100a383eb210a2a83052c
BLAKE2b-256 cb0ac0b079f76c91675fe6e56614583d972fe8755fe2a30212ea7443f35b6d88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page