Documentation
¶
Overview ¶
The package works on 2 tables on an SQLite database.
The names of the tables are:
- Users
- Userdata
The definitions of the tables are:
CREATE TABLE Users ( ID INTEGER PRIMARY KEY, Username TEXT ); CREATE TABLE Userdata ( UserID INTEGER NOT NULL, Name TEXT, Surname TEXT, Description TEXT ); This is rendered as code
This is not rendered as code
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Filename = ""
)
This global variable holds the SQLite3 database filepath
Filename: Is the filepath to the database file
Functions ¶
func DeleteUser ¶
DeleteUser deletes an existing user if the user exists. It requires the User ID of the user to be deleted.
It returns error
func UpdateUser ¶
UpdateUser() is for updating an existing user given a Userdata structure. The user ID of the user to be updated is found inside the function.
Types ¶
Notes ¶
Bugs ¶
Function ListUsers() not working as expected
Function AddUser() is too slow
Click to show internal directories.
Click to hide internal directories.