Documentation
¶
Index ¶
- type Credentials
- type PGP
- func (b *PGP) CreateDB(ctx context.Context, d string) (string, error)
- func (b *PGP) CreateUser(ctx context.Context, d, u string) (*Credentials, error)
- func (b *PGP) DatabaseExists(ctx context.Context, dbname string) bool
- func (b *PGP) DropDB(ctx context.Context, d string) error
- func (b *PGP) DropUser(ctx context.Context, d, u string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
DBName string `json:"dbname"`
Username string `json:"username"`
Password string `json:"password"`
Host string `json:"host"`
Port string `json:"port"`
Url string `json:"url"`
}
Credentials contains all information that is needed to connect to created databases
type PGP ¶
type PGP struct {
// contains filtered or unexported fields
}
PGP is a postgresql manipulation entity implementation
func (*PGP) CreateUser ¶
CreateUser creates a user for the named database
func (*PGP) DatabaseExists ¶
userExists checks whether the named database exists
Click to show internal directories.
Click to hide internal directories.