post05

package module
v0.0.0-...-9a15add Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

post05

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hostname = ""
	Port     = 2345
	Username = ""
	Password = ""
	Database = ""
)

Connection details

Functions

func AddCourse

func AddCourse(d MSDSCourse) string

AddUser adds a new user to the database Returns new User ID -1 if there was an error

func DeleteCourse

func DeleteCourse(cid string) error

DeleteUser deletes an existing user

func UpdateCourse

func UpdateCourse(d MSDSCourse) error

UpdateUser is for updating an existing user

Types

type MSDSCourse

type MSDSCourse struct {
	CID     string
	CNAME   string
	CPREREQ string
}

func ListCourses

func ListCourses() ([]MSDSCourse, error)

ListUsers lists all users in the database

Jump to

Keyboard shortcuts

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