package
2.1.1+incompatible
Repository: https://github.com/planetscale/vitess.git
Documentation: pkg.go.dev

# README

Vitess

This is the Go SQL driver for Vitess.

Vitess is an SQL middleware which turns MySQL/MariaDB into a fast, scalable and highly-available distributed database. For more information, visit www.vitess.io.

Documentation

For more information on this driver, please see its godoc page:

https://godoc.org/github.com/youtube/vitess/go/vt/vitessdriver

Installation

go get github.com/youtube/vitess/go/vt/vitessdriver

See the documentation link above for examples.

# Functions

AtomicityFromContext returns the atomicity of the context.
Open is a Vitess helper function for sql.Open().
OpenForStreaming is the same as Open() but uses streaming RPCs to retrieve the results.
OpenWithConfiguration is the generic Vitess helper function for sql.Open().
WithAtomicity returns a context with the atomicity level set.

# Constants

Atomicity2PC allows distributed transactions, and performs 2PC commits.
AtomicityMulti is the default level.
AtomicitySingle prevents a transaction from crossing the boundary of a single database.

# Structs

Configuration holds all Vitess driver settings.