sqlite

package
v0.0.0-...-cc0f800 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

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

func NewUserRepository

func NewUserRepository(db *sql.DB) *UserRepository

func (*UserRepository) Create

func (r *UserRepository) Create(ctx context.Context, user *interfaces.User) error

func (*UserRepository) Delete

func (r *UserRepository) Delete(ctx context.Context, id string) error

func (*UserRepository) GetByEmail

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*interfaces.User, error)

func (*UserRepository) GetByID

func (r *UserRepository) GetByID(ctx context.Context, id string) (*interfaces.User, error)

func (*UserRepository) GetByUsername

func (r *UserRepository) GetByUsername(ctx context.Context, username string) (*interfaces.User, error)

func (*UserRepository) List

func (r *UserRepository) List(ctx context.Context, filter map[string]any) ([]*interfaces.User, error)

func (*UserRepository) Update

func (r *UserRepository) Update(ctx context.Context, user *interfaces.User) error

Jump to

Keyboard shortcuts

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