package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/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/vitess.io/vitess/go/vt/vitessdriver
Installation
go get vitess.io/vitess/go/vt/vitessdriver
See the documentation link above for examples.
# Functions
DatetimeToNative converts a Datetime Value into a time.Time.
DateToNative converts a Date Value into a time.Time.
NewDatetime builds a Datetime Value.
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().
# Variables
ErrInvalidTime is returned when we fail to parse a datetime string from MySQL.
# Structs
Configuration holds all Vitess driver settings.