CodeQL library for Python
codeql/python-all 0.11.14 (changelog, source)
Search

Module PEP249::Cursor

Provides models for database cursors (following PEP 249).

These are returned by the cursor method on a database connection. See https://www.python.org/dev/peps/pep-0249/#cursor.

Import path

import semmle.python.frameworks.PEP249

Predicates

instance

Gets a reference to a database cursor.

methodRef

Gets a reference to the cursor method on a database connection.

Classes

InstanceSource

A source of database cursors (following PEP 249), extend this class to model new instances.