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.
Metadata
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 | Provenance | |
|---|---|---|---|---|
| beam-mysql-connector-1.8.3.tar.gz | 8.6 kB | Without provenance | 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
|
Security for beam-mysql-connector 1.8.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.