digikamtestresources

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareBasicDB

func PrepareBasicDB() (string, string, func(), error)

func PrepareDB

func PrepareDB(srcDBFile string, libraryRoot string) (string, string, func(), error)

PrepareDB takes the test db that is checked into git prepares it for testing

The test db that is checked into git contains an album root that is an absolute path to where it is on my machine. I did some looking around I and don't see a way digikam can be setup to use something like an environment variable for that path (and even if we could then the symlinking that our FUSE file system wouldn't work since that can't handle environment variable). So what we are doing here is making a temp copy of the db and then digging into the db and modifying the album root so it points to the absolute path of where this repository is actually located.

func PrepareSQLInjectionDB

func PrepareSQLInjectionDB() (string, string, func(), error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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