Package install :: Package MoSTBioDat :: Package DataBase :: Package Connect :: Module MoSTBioDatDBSupport
[hide private]
[frames] | no frames]

Module MoSTBioDatDBSupport

source code

Classes [hide private]
  PickleArray
cPickle array - user cache memory INPUT: query - str - SQL query cachepath - str - path to cache directory, default - current working directory cachefilename - str - cache file names, default query cachedictfilename - str - dictionary cache file name, default - dictQuery numcachefiles - int - number cache files temporary - str - temporary cache directory, default /tmp/Query
Functions [hide private]
 
dict2array(rowdict, row)
from cursor dictionary create array INPUT: row cursor dictionary row counter OUTPUT: array of objects
source code
 
descolumn(columndesclist) source code
 
filterKeys(dictionary, keys, key)
check input settings
source code
 
rmfile(path)
remove file INPUT: path - str- file path
source code
 
findQueryCacheFile(dictfullfilename, query)
find cache file with given query INPUT: dictionary full pathname - str query - SQL query - str OUTPUT: filename path to cache file
source code
 
getQueryFileObject(cachefilepath)
get query file object from cPickle...
source code
Function Details [hide private]

getQueryFileObject(cachefilepath)

source code 

get query file object from cPickle
INPUT:
cache filename path - str
OUTPUT
dictionary - 'desc' - column description
             'array' - array of objects