Home | Trees | Index | Help |
---|
Package MySQLdb :: Module cursors :: Class BaseCursor |
|
object
--+
|
BaseCursor
Cursor
,
DictCursor
,
SSCursor
,
SSDictCursor
A base for Cursor classes. Useful attributes:
description -- DB API 7-tuple describing columns in last query arraysize -- default number of rows fetchmany() will fetch
See the MySQL docs for more information.
Method Summary | |
---|---|
__init__(self,
connection)
| |
__del__(self)
| |
__iter__(self)
| |
Close the cursor. | |
Execute a query. | |
Execute a multi-row query. | |
Advance to the next result set. | |
Does nothing, required by DB API. | |
Does nothing, required by DB API. | |
_check_executed(self)
| |
_do_get_result(self)
| |
_do_query(self,
q)
| |
_fetch_row(self,
size)
| |
_get_db(self)
| |
_post_get_result(self)
| |
_query(self,
q)
| |
_warning_check(self)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Class Variable Summary | |
---|---|
classobj |
DatabaseError = _mysql_exceptions.DatabaseError |
classobj |
DataError = _mysql_exceptions.DataError |
classobj |
Error = _mysql_exceptions.Error |
classobj |
IntegrityError = _mysql_exceptions.IntegrityError |
classobj |
InterfaceError = _mysql_exceptions.InterfaceError |
classobj |
InternalError = _mysql_exceptions.InternalError |
classobj |
MySQLError = _mysql_exceptions.MySQLError |
classobj |
NotSupportedError = _mysql_exceptions.NotSupportedError |
classobj |
OperationalError = _mysql_exceptions.OperationalError |
classobj |
ProgrammingError = _mysql_exceptions.ProgrammingError |
classobj |
Warning = _mysql_exceptions.Warning |
Method Details |
---|
close(self)Close the cursor. No further queries will be possible. |
execute(self, query, args=None)Execute a query. query -- string, query to execute on server args -- optional sequence or mapping, parameters to use with query. Note: If args is a sequence, then %s must be used as the parameter placeholder in the query. If a mapping is used, %(key)s must be used as the placeholder. Returns long integer rows affected, if any |
executemany(self, query, args)Execute a multi-row query. query -- string, query to execute on server args Sequence of sequences or mappings, parameters to use with query. Returns long integer rows affected, if any. This method improves performance on multiple-row INSERT and REPLACE. Otherwise it is equivalent to looping over args with execute(). |
nextset(self)Advance to the next result set. Returns None if there are no more result sets. |
setinputsizes(self, *args)Does nothing, required by DB API. |
setoutputsizes(self, *args)Does nothing, required by DB API. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Mon Jan 31 23:02:12 2005 | http://epydoc.sf.net |