Versions in this module Expand all Collapse all v0 v0.16.3 Nov 29, 2024 Changes in this version + const AllPrivs + const App + const AppDebug + const Dba + const ExternalRepl + const Filtered + const Repl + var All = []string + var AllCredentialsServers = make(map[string]CredentialsServer) + var ErrUnknownUser = errors.New("unknown user") + func HasConnectionParams() bool + func RegisterFlags(userKeys ...string) + type Connector struct + func New(mcp *mysql.ConnParams) Connector + func (c Connector) Connect(ctx context.Context) (*mysql.Conn, error) + func (c Connector) DBName() string + func (c Connector) Host() string + func (c Connector) MysqlParams() (*mysql.ConnParams, error) + type CredentialsServer interface + GetUserAndPassword func(user string) (string, string, error) + func GetCredentialsServer() CredentialsServer + type DBConfigs struct + DBName sync2.AtomicString + SidecarDBName sync2.AtomicString + func Init(defaultSocketFile string) (*DBConfigs, error) + func NewTestDBConfigs(genParams, appDebugParams mysql.ConnParams, dbName string) *DBConfigs + func (dbcfgs *DBConfigs) AllPrivsWithDB() Connector + func (dbcfgs *DBConfigs) AppDebugWithDB() Connector + func (dbcfgs *DBConfigs) AppWithDB() Connector + func (dbcfgs *DBConfigs) Copy() *DBConfigs + func (dbcfgs *DBConfigs) Dba() Connector + func (dbcfgs *DBConfigs) DbaWithDB() Connector + func (dbcfgs *DBConfigs) ExternalRepl() Connector + func (dbcfgs *DBConfigs) ExternalReplWithDB() Connector + func (dbcfgs *DBConfigs) FilteredWithDB() Connector + func (dbcfgs *DBConfigs) IsZero() bool + func (dbcfgs *DBConfigs) Repl() Connector + func (dbcfgs *DBConfigs) String() string + type FileCredentialsServer struct + func (fcs *FileCredentialsServer) GetUserAndPassword(user string) (string, string, error)