Prepare release database for a given survey.
|
__init__(self,
surveyID,
release=None,
curator=' rsc ' ,
comment=' A descriptive comment ' ,
database=' WSA ' ,
isTrialRun=False,
userName=' ldservro ' )
Initialises member data and prepares database connection. |
source code
|
|
|
_onRun(self)
Verify, freeze, backup and release database for a given survey. |
source code
|
|
|
|
|
_copyOutData(self)
Fills the release database with the correct data. |
source code
|
|
|
_getDateRangeSQL(self)
Returns the date range selection clause for this survey release. |
source code
|
|
|
_getDeprecationClause(self)
Returns the deprecation selection clause for this survey release. |
source code
|
|
|
|
|
_bulkCopyVVVDetTable(self,
tableSchema,
releaseDb)
Copy VVV detection table by individual monthly table chunks. |
source code
|
|
|
_joinDetectionTables(self,
tableName)
Prepares the necessary query to join the split detection tables to
create the given detection table. |
source code
|
|
|
_sendMail(self)
Sends e-mail notification to ETWS about successful release. |
source code
|
|
|
|
|
_splitOutgest(self,
releaseDb,
table,
whereStr='
' ,
specialJoin=None,
reqDefRow=False,
isResumable=True)
Splits the outgest of the given table over several chunks defined by
a where clause. |
source code
|
|
Inherited from wsatools.DbConnect.CuSession.CuSession :
__del__ ,
logBrokenFile ,
run
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
cuNum = 19
Curation task number.
|
|
propPeriodOfGrace = 1
Additional proprietary period-of-grace in months.
|
|
_autoCommit = True
Should this curation task auto-commit database transactions?
|
|
appendDb = False
Append to pre-existing release databases of the same name?
|
|
dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Observation date range to release.
|
|
excludeProgs = ( )
Tuple of programme acronyms for which detections should not be
released.
|
|
fieldIDs = '
'
CSV string of field IDs that only their data should be released.
|
|
fromTable = None
Start copy from this table onward.
|
|
insertProgs = ( )
Tuple of programme acronyms that only their detections will be
copied.
|
|
keepMetadata = False
When inserting programme data, keep existing metadata?
|
|
overwriteDb = False
Overwrite pre-existing release databases of the same name?
|
|
resumeChunkNumber = 1
Resume from this chunk number for VVV detection outgests
|
|
_idxInfo = { }
Parsed index information.
|
|
_isNonSurvey = True
Is release of a non-survey propriety product?
|
|
_objectSchema = [ ]
Parsed database objects schema.
|
|
_releaseDatabase = None
Database object with released database options.
|
|
_releaseServer = None
Server for release database.
|
|
_surveyID = 0
Unique ID of survey to release.
|
|
_tableList = [ ]
Ordered list of tables to copy by table name.
|
|
_tableSchema = { }
Parsed schemas dict referenced by table name.
|
|
_versionNum = 0
Release version number.
|
|
_workSpace = '
'
Temporary outgest work space volume.
|
Inherited from wsatools.DbConnect.CuSession.CuSession :
archive ,
comment ,
cuEventID ,
curator ,
eTypes ,
isDayStampedLog ,
onlyNonSurveys ,
onlySurveys ,
programme ,
programmeID ,
resultsFilePathName ,
shareFileID ,
sysc
Inherited from wsatools.DbConnect.CuSession.CuSession (private):
_cleanUpDirs ,
_cuTable ,
_isPersistent ,
_lockPathName ,
_log ,
_numSessions ,
_reqCuEventID ,
_reqDbLock ,
_rolledBack ,
_success ,
_useWorkDir
|