Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
Bootstrap creates the necessary tables for the output DB. It is safe to call on a DB that is already bootstrapped.
func Copy ¶
Copy dumps the contents of the origin DB into the destination DB. The destination DB should be bootstrapped, but empty
func ImportFiles ¶
func ImportFiles(originDB DB, destDB DB, opts Options, experimentID int) (success, failures int64, e error)
ImportFiles imports pairs of files from the origin to the destination DB. It copies the contents and processes the needed data (md5 hash, diff)
func Initialize ¶
Initialize populates the DB with default values. It is safe to call on a DB that is already initialized
Types ¶
type DB ¶
DB groups a sql.DB and the driver used to initialize it
func Open ¶
Open returns a DB from the connection string. With checkExisting it will fail if the DB does not exist
func OpenSQLite ¶
OpenSQLite calls Open, but using a path to an SQLite file. For sintactic sugar a sqlite://path string is also accepted