NAME

WeBWorK::Utils::DBImportExport - import and export the database.

FUNCTIONS

listTables()

List the names of the tables supported for export.

dbExport(%options)

Exports data from a WeBWorK database to a WWDBv2 XML document.

%options can contain:

db

A WeBWorK::DB instance. Data will be exported from this database.

xml

A file handle, opened for writing. The XML output will we written to this file handle.

tables

A reference to a list specifying the set of tables from which to export data.

records

Unimplemented.

dbImport(%options)

Imports the data from a WWDBv2 XML document into a WeBWorK database.

In this version, the entire XML parse tree is held in RAM during the import. This can be very memory intensive for large import files.

%options can contain:

xml

A string containing WWDBv2 XML data or a file handle opened for reading from a WWDBv2 XML document.

db

A WeBWorK::DB instance. Imported data will be added to this database.

tables

A reference to a list specifying the set of tables from which to import data.

records

Unimplemented.

conflict

A string, containing either "skip" or "replace", indicating what to do with duplicate records. If not set, duplicate records are skipped.