Previous topic

asyncqlio.orm.session

Next topic

asyncqlio.orm.operators

This Page

asyncqlio.orm.inspection

Inspection module - contains utilities for inspecting Table objects and Row objects.

Functions

get_pk(row[, as_tuple]) Gets the primary key for a Table row.
get_row_session(row) Gets the Session associated with a TableRow.
asyncqlio.orm.inspection.get_row_session(row)[source]

Gets the Session associated with a TableRow.

Parameters:row (Table) – The Table instance to inspect.
Return type:Session
asyncqlio.orm.inspection.get_pk(row, as_tuple=True)[source]

Gets the primary key for a Table row.

Parameters:
  • row (Table) – The Table instance to extract the PK from.
  • as_tuple (bool) – Should this PK always be returned as a tuple?