Text::Tradition::Analysis::IDPUtil(3)

NAME
Text::Tradition::IDPUtil - common utilities for talking to the IDP solver and results database

DESCRIPTION
This package contains a set of utilities for handling IDP calculations on the stemma graph properties, and their storage in a database.

SUBROUTINES

  read_config
Read the machine configuration file to find out how to talk to our database and our Gearman instance. Returns a hash of untainted variables.

  connect_db( %config ) =head2 connect_db_create( %config )
Given a configuration has as obtained from read_config, return a connection to the appropriate KiokuDB store. If the _create variant is called, the DB tables are created if they don't yet exist.

  $status = reset_db( %config ) {
Attempts to wipe the relevant database. Currently this can be done for SQLite and MySQL. If the returned $status is not "OK", something went wrong.