Documentation ¶
Overview ¶
Package that interfaces with the sqlite database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitUser ¶
CommitUser commits the given user to the given database. No santization of inputs is used, be warned.
func CreateSkelDB ¶
CreateSkelDB creates a skeleton database with one user table and no users.
func DeleteUser ¶
deleteUser deletes a given user by id. It returns error on database error (like no such user with given id). Otherwise, it returns the number of users deleted.
func FindUsersBy ¶
FindUsersBy takes in a database connection and map of filters. It searches the database for the users matching the filters and returns a slice of results. valid filters are of the form: map{ "name": "john", "age": "23", "id": 7} (Or any subset of those keys). A blank filter map will select all users. No santization of inputs is used, be warned.
Types ¶
This section is empty.