Documentation ¶
Index ¶
- func Add(db *sql.DB, entry *results.Entry)
- func Delete(db *sql.DB, id string) error
- func DeleteDep(db *sql.DB, id string, dep string)
- func Get(db *sql.DB, id string) (*results.Entry, error)
- func GetAll(db *sql.DB, output chan *results.Entry)
- func GetDeps(db *sql.DB, id string) (result map[string]string, found bool)
- func ImportDeps(db *sql.DB, id string, new []string)
- func Insert(db *sql.DB, entry *results.Entry)
- func InsertDep(db *sql.DB, id string, dep string)
- func Open(databaseName string) (db *sql.DB)
- func Update(tx *sql.Tx, entry *results.Entry)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add checks if an entry is already in the database and if found updates the entry, else it adds the entry.
func ImportDeps ¶
ImportDeps maps an app's dependencies to the app. Unlike AddDep this will also remove old dependencies. This was we can keep track of package relationships.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.