Trees | Indices | Help |
---|
|
Helper for building create SQL commands.
FIX: add type checking - what did I mean by this???To Do: FIX - add a remove command to nuke a field
|
|||
|
__init__(self,
table) Kick it off with no fields |
||
|
add(self,
field,
typeStr) Unchecked field. |
||
|
addInt(self,
field) SQL integer field |
||
|
addReal(self,
field) SQL floating point field |
||
|
addVarChar(self,
field,
length) SQL VARCHAR field... |
||
|
addBool(self,
field) SQL Boolean field |
||
|
addBitVarying(self,
field,
length) SQL Boolean field |
||
| addDecimal(self, field, precision=5, scale=0) | ||
|
addTimestamp(self,
field) SQL TIMESTAMP field |
||
str
|
__str__(self) Return the SQL string for the table creation |
|
Kick it off with no fields table - which table are we going to insert into |
Unchecked field. Provide the field and type all in one. Use this if nothing matches what you need. e.g.: create.add('corenumber','INTEGER') create.add('username','VARCHAR(40)') create.add('id','INTEGER PRIMARY KEY')
|
|
|
|
|
|
|
|
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Mon Feb 5 09:50:15 2007 | http://epydoc.sourceforge.net |