Module _mysql :: Class result
[show private | hide private]
[frames | no frames]

Type result

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
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __repr__(x)
x.__repr__() <==> repr(x)
  data_seek(n)
data_seek(n) -- seek to row n of result set
  describe(...)
Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute.
  fetch_row(maxrows, how)
The rows are formatted according to how:
  field_flags(...)
Returns a tuple of field flags, one for each column in the result.
  num_fields(...)
Returns the number of fields (column) in the result.
  num_rows(...)
Returns the number of rows in the result set.
  row_seek(n)
row_seek(n) -- seek by offset n rows of result set
  row_tell()
row_tell() -- return the current row number of the result set.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
member_descriptor converter = <member 'converter' of '_mysql.result' objec...

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides:
__builtin__.object.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T

Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)

Returns:
repr(x)
Overrides:
__builtin__.object.__repr__

data_seek(n)

data_seek(n) -- seek to row n of result set

describe(...)

Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute.

fetch_row(maxrows=..., how=...)

The rows are formatted according to how:

0 -- tuples (default) 1 -- dictionaries, key=column or table.column if duplicated 2 -- dictionaries, key=table.column

field_flags(...)

Returns a tuple of field flags, one for each column in the result.

num_fields(...)

Returns the number of fields (column) in the result.

num_rows(...)

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)

row_seek(n) -- seek by offset n rows of result set

row_tell()

row_tell() -- return the current row number of the result set.


Class Variable Details

converter

Type:
member_descriptor
Value:
<member 'converter' of '_mysql.result' objects>                        

Generated by Epydoc 2.1 on Sat Mar 3 21:14:16 2007 http://epydoc.sf.net