| 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
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| str |
|
||
|
|||
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')
To Do: Allow setting of primary key in a simple way |
|
|
|
|
|
|
|
Add a spatial column to the table using the OpenGIS
AddGeometryColumn function using current schema:
AddGeometryColumn(<table_name>,
<column_name>, <srid>, <type>,
<dimension>)
@param field: Name of the field in the db table
@param typeName: OpenGIS geometry type (e.g. POINT)
@param dimension: x,y would be 2
@type dimension: int
@SRID: spatial referencing system identifier (FIX: give some more info!)
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Mar 5 09:28:42 2007 | http://epydoc.sourceforge.net |