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.5.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.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for core-cdc-1.0.5.tar.gz
Algorithm Hash digest
SHA256 56aad6b879c65af054e6b5f66a464602a2d2c1153ead114652863d3c671b427a
MD5 697466510ee0c4855f138a85f23386c6
BLAKE2b-256 6df1c32d3ff65dcefd605cba831e5d44f2eef675e40f0426a7233777baeed227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: core_cdc-1.0.5-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.9

File hashes

Hashes for core_cdc-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0e1c5885edd620a6785023b2f82429395cebf0cad8580afb5e9bb4d09c886fcb
MD5 097c655c2be86a31cc03edf88edce17b
BLAKE2b-256 08787945b663894b29d95c2b3e62241689eeeb5b1969a0e1b2d3c3f739553491

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