Documentation ¶
Overview ¶
Package models holds all the data layer interfaces and transactions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *sql.DB
Db is global variable pointer to database connection
Functions ¶
func ConnToDB ¶
func ConnToDB(dbURL string)
ConnToDB connects the database. This should be called at the app start
func CreateMember ¶
CreateMember creates the new member record
func GetMemberID ¶
GetMemberID uses the primary email of a user to get the memberID from the member's table
func GetMemberName ¶
GetMemberName grabs the name using the email
func UpdateMemberEmail ¶
UpdateMemberEmail uses the member ID to insert a new email
func UpdateMemberName ¶
UpdateMemberName uses the member ID to insert a new name
Types ¶
Click to show internal directories.
Click to hide internal directories.