Documentation
¶
Index ¶
- func ChangePassword(ctx context.Context, pg *pgx.Conn, username, password string) error
- func CreateDatabase(ctx context.Context, pg *pgx.Conn, name string) error
- func CreateUser(ctx context.Context, pg *pgx.Conn, username string, password string) error
- func DeleteDatabase(ctx context.Context, pg *pgx.Conn, name string) error
- func DeleteUser(ctx context.Context, pg *pgx.Conn, username string) error
- func GrantAccess(ctx context.Context, pg *pgx.Conn, database, username string) error
- func GrantReplication(ctx context.Context, pg *pgx.Conn, username string) error
- func GrantSuperuser(ctx context.Context, pg *pgx.Conn, username string) error
- func ResolveRole(ctx context.Context, pg *pgx.Conn) (string, error)
- func ResolveSettings(ctx context.Context, pg *pgx.Conn, list []string) (*flypg.Settings, error)
- func SetReadonly(ctx context.Context, pg *pgx.Conn, enable bool) error
- type DbInfo
- type ReplicationStat
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
func CreateDatabase ¶ added in v0.0.19
func CreateUser ¶
func DeleteDatabase ¶ added in v0.0.19
func DeleteUser ¶ added in v0.0.19
func GrantAccess ¶ added in v0.0.19
func GrantReplication ¶ added in v0.0.8
func ResolveRole ¶ added in v0.0.20
func ResolveSettings ¶ added in v0.0.20
Types ¶
type DbInfo ¶
func FindDatabase ¶ added in v0.0.19
type ReplicationStat ¶ added in v0.0.35
func ResolveReplicationLag ¶ added in v0.0.35
func ResolveReplicationLag(ctx context.Context, pg *pgx.Conn) ([]*ReplicationStat, error)
Click to show internal directories.
Click to hide internal directories.