postgres

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDBClient

type PostgresDBClient struct {
	// contains filtered or unexported fields
}

func NewPostgresClient

func NewPostgresClient(config config.Config) *PostgresDBClient

func (*PostgresDBClient) CreateUser

func (psql *PostgresDBClient) CreateUser(user *domain.User) (*domain.User, error)

func (*PostgresDBClient) DeleteUser

func (psql *PostgresDBClient) DeleteUser(id string) (string, error)

func (*PostgresDBClient) ReadUser

func (psql *PostgresDBClient) ReadUser(id string) (*domain.User, error)

func (*PostgresDBClient) ReadUsers

func (psql *PostgresDBClient) ReadUsers() ([]domain.User, error)

func (*PostgresDBClient) UpdateUser

func (psql *PostgresDBClient) UpdateUser(user *domain.User) (*domain.User, error)

Jump to

Keyboard shortcuts

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