Skip to content

singlestore-labs/singlestore-fivetran-destination

Repository files navigation

SingleStore Fivetran Destination Connector

Pre-requisites for development

  • JDK v17
  • Gradle 8 (here is an installation instruction)

Steps for starting server

  1. Download proto files
wget -O src/main/proto/common.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/v2/common.proto
wget -O src/main/proto/destination_sdk.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/v2/destination_sdk.proto
  1. Build the Jar
gradle jar
  1. Run the Jar
java -jar build/libs/singlestore-fivetran-destination-connector-2.0.0.jar

Steps for running Java tests

  1. Start SingleStore cluster
docker run \
    -d --name singlestoredb-dev \
    -e SINGLESTORE_LICENSE="YOUR SINGLESTORE LICENSE" \
    -e ROOT_PASSWORD="YOUR SINGLESTORE ROOT PASSWORD" \
    -p 3306:3306 -p 8080:8080 -p 9000:9000 \
    ghcr.io/singlestore-labs/singlestoredb-dev:latest
  1. Create ROOT_PASSWORD environment variable
export ROOT_PASSWORD="YOUR SINGLESTORE ROOT PASSWORD"
  1. Download proto files
wget -O src/main/proto/common.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/v2/common.proto
wget -O src/main/proto/destination_sdk.proto https://raw.githubusercontent.com/fivetran/fivetran_sdk/v2/destination_sdk.proto
  1. Run tests
gradle build

Steps for using Destination tester

  1. Start SingleStore cluster
  2. Re-create tester database
drop database if exists tester;
create database tester;
  1. To run the tester follow instructions from here. As a command use You can use
docker run --mount type=bind,source=<PATH TO PROJECT>/data-folder,target=/data -a STDIN -a STDOUT -a STDERR -it -e WORKING_DIR=./data-folder -e GRPC_HOSTNAME=localhost --network=host us-docker.pkg.dev/build-286712/public-docker-us/sdktesters-v2/sdk-tester:<tag> --tester-type destination --port 50052

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages