Create a cursor on which queries may be performed. The optional cursorclass parameter is used to create the Cursor. By default, self.cursorclass=cursors.Cursor is used.
(self, cursorclass=None)
| 271 | _mysql.connection.autocommit(self, on) |
| 272 | |
| 273 | def cursor(self, cursorclass=None): |
| 274 | """ |
| 275 | Create a cursor on which queries may be performed. The |
| 276 | optional cursorclass parameter is used to create the |
| 277 | Cursor. By default, self.cursorclass=cursors.Cursor is |
| 278 | used. |
| 279 | """ |
| 280 | return (cursorclass or self.cursorclass)(self) |
| 281 | |
| 282 | def query(self, query): |
| 283 | # Since _mysql releases GIL while querying, we need immutable buffer. |
no outgoing calls