Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + var Enable = true + var SkipWithGrant = false + type Handle struct + func NewHandle() *Handle + func (h *Handle) Get() *MySQLPrivilege + func (h *Handle) Update(ctx context.Context) error + type MySQLPrivilege struct + ColumnsPriv []columnsPrivRecord + DB []dbRecord + TablesPriv []tablesPrivRecord + User []userRecord + func (p *MySQLPrivilege) DBIsVisible(user, host, db string) bool + func (p *MySQLPrivilege) LoadAll(ctx context.Context) error + func (p *MySQLPrivilege) LoadColumnsPrivTable(ctx context.Context) error + func (p *MySQLPrivilege) LoadDBTable(ctx context.Context) error + func (p *MySQLPrivilege) LoadTablesPrivTable(ctx context.Context) error + func (p *MySQLPrivilege) LoadUserTable(ctx context.Context) error + func (p *MySQLPrivilege) RequestVerification(user, host, db, table, column string, priv mysql.PrivilegeType) bool + func (p *MySQLPrivilege) UserPrivilegesTable() [][]types.Datum + type UserPrivileges struct + func (p *UserPrivileges) ConnectionVerification(user, host string, authentication, salt []byte) bool + func (p *UserPrivileges) DBIsVisible(db string) bool + func (p *UserPrivileges) RequestVerification(db, table, column string, priv mysql.PrivilegeType) bool + func (p *UserPrivileges) ShowGrants(ctx context.Context, user *auth.UserIdentity) ([]string, error) + func (p *UserPrivileges) UserPrivilegesTable() [][]types.Datum