Module Import alias Import alias identifier ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return Call NameLoad decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Str Assert CompareIn Str Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Str Assert CompareIn Str Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Str Assert CompareIn Str Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Str Assert CompareIn Str Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list
N/A N/A pytest N/A sqlalchemy sa sqlalchemy.ext.declarative declarative_base nplusone.core signals N/A nplusone.ext.sqlalchemy tests utils N/A Base N/A declarative_base N/A models N/A N/A utils make_models Base session N/A N/A N/A N/A N/A engine N/A N/A sa create_engine sqlite:///:memory: N/A Session N/A N/A N/A sa orm sessionmaker bind engine N/A N/A N/A N/A Base metadata create_all bind engine N/A N/A Session N/A N/A N/A pytest fixture objects N/A N/A session N/A N/A N/A hobby N/A N/A models Hobby N/A address N/A N/A models Address N/A user N/A N/A models User addresses N/A address hobbies N/A hobby N/A N/A N/A session add user N/A N/A N/A session commit N/A N/A N/A session close N/A N/A N/A pytest fixture TestManyToOne N/A N/A test_many_to_one N/A N/A self session objects calls N/A N/A N/A users N/A N/A N/A N/A session query N/A models User all N/A N/A N/A users N/A 0 addresses N/A N/A N/A len calls 1 N/A call N/A calls N/A 0 N/A N/A N/A call objects N/A N/A models User User:1 addresses N/A N/A users[0].addresses N/A N/A join N/A N/A call frame N/A 4 N/A test_many_to_one_ignore N/A N/A self session objects calls N/A N/A N/A users N/A N/A N/A N/A session query N/A models User all N/A N/A N/A signals ignore N/A signals lazy_load N/A N/A N/A N/A users N/A 0 addresses N/A N/A N/A len calls 0 N/A test_many_to_one_subquery N/A N/A self session objects calls N/A N/A N/A users N/A N/A N/A N/A N/A N/A session query N/A models User options N/A N/A N/A sa orm subqueryload addresses all N/A N/A N/A users N/A 0 addresses N/A N/A N/A len calls 0 N/A test_many_to_one_joined N/A N/A self session objects calls N/A N/A N/A users N/A N/A N/A N/A N/A N/A session query N/A models User options N/A N/A N/A sa orm joinedload addresses all N/A N/A N/A users N/A 0 addresses N/A N/A N/A len calls 0 N/A test_many_to_one_reverse N/A N/A self session objects calls N/A N/A N/A addresses N/A N/A N/A N/A session query N/A models Address all N/A N/A N/A addresses N/A 0 user N/A N/A N/A len calls 1 N/A call N/A calls N/A 0 N/A N/A N/A call objects N/A N/A models Address Address:1 user N/A N/A addresses[0].user N/A N/A join N/A N/A call frame N/A 4 N/A test_many_to_one_reverse_subquery N/A N/A self session objects calls N/A N/A N/A addresses N/A N/A N/A N/A N/A N/A session query N/A models Address options N/A N/A N/A sa orm subqueryload user all N/A N/A N/A addresses N/A 0 user N/A N/A N/A len calls 0 N/A test_many_to_one_reverse_joined N/A N/A self session objects calls N/A N/A N/A address N/A N/A N/A N/A N/A N/A session query N/A models Address options N/A N/A N/A sa orm joinedload user first N/A N/A address user N/A N/A N/A len calls 0 N/A N/A TestManyToMany N/A N/A test_many_to_many N/A N/A self session objects calls N/A N/A N/A users N/A N/A N/A N/A session query N/A models User all N/A N/A N/A users N/A 0 hobbies N/A N/A N/A len calls 1 N/A call N/A calls N/A 0 N/A N/A N/A call objects N/A N/A models User User:1 hobbies N/A N/A users[0].hobbies N/A N/A join N/A N/A call frame N/A 4 N/A test_many_to_many_subquery N/A N/A self session objects calls N/A N/A N/A user N/A N/A N/A N/A N/A N/A session query N/A models User options N/A N/A N/A sa orm subqueryload hobbies first N/A N/A user hobbies N/A N/A N/A len calls 0 N/A test_many_to_many_joined N/A N/A self session objects calls N/A N/A N/A user N/A N/A N/A N/A N/A N/A session query N/A models User options N/A N/A N/A sa orm joinedload hobbies first N/A N/A user hobbies N/A N/A N/A len calls 0 N/A test_many_to_many_reverse N/A N/A self session objects calls N/A N/A N/A hobbies N/A N/A N/A N/A session query N/A models Hobby all N/A N/A N/A hobbies N/A 0 users N/A N/A N/A len calls 1 N/A call N/A calls N/A 0 N/A N/A N/A call objects N/A N/A models Hobby Hobby:1 users N/A N/A hobbies[0].users N/A N/A join N/A N/A call frame N/A 4 N/A test_many_to_many_reverse_subquery N/A N/A self session objects calls N/A N/A N/A hobby N/A N/A N/A N/A N/A N/A session query N/A models Hobby options N/A N/A N/A sa orm subqueryload users first N/A N/A hobby users N/A N/A N/A len calls 0 N/A test_many_to_many_reverse_joined N/A N/A self session objects calls N/A N/A N/A hobby N/A N/A N/A N/A N/A N/A session query N/A models Hobby options N/A N/A N/A sa orm joinedload users first N/A N/A hobby users N/A N/A N/A len calls 0 N/A N/A test_non_orm_query N/A N/A session objects lazy_listener N/A N/A N/A N/A N/A N/A N/A session query N/A N/A models Address id all N/A