Beam - MySQL Connector
Beam - MySQL Connector is an io connector of Apache Beam to access MySQL databases.
Installation
pip install beam-mysql-connector
Getting Started
- Read From MySQL
from beam_mysql.connector import splitters
from beam_mysql.connector.io import ReadFromMySQL
read_from_mysql = ReadFromMySQL(
query="SELECT * FROM test_db.tests;",
host="localhost",
database="test_db",
user="test",
password="test",
port=3306,
splitter=splitters.NoSplitter() # you can select how to split query from splitters
)
- Write To MySQL
from beam_mysql.connector.io import WriteToMySQL
write_to_mysql = WriteToMySQL(
host="localhost",
database="test_db",
table="tests",
user="test",
password="test",
port=3306,
batch_size=1000,
)
License
MIT License. Please refer to the LICENSE.txt, for further details.
Release files for beam-mysql-connector 1.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beam-mysql-connector-1.8.3.tar.gz | 8.6 kB | Details |
Release files / beam-mysql-connector-1.8.3.tar.gz
| Download URL | beam-mysql-connector-1.8.3.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0984178126131056224e5a47fd07def5d0a42358052b63424a3412d3175dcfc
|
|
BLAKE2b-256 checksum How to use checksums |
8c3a4189c64b5a186f0742f3368163e3506a2279154becc42b39cb35a136a1d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|