package
1.2.1
Repository: https://github.com/jammutkarsh/cshare-server.git
Documentation: pkg.go.dev

# Functions

ClipCount returns the number of clips for a user.
CloseConnection closes the connection to the database.
CreateConnection creates a connection to the database.
DeleteClips deletes all the clips of a user.
GetPasswordHash fetches the hash from the database.
GetUserID searches a user in DB by its userID.
InsertClip inserts a clip into the database and returns clipid.
InsertPasswordHash inserts the password hash in the database.
InsertUser inserts a new user into the database and returns a userID.
SelectByUsername searches a user in DB by its username.
SelectClip returns clip Data for a given user.

# Structs

Data is the data structure for clip data.
Users is the data structure for user data.