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 UpdateCourse ¶
func UpdateCourse(d MSDSCourse) error
UpdateUser is for updating an existing user
Types ¶
type MSDSCourse ¶
func ListCourses ¶
func ListCourses() ([]MSDSCourse, error)
ListUsers lists all users in the database
Click to show internal directories.
Click to hide internal directories.