postgresutil

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PSQLClient

type PSQLClient struct {
	DatabaseName string
	DatabaseHost string
}

PSQLClient psql client

func NewPSQLClient

func NewPSQLClient() *PSQLClient

NewPSQLClient returns a new instance of PSQLClient

func (*PSQLClient) CreateUser

func (p *PSQLClient) CreateUser(username, password string) (string, error)

CreateUser creates postgres user

func (*PSQLClient) CreateUserSchema

func (p *PSQLClient) CreateUserSchema(username string) (string, error)

CreateUserSchema creates a schema for the given user

func (*PSQLClient) DropUser

func (p *PSQLClient) DropUser(username string) (string, error)

DropUser drops postgres user

func (*PSQLClient) DropUserSchema

func (p *PSQLClient) DropUserSchema(username string) (string, error)

DropUserSchema drop schema for the given user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL