Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « connection »

Méthode mariadb.connection.cursor

Signature de la méthode cursor

Description

cursor.__doc__

Returns a new cursor object for the current connection.

By default the result will be unbuffered, which means before executing another
statement with the same connection the entire result set must be fetched.

fetch methods of the cursor class by default return result set values as a tuple, unless
named_tuple or dictionary was specified. The latter one exists for compatibility reasons
and should be avoided due to possible inconsistency in case two or more fields in a
result sets have the same name.

If cursor_type is set to mariadb.CURSOR_TYPE_READ_ONLY, a cursor is opened for the
statement invoked with cursors execute() method.If binary is set to True, cursor will always be executed using the binary protocol.