database_client

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(db *sql.DB, t Task) error

func DeleteTask

func DeleteTask(db *sql.DB, id int) error

func Display

func Display(tasks []Task)

Types

type Task

type Task struct {
	ID             int
	Name           string
	Source         string
	Path           string
	ShortName      string
	Link           string
	ContestID      string
	ContestStageID string
}

func FindTasks

func FindTasks(db *sql.DB, t Task) ([]Task, error)

func (*Task) Display

func (t *Task) Display()

func (*Task) ParseID

func (t *Task) ParseID() string

Jump to

Keyboard shortcuts

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