mysql

package
v0.0.0-...-df736e3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MysqlConn

func MysqlConn() (*sql.DB, error)

func NewEventRepository

func NewEventRepository(db *sql.DB) port.EventRepo

Types

type EventMysqlRepository

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

func (*EventMysqlRepository) CreateEvent

func (r *EventMysqlRepository) CreateEvent(ctx context.Context, event *domain.Event) (*domain.Event, error)

func (*EventMysqlRepository) DeleteEvent

func (r *EventMysqlRepository) DeleteEvent(ctx context.Context, id int64) error

func (*EventMysqlRepository) GetAllEvents

func (r *EventMysqlRepository) GetAllEvents(ctx context.Context) ([]*domain.Event, error)

func (*EventMysqlRepository) GetEventByID

func (r *EventMysqlRepository) GetEventByID(ctx context.Context, id int64) (*domain.Event, error)

func (*EventMysqlRepository) UpdateEvent

func (r *EventMysqlRepository) UpdateEvent(ctx context.Context, event *domain.Event, id int64) error

Jump to

Keyboard shortcuts

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