zionworx module provides the functionality for importing ZionWorx songs into the OpenLP database.
ZionWorxImportclass provides the ability to import songs from ZionWorx, via a dump of the ZionWorx database to a CSV file.
ZionWorx song database fields:
SongNumSong ID. (Discarded by importer)
LyricsSong verses, separated by blank lines.
Keywords(Discarded by importer)
DefaultStyle(Discarded by importer)
ZionWorx has no native export function; it uses the proprietary TurboDB database engine. The TurboDB vendor, dataWeb, provides tools which can export TurboDB tables to other formats, such as freeware console tool TurboDB Data Exchange which is available for Windows and Linux. This command exports the ZionWorx songs table to a CSV file:
tdbdatax MainTable.dat songstable.csv -fsdf -s, -qd
sdfdenotes text file.
Separator character between fields.
Quote character surrounding fields.
CSV format expected by importer:
- Field separator character is comma
- Fields surrounded by double-quotes
". This enables fields (such as Lyrics) to include new-lines and commas. Double-quotes within a field are denoted by two double-quotes
- Note: This is the default format of the Python
Receive a CSV file (from a ZionWorx database dump) to import.