database_client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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) ParseAlias

func (t *Task) ParseAlias() string

func (*Task) ParseID

func (t *Task) ParseID() string

func (*Task) ParseName

func (t *Task) ParseName() string

func (*Task) ParseStage

func (t *Task) ParseStage() string

Jump to

Keyboard shortcuts

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