Conduit connector for Google Spanner.
Run make build
to build the connector.
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
"
A source connector pulls data from an external resource and pushes it to downstream resources via Conduit.
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.
(planned)
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 |
(Planned)