sql

package
v0.0.0-...-5b19f94 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlRepository

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

func NewSqlRepository

func NewSqlRepository(dataBaseConnections *gorm.DB) *SqlRepository

func (*SqlRepository) CheckDuplicate

func (r *SqlRepository) CheckDuplicate(ctx context.Context, userQuota, dataQuota string) (bool, error)

func (*SqlRepository) Create

func (r *SqlRepository) Create(ctx context.Context, user entity.User) error

write

func (*SqlRepository) GetData

func (r *SqlRepository) GetData(ctx context.Context, dataQuota string) (entity.User, error)

func (*SqlRepository) GetSync

func (r *SqlRepository) GetSync(ctx context.Context, date time.Time) ([]entity.User, error)

func (*SqlRepository) GetUnSync

func (r *SqlRepository) GetUnSync() ([]entity.User, error)

func (*SqlRepository) GetUser

func (r *SqlRepository) GetUser(ctx context.Context, userQuota string) (entity.User, error)

read

func (*SqlRepository) Update

func (r *SqlRepository) Update(ctx context.Context, user entity.User) error

Jump to

Keyboard shortcuts

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