repository

package
v0.0.0-...-2dd8659 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryRepository

type CategoryRepository struct {
	DB      *sql.DB
	Queries *db.Queries
}

func NewCategoryRepository

func NewCategoryRepository(dtb *sql.DB) *CategoryRepository

func (*CategoryRepository) Insert

func (r *CategoryRepository) Insert(ctx context.Context, category entity.Category) error

type CategoryRepositoryInterface

type CategoryRepositoryInterface interface {
	Insert(ctx context.Context, category entity.Category) error
}

type CourseRepository

type CourseRepository struct {
	DB      *sql.DB
	Queries *db.Queries
}

func NewCourseRepository

func NewCourseRepository(dtb *sql.DB) *CourseRepository

func (*CourseRepository) Insert

func (r *CourseRepository) Insert(ctx context.Context, course entity.Course) error

type CourseRepositoryInterface

type CourseRepositoryInterface interface {
	Insert(ctx context.Context, course entity.Course) error
}

Jump to

Keyboard shortcuts

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