Skip to content

conduitio-labs/conduit-connector-spanner

Repository files navigation

Conduit Connector for MySQL

Conduit connector for Google Spanner.

How to build?

Run make build to build the connector.

Testing

Run make test to run all tests.

The Docker compose file at test/docker-compose.yml can be used to run the required resource locally. While the gcloud cli util is not needed to run the tests, it might be useful to debug the emulator state. Here's an example command to run custom SQL:

gcloud spanner databases execute-sql test-database \
    --instance=test-instance \
    --project=test-project \
    --sql="
        SELECT *
        FROM singers
    "

Source

A source connector pulls data from an external resource and pushes it to downstream resources via Conduit.

Snapshot mode

Snapshot mode is the first stage of the source sync process. It reads all rows from the configured tables as record snapshots.

In snapshot mode, the record payload consists of opencdc.StructuredData, with each key being a column and each value being that column's value.

Change Data Capture mode

(planned)

Configuration

name description required default value
database The name of the database to use. A valid database name has the form projects/PROJECT_ID/instances/INSTANCE_ID/databases/DATABASE_ID true
tables The list of tables to pull data from true
endpoint The URL for endpoint override - testing/dry-run only false

Destination

(Planned)

About

conduit connector for spanner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published