diff --git a/support/tools/MoM/process_mom_sql.py b/support/tools/MoM/process_mom_sql.py index 2e979385589dd73a85381c18a6d15e6833a442a8..798668db295b4c2ca0f5a01bf0ec0999d92ef186 100755 --- a/support/tools/MoM/process_mom_sql.py +++ b/support/tools/MoM/process_mom_sql.py @@ -1,5 +1,12 @@ #!/usr/bin/python +# This script reads infile and creates sql files for each part in the infile in the +# outdir directory. It also replaces references to the indatabase with references +# to the outdatabase. +# It creates a file for each view and table and trigger that is defined in the infile. +# It creates separate files for filling the tables. +# The script assumes the infile is a dump of a MySQL MoM 3 database. + infile = "backup_lofar_mom3.sql.1" indatabase = "lofar_mom3" outdatabase = "lofar_mom_test_rt_trigger"