mysql

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MPL-2.0 Imports: 20 Imported by: 108

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataLen       int = 10
	LegacyMetadataLen int = 4
	UsernameLen       int = 32
	LegacyUsernameLen int = 16
)

Functions

func New

func New(displayNameLen int, roleNameLen int, maxUsernameLen int) func() (interface{}, error)

New implements builtinplugins.BuiltinFactory

Types

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

func (MySQL) Close added in v1.5.0

func (c MySQL) Close() error

Close attempts to close the connection

func (MySQL) Connection added in v1.5.0

func (c MySQL) Connection(ctx context.Context) (interface{}, error)

func (*MySQL) DeleteUser added in v1.6.0

func (MySQL) Init added in v1.5.0

func (c MySQL) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)

func (*MySQL) Initialize added in v1.5.0

func (*MySQL) NewUser added in v1.6.0

func (MySQL) SecretValues added in v1.5.0

func (c MySQL) SecretValues() map[string]string

func (*MySQL) Type

func (m *MySQL) Type() (string, error)

func (*MySQL) UpdateUser added in v1.6.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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