db

package
v0.0.0-...-52bad84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func CreatePlatform(database string, platform model.Platform) (int64, bool, error)

CreatePlatform creates an empty platform in the given sqlite database. Returns the ID of the newly created platform.

func CreateResource

func CreateResource(database, resource, filepath, platformName, typ string) (bool, error)

func DeleteExecutable

func DeleteExecutable(database, platformName, filepath string) (bool, error)

DeleteExecutable deletes the executable from the database.

func DeletePlatform

func DeletePlatform(database, platformName string) (bool, error)

DeletePlatform deletes the given platform by its name and all its executables.

func InitSchema

func InitSchema(database, filename string) (bool, error)

func WriteDatabase

func WriteDatabase(database string, platform int, gamesInfo *model.Gamesinfo)

writeDatabase writes the result of the scraping into the given database.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL