Home | Trees | Indices | Help |
|
---|
|
Updates all of the values in a set of database columns from the original FITS header keyword values using the prescription described in the table schema. The set of database columns may be manually supplied and to these any new columns, defined in the schema yet not present in the database, will be automatically included and created in the database. If there no new columns in the schema and no columns are manually supplied then no updates are performed.
This class is used by FitsReader which, when retrieving the list of FITS files to be read, invokes _prepare() to determine the list of attributes to be updated and uses DbUpdater to prepare the file list. FitsReader then calls updateDb() to update each record.
|
|||
Nested Errors and Exceptions | |||
---|---|---|---|
Inherited from |
|
|||
|
|||
|
|||
list(schema.Attribute) |
|
||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
_isPersistent = True Should this curation task try to re-open broken database connections? |
|||
comment =
Descriptive comment as to why curation task is being performed. |
|||
doStacksOnly = False Only update attributes from stack files? |
|||
reqAttrs = None List of named attributes that already exist in the db to update. |
|||
schemaFileName =
Name of the .sql file defining the schema to update. |
|||
tableList =
List of tables within the schema to be updated. |
|||
_attrUpdateList =
List of attribute lists for every table to update. |
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Run the database updater. Wrapper to catch table not found in schema errors, which are most likely to be caused by user input error.
|
Determines the list of attributes to be updated and fills the list of records that need to be updated.
|
Reduce the list of attributes for a given table to just those that need to be updated. Compares the schema described by the .sql file with that in the current database to see if there are any new attributes. If so, new columns are added to the database for these attributes with default values.
|
Update entries for previously selected list of attributes in the database record for this multiframe ID.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 8 15:46:53 2014 | http://epydoc.sourceforge.net |