Documentation ¶
Index ¶
- func ParseUserId(id string) (database string, username string, err error)
- type AzureLogin
- type Connector
- func (c *Connector) ConnectionString() string
- func (c *Connector) CreateUser(ctx context.Context, user *model.User) error
- func (c *Connector) CreateUserOld(ctx context.Context, database string, user *model.User) error
- func (c *Connector) DeleteUser(ctx context.Context, user *model.User) error
- func (c *Connector) ExecContext(ctx context.Context, command string, args ...interface{}) error
- func (c *Connector) GetUser(ctx context.Context, database string, username string) (*model.User, error)
- func (c *Connector) GetUserOld(ctx context.Context, database, username string) (*model.User, error)
- func (c *Connector) GetUserRoles(ctx context.Context, username string) ([]string, 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) UpdateUser(ctx context.Context, database string, user *model.User) error
- type LoginUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureLogin ¶
type Connector ¶
type Connector struct { Host string `json:"host"` Port int `json:"port"` Database string `json:"database"` Login *LoginUser AzureLogin *AzureLogin Timeout time.Duration `json:"timeout,omitempty"` Token string }
func (*Connector) ConnectionString ¶
func (*Connector) CreateUser ¶
func (*Connector) CreateUserOld ¶
func (*Connector) DeleteUser ¶
func (*Connector) ExecContext ¶
Execute an SQL statement and ignore the results
func (*Connector) GetUserOld ¶
func (*Connector) GetUserRoles ¶
func (*Connector) QueryContext ¶
func (*Connector) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.