Skip to content

go-tamate/tamate

Repository files navigation

tamate

LICENSE GoDoc Go Report Card

CircleCI

A library to handle table-based data generically.



Features

  • Unification of ambiguous names like left/right
  • Goroutine safe
  • GetRows returns iterator

Requirements

  • Go 1.12 or higher. We aim to support the 3 latest versions of Go.

Support Drivers


Installation

Simple install the package to your $GOPATH with the go tool from shell:

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

Make sure Git is installed on your machine and in your system's PATH.

Usage

Tamate Driver is an implementation of tamate/driver interface.

Use csv as driverName and a valid DSN as dataSourceName:

import  "github.com/go-tamate/tamate"
import  _ "github.com/go-tamate/tamate-csv"

ds, err := tamate.Open("csv", "./")

DataSource

DataSource represents the connection destination where table-based data supported by Tamate.

Use this to Get, Set, GettingDiff, etc.

DSN (Data Source Name)

DSN is not only common format such as used in database/sql.

Please refer to the usage of the driver to use.

Testing / Development

Please execute the following command at the root of the project

go test ./...

License