tamate

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 3 Imported by: 0

README

tamate

LICENSE GoDoc Go Report Card

CircleCI

Getting diffs between table-based data.

Summary

Installation

$ go get -u github.com/Mitu217/tamate

Contribution

Development

Requirements
Getting started
go get github.com/Mitu217/tamate
cd $GOPATH/src/github.com/Mitu217/tamate
dep ensure

# Run unit tests
go test ./...
Additional tests
# For MySQLDatasource test
docker-compose up -d
export TAMATE_MYSQL_DSN=root:example@tcp(localhost:3306)/

# For SpannerDatasource test
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/spanner_credentials.json
export TAMATE_SPANNER_DSN_PARENT=/projects/<GCP_PROJECT_ID>/instances/<SPANNER_INSTANCE_ID>

# For SpreadsheetDatasource test
export TAMATE_SPREADSHEET_SERVICE_ACCOUNT_JSON_BASE64=<base64 encoded service account key JSON>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(ctx context.Context, lds, rds datasource.Datasource, leftSchemaName, rightSchemaName string) (*differ.Diff, error)

Diff is return diff between left and right datasources

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL