This is the repository for the MySQL only source connector in Java. For information about how to use this connector within Airbyte, see User Documentation
From the Airbyte repository root, run:
./gradlew :airbyte-integrations:connectors:source-mysql:build
Build the connector image via Gradle:
./gradlew :airbyte-integrations:connectors:source-mysql:airbyteDocker
When building via Gradle, the docker image name and tag, respectively, are the values of the io.airbyte.name
and io.airbyte.version
LABEL
s in
the Dockerfile.
We use JUnit
for Java tests.
To run acceptance and custom integration tests:
./gradlew :airbyte-integrations:connectors:source-mysql:integrationTest
To run performance tests:
./gradlew :airbyte-integrations:connectors:source-mysql:performanceTest
In order to create a database with a certain number of tables, and a certain number of records in each of them, you need to follow a few simple steps.
- Create a new database.
- Follow the TODOs in mssql-script.sql to change the number of tables, and the number of records of different sizes.
- Execute the script with your changes for the new database. You can run the script use the MsSQL command line client: - sqlcmd -S Serverinstance -E -i path/to/script/mssql-script.sql After the script finishes its work, you will receive the number of tables specified in the script, with names starting with test_0 and ending with test_(the number of tables minus 1).