|
|
|
|
|
GetColumns(dBase,
table,
fieldString,
user='sysdba',
password='masterkey',
join='')
gets a set of data from a table... |
source code
|
|
|
|
GetData(dBase,
table,
fieldString='*',
whereString='',
user='sysdba',
password='masterkey',
removeDups=-1,
join='',
forceList=0,
transform=None,
randomAccess=1,
extras=None)
a more flexible method to get a set of data from a table
**Arguments**
- fields: a string with the names of the fields to be extracted,
this should be a comma delimited list
- where: the SQL where clause to be used with the DB query
- removeDups indicates the column which should be used to screen
out duplicates. |
source code
|
|
|
|
DatabaseToExcel(dBase,
table,
fields='*',
join='',
where='',
wrapper=None,
user='sysdba',
password='masterkey',
lowMemory=False)
Pulls the contents of a database and puts them in an Excel worksheet
**Arguments**
- dBase: the name of the DB file to be used
- table: the name of the table to query
- fields: the fields to select with the SQL query
- join: the join clause of the SQL query
(e.g. |
source code
|
|
|
|
DatabaseToText(dBase,
table,
fields='*',
join='',
where='',
wrapper=None,
user='sysdba',
password='masterkey',
delim=',')
Pulls the contents of a database and makes a deliminted text file from them
**Arguments**
- dBase: the name of the DB file to be used
- table: the name of the table to query
- fields: the fields to select with the SQL query
- join: the join clause of the SQL query
(e.g. |
source code
|
|
|
|
TypeFinder(data,
nRows,
nCols,
nullMarker=None)
finds the types of the columns in _data_
if nullMarker is not None, elements of the data table which are
equal to nullMarker will not count towards setting the type of
their columns. |
source code
|
|
|
|
DetermineColTypes(wrapper,
nullMarker=None)
This is kind of crude hack to automagically determine the types
of columns in the active Excel sheet
**Arguments**
- wrapper: the _ExcelWrapper_ to be used in interacting with Excel
- nullMarker: (optional) if this is not None, elements of the
data table which are equal to nullMarker will not count towards
setting the type of their columns. |
source code
|
|
|
|
_AdjustColHeadings(colHeadings,
maxColLabelLen)
*For Internal Use*
removes illegal characters from column headings
and truncates those which are too long. |
source code
|
|
|
|
|
|
|
| _insertBlock(conn,
sqlStr,
block,
silent=False) |
source code
|
|
|
|
_AddDataToDb(dBase,
table,
user,
password,
colDefs,
colTypes,
data,
nullMarker=None,
blockSize=100)
*For Internal Use*... |
source code
|
|
|
|
ExcelToDatabase(dBase,
table,
wrapper=None,
user='sysdba',
password='masterkey',
maxColLabelLen=31,
keyCol=None,
nullMarker=None,
force=0)
convert the active excel worksheet into a database. |
source code
|
|
|
|
TextFileToDatabase(dBase,
table,
inF,
delim=',',
user='sysdba',
password='masterkey',
maxColLabelLen=31,
keyCol=None,
nullMarker=None)
loads the contents of the text file into a database. |
source code
|
|
|
|
DatabaseToDatabase(fromDb,
fromTbl,
toDb,
toTbl,
fields='*',
join='',
where='',
user='sysdba',
password='masterkey',
keyCol=None,
nullMarker='None')
FIX: at the moment this is a hack |
source code
|
|