Documentation ¶
Overview ¶
Responsible for interacting with the SQLite3 'data.db'.
Does not follow ORM style. Contains just optimized methods for fast interaction with database.
Index ¶
- Variables
- func Decrypt(data string) j
- func DeleteApp(appID string)
- func Encrypt(data j) string
- func Exec(q string, args ...interface{})
- func GetAppByID(id string) j
- func GetApps() []j
- func Init()
- func MakeApp(data j) string
- func Query(q string, args ...interface{}) *sql.Rows
- func UpdateApp(appID string, data j)
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance *sql.DB
One instance to rule them all
Functions ¶
func Exec ¶
func Exec(q string, args ...interface{})
Default exec method. Handles errors automatically
func MakeApp ¶
func MakeApp(data j) string
Creates a new application with afferent data and inserts it in DB. Returns newly created app's ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.