db

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

func NewMemory

func NewMemory() *memory

Types

type ReviewRepository

type ReviewRepository interface {
	Create(context.Context, review.Review) error
	Update(context.Context, *review.Review) error
	Get(ctx context.Context, id string) (*review.Review, error)
	GetLatestByUserAndWorkspace(ctx context.Context, userID, workspaceID string) (*review.Review, error)
	ListLatestByWorkspace(ctx context.Context, workspaceID string) ([]*review.Review, error)
	DismissAllInWorkspace(ctx context.Context, workspaceID string) error
}

func NewReviewRepository

func NewReviewRepository(db *sqlx.DB) ReviewRepository

Jump to

Keyboard shortcuts

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