mysqldb

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() dbrepo.Repository

Types

type MysqlRepository

type MysqlRepository struct {
	Now func() time.Time
	// contains filtered or unexported fields
}

func (*MysqlRepository) AddAttendee

func (r *MysqlRepository) AddAttendee(ctx context.Context, a *entity.Attendee) (uint, error)

func (*MysqlRepository) AddBan

func (r *MysqlRepository) AddBan(ctx context.Context, b *entity.Ban) (uint, error)

func (*MysqlRepository) AddStatusChange

func (r *MysqlRepository) AddStatusChange(ctx context.Context, sc *entity.StatusChange) error

func (*MysqlRepository) Close

func (r *MysqlRepository) Close()

func (*MysqlRepository) CountAttendeesByIdentity

func (r *MysqlRepository) CountAttendeesByIdentity(ctx context.Context, identity string) (int64, error)

func (*MysqlRepository) CountAttendeesByNicknameZipEmail

func (r *MysqlRepository) CountAttendeesByNicknameZipEmail(ctx context.Context, nickname string, zip string, email string) (int64, error)

func (*MysqlRepository) DeleteBan

func (r *MysqlRepository) DeleteBan(ctx context.Context, b *entity.Ban) error

func (*MysqlRepository) FindAttendees

func (*MysqlRepository) FindByIdentity

func (r *MysqlRepository) FindByIdentity(ctx context.Context, identity string) ([]*entity.Attendee, error)

func (*MysqlRepository) GetAdditionalInfoFor

func (r *MysqlRepository) GetAdditionalInfoFor(ctx context.Context, attendeeId uint, area string) (*entity.AdditionalInfo, error)

func (*MysqlRepository) GetAdminInfoByAttendeeId

func (r *MysqlRepository) GetAdminInfoByAttendeeId(ctx context.Context, attendeeId uint) (*entity.AdminInfo, error)

func (*MysqlRepository) GetAllBans

func (r *MysqlRepository) GetAllBans(ctx context.Context) ([]*entity.Ban, error)

func (*MysqlRepository) GetAttendeeById

func (r *MysqlRepository) GetAttendeeById(ctx context.Context, id uint) (*entity.Attendee, error)

func (*MysqlRepository) GetBanById

func (r *MysqlRepository) GetBanById(ctx context.Context, id uint) (*entity.Ban, error)

func (*MysqlRepository) GetLatestStatusChangeByAttendeeId

func (r *MysqlRepository) GetLatestStatusChangeByAttendeeId(ctx context.Context, attendeeId uint) (*entity.StatusChange, error)

func (*MysqlRepository) GetStatusChangesByAttendeeId

func (r *MysqlRepository) GetStatusChangesByAttendeeId(ctx context.Context, attendeeId uint) ([]entity.StatusChange, error)

func (*MysqlRepository) MaxAttendeeId

func (r *MysqlRepository) MaxAttendeeId(ctx context.Context) (uint, error)

func (*MysqlRepository) Migrate

func (r *MysqlRepository) Migrate() error

func (*MysqlRepository) Open

func (r *MysqlRepository) Open() error

func (*MysqlRepository) RecordHistory

func (r *MysqlRepository) RecordHistory(ctx context.Context, h *entity.History) error

func (*MysqlRepository) SoftDeleteAttendeeById

func (r *MysqlRepository) SoftDeleteAttendeeById(ctx context.Context, id uint) error

func (*MysqlRepository) UndeleteAttendeeById

func (r *MysqlRepository) UndeleteAttendeeById(ctx context.Context, id uint) error

func (*MysqlRepository) UpdateAttendee

func (r *MysqlRepository) UpdateAttendee(ctx context.Context, a *entity.Attendee) error

func (*MysqlRepository) UpdateBan

func (r *MysqlRepository) UpdateBan(ctx context.Context, b *entity.Ban) error

func (*MysqlRepository) WriteAdditionalInfo

func (r *MysqlRepository) WriteAdditionalInfo(ctx context.Context, ad *entity.AdditionalInfo) error

func (*MysqlRepository) WriteAdminInfo

func (r *MysqlRepository) WriteAdminInfo(ctx context.Context, ai *entity.AdminInfo) error

Jump to

Keyboard shortcuts

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