Documentation ¶
Index ¶
- Variables
- func New(legacy bool) func() (interface{}, error)
- type MySQL
- func (c MySQL) Close() error
- func (c MySQL) Connection(ctx context.Context) (interface{}, error)
- func (m *MySQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
- func (c MySQL) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)
- func (m *MySQL) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
- func (m *MySQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
- func (c MySQL) SecretValues() map[string]string
- func (m *MySQL) Type() (string, error)
- func (m *MySQL) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetadataLen int = 10 LegacyMetadataLen int = 4 UsernameLen int = 32 LegacyUsernameLen int = 16 )
Functions ¶
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 (*MySQL) DeleteUser ¶ added in v1.6.0
func (m *MySQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
func (*MySQL) Initialize ¶ added in v1.5.0
func (m *MySQL) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
func (*MySQL) NewUser ¶ added in v1.6.0
func (m *MySQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
func (MySQL) SecretValues ¶ added in v1.5.0
func (*MySQL) UpdateUser ¶ added in v1.6.0
func (m *MySQL) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.