| Home | Trees | Index | Help |
|---|
Connection--+ |Connection--+ | Connection
| Method Summary | |
|---|---|
__init__(self,
*params,
**kwargs)
| |
Commit pending changes in the backend (to be implemented by descendants). | |
Delete a record from the backend (to be implemented by descendants). | |
Insert a new record in the backend (to be implemented by descendants). | |
List all the field names available for a table. | |
Load data from a file. | |
Undo any uncommitted changes in the backend (to be implemented by descendants). | |
Update an existing record in the backend. | |
| Inherited from Connection | |
List all available constraints for a table. | |
List all available indices for a table. | |
List the primary key for a table. | |
List all the table names contained in the given file. | |
Requery an existing record to reflect changes done by the backend (to be implemented by descendants). | |
| Inherited from Connection | |
| |
Start a new transaction (to be implemented by descendants). | |
Call a function of the backend (to be implemented by descendants). | |
Close the connection to the backend (to be implemented by descendants). | |
Connect to the backend (to be implemented by descendants). | |
Return information about the necessary login parameters for the connect method (to be implemented by
descendants). | |
Return default values for new records (can be overwritten by descendants). | |
Call a function of the backend. | |
Close the connection to the backend. | |
Commit pending changes in the backend and start a new transaction. | |
Connect to the backend. | |
Create the database in the backend. | |
Delete a record from the backend. | |
Return information about the necessary login parameters for the connect method. | |
Return default values for new records. | |
Insert a new record in the backend. | |
Check whether there are changes that have been posted (via insert, update, or delete) but not yet committed. | |
Return the schema information of the connection's backend or None if no behavior instance is available. | |
Requery an existing record to reflect changes done by the backend. | |
Undo any uncommitted changes in the backend and start a new transaction. | |
Update an existing record in the backend. | |
Update the connection's backend database schema with the given schema object tree. | |
| Instance Variable Summary | |
|---|---|
| Inherited from Connection | |
manager: The connection manager (GConnections) instance responsible for this
connection. | |
name: Name of the connection from connections.conf. | |
parameters: Parameters from connections.conf. | |
| Class Variable Summary | |
|---|---|
NoneType |
_primarykeyFields_: Field names of the primary key. |
| Inherited from Connection | |
NoneType |
_behavior_: Schema introspector class for this type of connection. |
NoneType |
_defaultBehavior_: Standard schema introspector class for this type of connection. |
bool |
_need_rollback_after_exception_: Can be set to False if the backend does not require to rollback after
an exception has happened. |
NoneType |
_resultSetClass_: implementation of the ResultSet class to be used with the
connection. |
NoneType |
_rowidField_: Field name of the rowid generated by the backend. |
| Method Details |
|---|
__init__(self,
*params,
**kwargs)
|
_commit_(self)Commit pending changes in the backend (to be implemented by descendants). This method can be overwritten by the database drivers to commit data to the backend. If it is not overwritten, it does nothing.
|
_delete_(self, table, oldfields)Delete a record from the backend (to be implemented by descendants). Database drivers can overwrite this method to send removals of data records to the backend.
|
_insert_(self, table, oldfields, newfields)Insert a new record in the backend (to be implemented by descendants). Database drivers can overwrite this method to send new data records to the backend. If the backend supports rowids, the rowid of the newly inserted record must be returned from this method.
|
_listFields_(self, table)List all the field names available for a table. This function must return either None if there are no fields available, or a GSFields instance containing all fields. The GSFields instance must *not* have a parent. Field names can be mixed case. This method is used for introspection.
|
_loadFile_(self, filename, table)Load data from a file.
|
_rollback_(self)Undo any uncommitted changes in the backend (to be implemented by descendants). This can should be overwritten by the database drivers to abort and roll back any running transaction. If it is not overwritten, it does nothing.
|
_update_(self, table, oldfields, newfields)Update an existing record in the backend. Database drivers can overwrite this method to send changes of existing data records to the backend (to be implemented by descendants).
|
| Class Variable Details |
|---|
_primarykeyFields_Field names of the primary key. Can be overwritten by descendants if the backend has a fixed fieldname for the primary key.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Nov 18 23:02:04 2008 | http://epydoc.sf.net |