sqlite

package
v0.0.0-...-679f656 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 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 Course

type Course struct {
	Subject_code, Course_code, Course_name string
	Credits                                int
}

func ParseCourse

func ParseCourse(course []string) (Course, error)

type DBStore

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

func (*DBStore) AllCourses

func (store *DBStore) AllCourses() (courses []Course, err error)

func (*DBStore) FindSections

func (store *DBStore) FindSections(course Course, secType int) (sections []Section, err error)

func (*DBStore) FindSlot

func (store *DBStore) FindSlot(section Section) (slot string, err error)

func (*DBStore) InitDB

func (store *DBStore) InitDB() error

func (*DBStore) InsertCourses

func (store *DBStore) InsertCourses(courses [][]string) error

func (*DBStore) InsertDB

func (store *DBStore) InsertDB(db *sql.DB)

func (*DBStore) InsertSections

func (store *DBStore) InsertSections(sections [][]string) error

type Section

type Section struct {
	Subject_code, Course_code, Section_slot string
	Section_type, Section_no                int
}

func ParseSection

func ParseSection(section []string) (Section, error)

type Subject

type Subject struct {
	Subject_code, Subject_name string
}

Jump to

Keyboard shortcuts

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