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

Module PEP249

Provides classes modeling database interfaces following PEP 249. See https://www.python.org/dev/peps/pep-0249/.

Import path

import semmle.python.frameworks.PEP249

Predicates

connect

Gets a reference to the connect function of a module that implements PEP 249.

execute

Gets a reference to the execute method on a cursor (or on a connection).

Classes

AsyncDatabaseConnection

An API graph node representing a asyncio database connection (after being awaited).

AsyncDatabaseCursor

An API graph node representing a asyncio database cursor (after being awaited).

AsyncPEP249ModuleApiNode

An API graph node representing a module that implements PEP 249 using asyncio.

DatabaseConnection

An API graph node representing a database connection.

DatabaseCursor

An API graph node representing a database cursor.

PEP249ModuleApiNode

An API graph node representing a module that implements PEP 249.

Modules

Connection

Provides models for database connections (following PEP 249).

Cursor

Provides models for database cursors (following PEP 249).