postgres

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 13 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(appConfig appConfig.Config, logger logger.LoggerType) (*PostgresDBClient, error)

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) ReadUserWithEmail added in v1.4.0

func (psql *PostgresDBClient) ReadUserWithEmail(email 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