Documentation ¶
Index ¶
- func CreateExecutable(database string, platformName string, executable model.Executable) (int64, bool, error)
- func CreatePlatform(database string, platform model.Platform) (int64, bool, error)
- func CreateResource(database, resource, filepath, platformName, typ string) (bool, error)
- func DeleteExecutable(database, platformName, filepath string) (bool, error)
- func DeletePlatform(database, platformName string) (bool, error)
- func InitSchema(database, filename string) (bool, error)
- func WriteDatabase(database string, platform int, gamesInfo *model.Gamesinfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExecutable ¶
func CreateExecutable(database string, platformName string, executable model.Executable) (int64, bool, error)
CreateExecutable creates the executable in the database. Returns the ID of the created executable.
func CreatePlatform ¶
CreatePlatform creates an empty platform in the given sqlite database. Returns the ID of the newly created platform.
func CreateResource ¶
func DeleteExecutable ¶
DeleteExecutable deletes the executable from the database.
func DeletePlatform ¶
DeletePlatform deletes the given platform by its name and all its executables.
func InitSchema ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.