mysqldb

package
v0.0.0-...-6883eea Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(connectString string) database.Repository

Types

type MysqlRepository

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

func (*MysqlRepository) AddGroup

func (r *MysqlRepository) AddGroup(ctx context.Context, group *entity.Group) (string, error)

func (*MysqlRepository) AddGroupMembership

func (r *MysqlRepository) AddGroupMembership(ctx context.Context, gm *entity.GroupMember) error

func (*MysqlRepository) AddRoom

func (r *MysqlRepository) AddRoom(ctx context.Context, room *entity.Room) (string, error)

func (*MysqlRepository) AddRoomMembership

func (r *MysqlRepository) AddRoomMembership(ctx context.Context, rm *entity.RoomMember) error

func (*MysqlRepository) Close

func (r *MysqlRepository) Close(_ context.Context)

func (*MysqlRepository) DeleteGroupMembership

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

func (*MysqlRepository) DeleteRoomMembership

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

func (*MysqlRepository) GetGroupByID

func (r *MysqlRepository) GetGroupByID(ctx context.Context, id string) (*entity.Group, error)

func (*MysqlRepository) GetGroupMembersByGroupID

func (r *MysqlRepository) GetGroupMembersByGroupID(ctx context.Context, groupID string) ([]*entity.GroupMember, error)

func (*MysqlRepository) GetGroupMembershipByAttendeeID

func (r *MysqlRepository) GetGroupMembershipByAttendeeID(ctx context.Context, attendeeID uint) (*entity.GroupMember, error)

func (*MysqlRepository) GetGroups

func (r *MysqlRepository) GetGroups(ctx context.Context) ([]*entity.Group, error)

func (*MysqlRepository) GetRoomByID

func (r *MysqlRepository) GetRoomByID(ctx context.Context, id string) (*entity.Room, error)

func (*MysqlRepository) GetRoomMembersByRoomID

func (r *MysqlRepository) GetRoomMembersByRoomID(ctx context.Context, roomID string) ([]*entity.RoomMember, error)

func (*MysqlRepository) GetRoomMembershipByAttendeeID

func (r *MysqlRepository) GetRoomMembershipByAttendeeID(ctx context.Context, attendeeID uint) (*entity.RoomMember, error)

func (*MysqlRepository) GetRooms

func (r *MysqlRepository) GetRooms(ctx context.Context) ([]*entity.Room, error)

func (*MysqlRepository) Migrate

func (r *MysqlRepository) Migrate(ctx context.Context) error

func (*MysqlRepository) NewEmptyGroupMembership

func (r *MysqlRepository) NewEmptyGroupMembership(_ context.Context, groupID string, attendeeID uint) *entity.GroupMember

func (*MysqlRepository) NewEmptyRoomMembership

func (r *MysqlRepository) NewEmptyRoomMembership(_ context.Context, roomID string, attendeeID uint) *entity.RoomMember

func (*MysqlRepository) Open

func (r *MysqlRepository) Open(ctx context.Context) error

func (*MysqlRepository) RecordHistory

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

func (*MysqlRepository) SoftDeleteGroupByID

func (r *MysqlRepository) SoftDeleteGroupByID(ctx context.Context, id string) error

func (*MysqlRepository) SoftDeleteRoomByID

func (r *MysqlRepository) SoftDeleteRoomByID(ctx context.Context, id string) error

func (*MysqlRepository) UndeleteGroupByID

func (r *MysqlRepository) UndeleteGroupByID(ctx context.Context, id string) error

func (*MysqlRepository) UndeleteRoomByID

func (r *MysqlRepository) UndeleteRoomByID(ctx context.Context, id string) error

func (*MysqlRepository) UpdateGroup

func (r *MysqlRepository) UpdateGroup(ctx context.Context, group *entity.Group) error

func (*MysqlRepository) UpdateGroupMembership

func (r *MysqlRepository) UpdateGroupMembership(ctx context.Context, gm *entity.GroupMember) error

func (*MysqlRepository) UpdateRoom

func (r *MysqlRepository) UpdateRoom(ctx context.Context, room *entity.Room) error

func (*MysqlRepository) UpdateRoomMembership

func (r *MysqlRepository) UpdateRoomMembership(ctx context.Context, rm *entity.RoomMember) error

Jump to

Keyboard shortcuts

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