sqlc

package
v0.0.0-...-4db77b6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLCTaskRepository

type SQLCTaskRepository struct {
	db.Querier
}

タスク永続化のSQLC実装

func NewSQLCTaskRepository

func NewSQLCTaskRepository(qry db.Querier) *SQLCTaskRepository

func (*SQLCTaskRepository) CreateTask

func (r *SQLCTaskRepository) CreateTask(ctx context.Context, arg *entity.Task) (string, error)

func (*SQLCTaskRepository) DeleteTask

func (r *SQLCTaskRepository) DeleteTask(ctx context.Context, id string) error

func (*SQLCTaskRepository) FindTaskByID

func (r *SQLCTaskRepository) FindTaskByID(ctx context.Context, id string) (*entity.Task, error)

func (*SQLCTaskRepository) FindTasksByUserID

func (r *SQLCTaskRepository) FindTasksByUserID(ctx context.Context, userID string) ([]*entity.Task, error)

func (*SQLCTaskRepository) UpdateTask

func (r *SQLCTaskRepository) UpdateTask(ctx context.Context, arg *entity.Task) error

type SQLCUserRepository

type SQLCUserRepository struct {
	db.Querier
}

ユーザー永続化のSQLC実装

func NewSQLCUserRepository

func NewSQLCUserRepository(qry db.Querier) *SQLCUserRepository

func (*SQLCUserRepository) FindUserByEmail

func (r *SQLCUserRepository) FindUserByEmail(ctx context.Context, email string) (*entity.User, error)

func (*SQLCUserRepository) FindUserByID

func (r *SQLCUserRepository) FindUserByID(ctx context.Context, id string) (*entity.User, error)

Jump to

Keyboard shortcuts

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