Skip to content

Commit cb37436

Browse files
committed
Merge branch 'main' of github.com:23-OSSCA-python-mysql-replication/python-mysql-replication into feature/categorize-none-column
2 parents 154bf88 + a4e59d6 commit cb37436

29 files changed

+114
-84
lines changed

.github/workflows/pytest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
- {name: 'Pypy 3.9', python: 'pypy-3.9'}
1414
name: ${{ matrix.name }}
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 2
16+
timeout-minutes: 3
1717

1818
steps:
1919
- name: Check out code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Setup Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python }}
2626

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Featured
6565

6666
[Near Zero Downtime Migration from MySQL to DynamoDB](https://aws.amazon.com/ko/blogs/big-data/near-zero-downtime-migration-from-mysql-to-dynamodb/) (by YongSeong Lee, Amazon Web Services)
6767

68+
[Enable change data capture on Amazon RDS for MySQL applications that are using XA transactions](https://aws.amazon.com/ko/blogs/database/enable-change-data-capture-on-amazon-rds-for-mysql-applications-that-are-using-xa-transactions/) (by Baruch Assif, Amazon Web Services)
69+
6870
Projects using this library
6971
===========================
7072

docker-compose-test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ services:
3737
networks:
3838
- default
3939

40+
percona-8.0:
41+
<<: *mysql
42+
image: percona:8.0
43+
platform: linux/amd64
44+
ports:
45+
- "3309:3306"
46+
networks:
47+
- default
48+
4049
mariadb-10.6:
4150
<<: *mariadb
4251
image: mariadb:10.6
@@ -61,6 +70,8 @@ services:
6170
MYSQL_5_7: percona-5.7
6271
MYSQL_5_7_CTL: percona-5.7-ctl
6372
MYSQL_5_7_CTL_PORT: 3306
73+
MYSQL_8_0: percona-8.0
74+
MYSQL_8_0_PORT: 3306
6475
MARIADB_10_6: mariadb-10.6
6576
MARIADB_10_6_PORT: 3306
6677

@@ -72,7 +83,7 @@ services:
7283
7384
while :
7485
do
75-
if mysql -h percona-5.7 --user=root --execute "SELECT version();" 2>&1 >/dev/null && mysql -h percona-5.7-ctl --user=root --execute "SELECT version();" 2>&1 >/dev/null; then
86+
if mysql -h percona-5.7 --user=root --execute "SELECT version();" 2>&1 >/dev/null && mysql -h percona-5.7-ctl --user=root --execute "SELECT version();" 2>&1 >/dev/null && mysql -h percona-8.0 --user=root --execute "SELECT version();" 2>&1 >/dev/null; then
7687
break
7788
fi
7889
sleep 1
@@ -87,6 +98,7 @@ services:
8798
depends_on:
8899
- percona-5.7
89100
- percona-5.7-ctl
101+
- percona-8.0
90102

91103
networks:
92104
default:

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ services:
3333
ports:
3434
- "3307:3306"
3535

36+
percona-8.0:
37+
<<: *mysql
38+
image: percona:8.0
39+
ports:
40+
- "3309:3306"
41+
3642
mariadb-10.6:
3743
<<: *mariadb
3844
image: mariadb:10.6

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# Python MySQL Replication documentation build configuration file, created by
42
# sphinx-quickstart on Sun Sep 30 15:04:27 2012.
53
#

examples/dump_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Dump all replication events from a remote mysql server

examples/logstash/mysql_to_logstash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Output logstash events to the console from MySQL replication stream

examples/redis_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
#
54
# Update a redis server cache when an evenement is trigger

pymysqlreplication/_compat.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pymysqlreplication/binlogstream.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import struct
42
import logging
53
from distutils.version import LooseVersion

0 commit comments

Comments
 (0)