task

package
v0.0.0-...-19c0e9e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.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 DB

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

func New

func New(conn *mysql.DB) *DB

func (*DB) Create

func (r *DB) Create(ctx context.Context, t entity2.Task) (entity2.Task, error)

func (*DB) GetAll

func (r *DB) GetAll(ctx context.Context) ([]entity2.Task, error)

func (*DB) GetAllByUserID

func (r *DB) GetAllByUserID(ctx context.Context, userID uint64) ([]entity2.Task, error)

func (*DB) GetByID

func (r *DB) GetByID(ctx context.Context, id uint64) (entity2.Task, error)

func (*DB) IsExistsUser

func (r *DB) IsExistsUser(ctx context.Context, id uint64) (bool, error)

type RowScanner

type RowScanner interface {
	Scan(dest ...any) error
}

type RowsScanner

type RowsScanner interface {
	Scan(dest ...any) error
	Next() bool
}

Jump to

Keyboard shortcuts

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