(ctx context.Context, arg CreateCourseParams)
| 40 | } |
| 41 | |
| 42 | func (q *Queries) CreateCourse(ctx context.Context, arg CreateCourseParams) error { |
| 43 | _, err := q.db.ExecContext(ctx, createCourse, |
| 44 | arg.ID, |
| 45 | arg.Name, |
| 46 | arg.Description, |
| 47 | arg.CategoryID, |
| 48 | arg.Price, |
| 49 | ) |
| 50 | return err |
| 51 | } |
| 52 | |
| 53 | const deleteCategory = `-- name: DeleteCategory :exec |
| 54 | DELETE FROM categories WHERE id = ? |
nothing calls this directly
no test coverage detected