Versions in this module Expand all Collapse all v0 v0.2.5 May 19, 2022 Changes in this version + func GetFactory() model.ConnectorFactory + type AzureLogin struct + ClientID string + ClientSecret string + TenantID string + type Connector struct + AzureLogin *AzureLogin + Database string + Host string + Login *LoginUser + Port string + Timeout time.Duration + Token string + func (c *Connector) CreateLogin(ctx context.Context, name, password, defaultDatabase, defaultLanguage string) error + func (c *Connector) CreateUser(ctx context.Context, database string, user *model.User) error + func (c *Connector) DeleteLogin(ctx context.Context, name string) error + func (c *Connector) DeleteUser(ctx context.Context, database, username string) error + func (c *Connector) ExecContext(ctx context.Context, command string, args ...interface{}) error + func (c *Connector) GetLogin(ctx context.Context, name string) (*model.Login, error) + func (c *Connector) GetUser(ctx context.Context, database, username string) (*model.User, error) + func (c *Connector) PingContext(ctx context.Context) error + func (c *Connector) QueryContext(ctx context.Context, query string, scanner func(*sql.Rows) error, ...) error + func (c *Connector) QueryRowContext(ctx context.Context, query string, scanner func(*sql.Row) error, ...) error + func (c *Connector) UpdateLogin(ctx context.Context, name, password, defaultDatabase, defaultLanguage string) error + func (c *Connector) UpdateUser(ctx context.Context, database string, user *model.User) error + type LoginUser struct + Password string + Username string