Package gavo :: Package svcs :: Module dalipars
[frames] | no frames]

Module dalipars

source code

DALI-type input parameters.

These, in particular, make intervals out of floats; uploads are as in "PQL".

All this is rife with crazy rules and conventions. I'd much rather we hadn't gone for intervals, but... well, the standards process went the other way.

Functions
 
adaptInputKey(inputKey)
returns inputKey changed to generate SQL for DALI-standard parameters.
source code
Variables
  INTERVAL_TYPES = set(['bigint', 'date', 'double precision', 'i...
  __package__ = None
hash(x)
Function Details

adaptInputKey(inputKey)

source code 

returns inputKey changed to generate SQL for DALI-standard parameters.

This is used by buildFrom on CondDescs when renderers have a parameterStyle of dali.

It will return intervals for INTERVAL_TYPES, make enumerated keys multiple, turn dates and timestamps into MJD intervals.

InputKeys that already have xtypes are returned unchanged.


Variables Details

INTERVAL_TYPES

Value:
set(['bigint',
     'date',
     'double precision',
     'integer',
     'real',
     'smallint',
     'timestamp'])