![]() MySQLError = Exception related to operation with MySQL. InternalError = Exception raised when the database encounters an internalĮrror, e.g. the cursor is not valid anymore, the transaction is Interface rather than the database itself. InterfaceError = Exception raised for errors that are related to the database Is affected, e.g. a foreign key check fails, duplicate key,Įtc. IntegrityError = Exception raised when the relational integrity of the database Error = Exception that is the base class of all other error exceptions DatabaseError = Exception raised for errors that are related to theĭatabase. Processed data like division by zero, numeric value out of range,Įtc. setoutputsizes(self, *args) Does nothing, required by DB API.ĭataError = Exception raised for errors that are due to problems with the setinputsizes(self, *args) Does nothing, required by DB API. Returns None if there are no more result sets. nextset(self) Advance to the next result set. REPLACE. Otherwise it is equivalent to looping over args withĮxecute(). This method improves performance on multiple-row INSERT and Returns long integer rows affected, if any. Sequence of sequences or mappings, parameters to use with Returns long integer rows affected, if any executemany(self, query, args) Execute a multi-row query. Parameter placeholder in the query. If a mapping is used, Note: If args is a sequence, then %s must be used as the Query - string, query to execute on serverĪrgs - optional sequence or mapping, parameters to use with query. execute(self, query, args =None) Execute a query. close(self) Close the cursor. No further queries will be possible. To advance through all result sets otherwise you may getĭisconnected. Result sets generated by the procedure. This is non-standardīehavior with respect to the DB-API. Be sure to use nextset() Itself creates an empty result set. This appears after any ![]() Procname - string, name of procedure to execute on serverĪrgs - Sequence of parameters to use with procedureĬompatibility warning: execute() to get any OUT or INOUT values.Ĭompatibility warning: The act of calling a stored procedure ![]() _del_(self) _init_(self, connection) _iter_(self) callproc(self, procname, args =()) Execute stored procedure procname with args See MySQL documentation (C API)įor more information. Non-standard extension.ĭefault number of rows fetchmany() will fetch In the result set. Values correspond to those in Tuple of column flags for last query, one entry per column The last executed query see PEP-249 for details. SSDictCursor( CursorUseResultMixIn, CursorDictRowsMixIn, BaseCursor)Ī base for Cursor classes. Useful attributes:Ī tuple of DB API 7-tuples describing the columns in _builtin_.object BaseCursor CursorDictRowsMixIn CursorOldDictRowsMixIn CursorStoreResultMixIn Cursor( CursorStoreResultMixIn, CursorTupleRowsMixIn, BaseCursor)ĭictCursor( CursorStoreResultMixIn, CursorDictRowsMixIn, BaseCursor)ĬursorTupleRowsMixIn CursorUseResultMixIn SSCursor( CursorUseResultMixIn, CursorTupleRowsMixIn, BaseCursor) This module implements Cursors of various types for MySQLdb. By
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |