Package install :: Package MoSTBioDat :: Package DataBase :: Package ImportData :: Package Data2DB :: Module InserTables
[hide private]
[frames] | no frames]

Module InserTables

source code

Classes [hide private]
  InserTables
Functions [hide private]
 
findDictKey(item, dictionary)
find dictionary key INPUT: item- list item dictionary OUTPUT: list of keys
source code
 
checkitem(iterable)
Return True if any element of the iterable is true.
source code
 
all(iterable)
Return True if any element of the iterable is true.
source code
 
geType(varname)
get type of variable INPUT: varname - variable name OUTPUT: name - variable name idx - index type - variable type
source code
 
changeType(item)
change item type to list INPUT: item OUTPUT: item
source code
 
checkLength(item)
check length of item INPUT: item OUTPUT: item length
source code
 
extLength(item, length)
extend lenght of item to lengthest item INPUT: item length OUTPUT" item
source code
 
insPrep(**kwargs)
insert preparation function INPUT: **kwargs - dictionary OUTPUT: keys - list of keys value - list of values
source code
Variables [hide private]
  FALSE = False
  False = False
  SQLTrueClause = 1 = 1
  TRUE = True
  True = True
  const = <MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.Const...
  func = <MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.Consta...
  operatorMap = {'!=': <built-in function ne>, '*': <built-in fu...
  safeSQLRE = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_\.]*$')
  table = <MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.Table...
Function Details [hide private]

checkitem(iterable)

source code 

Return True if any element of the iterable is true. Build-in Python 2.5 INPUT: iterable OUTPUT: boolean

all(iterable)

source code 

Return True if any element of the iterable is true. Build-in Python 2.5 INPUT: iterable OUTPUT: boolean


Variables Details [hide private]

const

Value:
<MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.ConstantSpace instanc\
e at 0x889b0cc>

func

Value:
<MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.ConstantSpace instanc\
e at 0x889b0cc>

operatorMap

Value:
{'!=': <built-in function ne>,
 '*': <built-in function mul>,
 '+': <built-in function add>,
 '-': <built-in function sub>,
 '/': <built-in function div>,
 '<': <built-in function lt>,
 '<=': <built-in function le>,
 '=': <built-in function eq>,
...

table

Value:
<MoSTBioDat.DataBase.Query.SQLBuilder.sqlbuilder.TableSpace instance a\
t 0x889b0ac>