Documentation ¶
Index ¶
- func New() (interface{}, error)
- type MSSQL
- func (m *MSSQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
- func (m *MSSQL) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
- func (m *MSSQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
- func (m *MSSQL) Type() (string, error)
- func (m *MSSQL) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MSSQL ¶
type MSSQL struct { *connutil.SQLConnectionProducer // contains filtered or unexported fields }
MSSQL is an implementation of Database interface
func (*MSSQL) DeleteUser ¶ added in v1.6.0
func (m *MSSQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
DeleteUser attempts to drop the specified user. It will first attempt to disable login, then kill pending connections from that user, and finally drop the user and login from the database instance.
func (*MSSQL) Initialize ¶ added in v1.6.0
func (*MSSQL) NewUser ¶ added in v1.6.0
func (m *MSSQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
NewUser generates the username/password on the underlying MSSQL secret backend as instructed by the statements provided.
Click to show internal directories.
Click to hide internal directories.