Home | Trees | Index | Help |
---|
object
--+
|
result
result(connection, use=0, converter={}) -- Result set from a query.
Creating instances of this class directly is an excellent way to shoot yourself in the foot. If using _mysql.connection directly, use connection.store_result() or connection.use_result() instead. If using MySQLdb.Connection, this is done by the cursor class. Just forget you ever saw this. Forget... FOR-GET...
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
data_seek(n) -- seek to row n of result set | |
Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute. | |
The rows are formatted according to how: | |
Returns a tuple of field flags, one for each column in the result. | |
Returns the number of fields (column) in the result. | |
Returns the number of rows in the result set. | |
row_seek(n) -- seek by offset n rows of result set | |
row_tell() -- return the current row number of the result set. | |
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.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
member_descriptor |
converter = <member 'converter' of '_mysql.result' objec...
|
Method Details |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__builtin__.object.__init__
T.__new__(S, ...) -> a new object with type S, a subtype of T
a new object with type S, a subtype of T
__builtin__.object.__new__
x.__repr__() <==> repr(x)
repr(x)
__builtin__.object.__repr__
data_seek(n) -- seek to row n of result set
Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute.
The rows are formatted according to how:
0 -- tuples (default) 1 -- dictionaries, key=column or table.column if duplicated 2 -- dictionaries, key=table.column
Returns a tuple of field flags, one for each column in the result.
Returns the number of fields (column) in the result.
Returns the number of rows in the result set. Note that if use=1, this will not return a valid value until the entire result set has been read.
row_seek(n) -- seek by offset n rows of result set
row_tell() -- return the current row number of the result set.
Class Variable Details |
---|
member_descriptor
<member 'converter' of '_mysql.result' objects>
Home | Trees | Index | Help |
---|