Home | Trees | Index | Help |
|
---|
Package lemon :: Package db :: Package drivers :: Module gc :: Class gadflyCursor |
|
baseCursor
--+
|
gadflyCursor
Method Summary | |
---|---|
Note: The code has been re-written and seems to work well so the info below may not be relevant. | |
Warning: Please note.. | |
For this to work the definitions must be tuples containing just one integer, otherwise the integer field... | |
setupOptions(self)
| |
Inherited from baseCursor | |
| |
Delegate unrecognised methods/attributes to the cursor object. | |
Add a column type definition to the ColumnTypes table. | |
| |
| |
Checks to see if the columns specified by 'cols' are all present in the cache. | |
| |
| |
Fields:... | |
Create the ColumnTypes table required by the DB layer. | |
| |
| |
| |
| |
| |
| |
Called to convert the results of a select or function call to the correct types. | |
| |
| |
| |
| |
| |
Remove a table from the database. | |
| |
| |
| |
| |
| |
| |
Called to encode the data sent as SQL to ensure all strings are handled correctly across each database. | |
| |
| |
| |
Retrieve all the rows from the query in the format of a sequence of results. | |
| |
Warning: Please note.. | |
| |
Called to retrieve information on the types of each column for a particular database using the retrieval method set with the autoConvert option. | |
Called to get a list of field types from a table name and a list of field names. | |
| |
| |
| |
| |
| |
Remove a column type definition to the ColumnTypes table. | |
Remove all definitions for the table 'table' from the ColumnTypes table. | |
| |
fields should be either: 1. | |
| |
| |
| |
| |
| |
|
Method Details |
---|
alter(self, conn, table, mode, columnName, columnType=None, default=None)Note: The code has been re-written and seems to work well so the info below may not be relevant. Also no commits are used. Manually performs a table alteration in Gadfly. WARNING: The function is not robust and may fail, make sure you read the docstring for the Gadfly ALTER() command and that you make a proper backup as described in the docstring for this module. NOTE: This function has a different syntax to ALTER(). This is because Gadfly doesn't suppot NULLs so you must specify a default value of the correct type for the column. ALTER() does not have the same effect in the Gadfly cursor as in other cursors. Differences: 1. Gadfly doesn't support ALTER. This means that the implementation has been done manually by reading all the results from the table, deleting the table, creating a new table and putting all the results back in. This is not reliable. several self.commit() calls are made which menas transactions could behave strangely. Also gadfly tends to like being disconnected from and reconnected to before any further calls are made. If you really need to alter a gadfly table, make a backup and then connect to Gadfly in the way you would if you were creating a table for the first time (as described in the gadfly documentation) then perform the alter, commit, and disconnect. The table should have been altered successfully.
|
function(self, func, field, table, where=None)Warning: Please note.. no conversion is done here.
|
setupFields(self)For this to work the definitions must be tuples containing just one integer, otherwise the integer field causes problems when adding a column definition
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:08:20 2003 | http://epydoc.sf.net |