Documentation ¶
Overview ¶
Package database provides database functions for Animanager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens and returns the SQLite database. The database is migrated to the newest version.
func OpenMem ¶
OpenMem opens and returns a SQLite database from memory for testing.
The database is migrated to the newest version.
Note that the memory database is shared between all concurrent connections. Thus, this function holds a mutex. This function registers test cleanup functions to close the database and unlock the mutex.
Types ¶
Click to show internal directories.
Click to hide internal directories.