postgres

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardRepository

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

func NewCardRepository

func NewCardRepository(pool *pgxpool.Pool) *CardRepository

func (CardRepository) Add

func (cr CardRepository) Add(ctx context.Context, card entity.Card) (entity.CardId, error)

func (CardRepository) Delete

func (cr CardRepository) Delete(ctx context.Context, cardId entity.CardId) error

func (CardRepository) Get

func (cr CardRepository) Get(ctx context.Context, cardId entity.CardId) (entity.Card, error)

func (CardRepository) List

func (cr CardRepository) List(ctx context.Context, groupId entity.GroupId) ([]entity.Card, error)

func (CardRepository) Update

func (cr CardRepository) Update(ctx context.Context, card entity.Card) error

type GroupRepository

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

func NewGroupRepository

func NewGroupRepository(pool *pgxpool.Pool) *GroupRepository

func (*GroupRepository) Add

func (gr *GroupRepository) Add(ctx context.Context, group entity.Group) (entity.GroupId, error)

func (*GroupRepository) Delete

func (gr *GroupRepository) Delete(ctx context.Context, groupId entity.GroupId) error

func (*GroupRepository) Get

func (gr *GroupRepository) Get(ctx context.Context, groupId entity.GroupId) (entity.Group, error)

func (*GroupRepository) ListByUser

func (gr *GroupRepository) ListByUser(ctx context.Context, userId entity.UserId) ([]entity.Group, error)

func (*GroupRepository) Update

func (gr *GroupRepository) Update(ctx context.Context, group entity.Group) error

Jump to

Keyboard shortcuts

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