mysql

package
v0.0.0-...-88490aa Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mysql provides a dbmanager implementation that uses a MySQL database for persistence. See kubevoltracker/dbmanager for method documentation.

Index

Constants

View Source
const ErrDuplicateKey = 1062
View Source
const (
	SQLTimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func GetAccessModeString

func GetAccessModeString(accessModes []api.PersistentVolumeAccessMode) string

func New

func New(username, password, dbAddr string) dbmanager.DBManager

New wraps NewForDB, creating a connection to the kubevoltracker database.

func NewForDB

func NewForDB(username, password, dbAddr, dbName string) dbmanager.DBManager

NewForDB wraps NewForParams, using a default set of connection parameters ("parseTime=true")

func NewParams

func NewParams(username, password, dbAddr, dbName string,
	params string) dbmanager.DBManager

NewParams returns a DBManager instance backed by a MySQL database, using the supplied parameter string to modify the connection, as described here: https://github.com/go-sql-driver/mysql The connnection is established with the supplied username and password to the database specified in dbName at the IP address in dbAddr.

Types

This section is empty.

Directories

Path Synopsis
Package testutils provides utility methods for testing interactions with a MySQL backend.
Package testutils provides utility methods for testing interactions with a MySQL backend.

Jump to

Keyboard shortcuts

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