Package helpers :: Module SyncFlatFileLookUp :: Class SyncFlatFileLookUp
[hide private]

Class SyncFlatFileLookUp

source code


Fill or update the FlatFileLookUp table from Multiframe.

Nested Classes [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: IngCuError

Instance Methods [hide private]
 
__init__(self, database, curator='rsc', isTrialRun=False, writeOnly=False, ingestOnly=False, updateOnly=False, fullUpdate=False, checkIngest=False)
Initialises data members for all database state flags and details for this curation session.
source code
 
getData(self, tableName, where='')
Get multiframeID, cuEventID, fileName from table.
source code
 
_onRun(self)
Performs all the tasks that define this curation session.
source code

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: __del__, attributesFromArguments, createFileList, createLogFileName, createMonthlyDetSchema, createWorkingDir, getDetTable, getErrorFileName, getMultiframeIDs, getProcessOrder, getProgramIDs, makeSysCmd, removeWorkingDir, run, runSysCmd, setupDetectionTable, testForProgs, translateProgID, writeErrorFiles, writeIngestList

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: createFilePrefix

Class Variables [hide private]
  _autoCommit = True
  _ingestSchema = 'WSA_CurationLogsSchema.sql'
  _tableName = 'FlatFileLookUp'
  _checkIngestDateDef = '10000101_v1'

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: beginDateDef, endDateDef, keepWorkDir, reqWorkDir, sysc

Instance Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, database, curator='rsc', isTrialRun=False, writeOnly=False, ingestOnly=False, updateOnly=False, fullUpdate=False, checkIngest=False)
(Constructor)

source code 

Initialises data members for all database state flags and details for this curation session. Writes a database lock and opens a connection. Also initiates a Programme table object.

Parameters:
  • curator (str) - Name of curator.
  • database (str) - Name of the database to connect to.
  • ingestOnly (bool) - If given, only ingest the existing file.
  • isTrialRun (bool) - If True, do not perform database modifications, just print the SQL statement to the terminal.
  • writeOnly (bool) - If given only write to file, don't ingest.
  • updateOnly (bool) - If given only update the DB.
  • checkIngest (str) - Check ingest for given date-version directory.
Overrides: object.__init__

getData(self, tableName, where='')

source code 

Get multiframeID, cuEventID, fileName from table.

Parameters:
  • tableName (str) - The table from where the data is taken.
  • where (str) - Data sample selection.

_onRun(self)

source code 

Performs all the tasks that define this curation session.

Overrides: wsatools.DbConnect.IngCuSession.IngCuSession._onRun
(inherited documentation)