| 100 | |
| 101 | |
| 102 | class QueryContext: |
| 103 | __slots__ = ( |
| 104 | "top_level_context", |
| 105 | "compile_state", |
| 106 | "query", |
| 107 | "user_passed_query", |
| 108 | "params", |
| 109 | "load_options", |
| 110 | "bind_arguments", |
| 111 | "execution_options", |
| 112 | "session", |
| 113 | "autoflush", |
| 114 | "populate_existing", |
| 115 | "invoke_all_eagers", |
| 116 | "version_check", |
| 117 | "refresh_state", |
| 118 | "create_eager_joins", |
| 119 | "propagated_loader_options", |
| 120 | "attributes", |
| 121 | "runid", |
| 122 | "partials", |
| 123 | "post_load_paths", |
| 124 | "identity_token", |
| 125 | "yield_per", |
| 126 | "loaders_require_buffering", |
| 127 | "loaders_require_uniquing", |
| 128 | ) |
| 129 | |
| 130 | runid: int |
| 131 | post_load_paths: Dict[PathRegistry, PostLoad] |
| 132 | compile_state: ORMCompileState |
| 133 | |
| 134 | class default_load_options(Options): |
| 135 | _only_return_tuples = False |
| 136 | _populate_existing = False |
| 137 | _version_check = False |
| 138 | _invoke_all_eagers = True |
| 139 | _autoflush = True |
| 140 | _identity_token = None |
| 141 | _yield_per = None |
| 142 | _refresh_state = None |
| 143 | _lazy_loaded_from = None |
| 144 | _legacy_uniquing = False |
| 145 | _sa_top_level_orm_context = None |
| 146 | _is_user_refresh = False |
| 147 | |
| 148 | def __init__( |
| 149 | self, |
| 150 | compile_state: CompileState, |
| 151 | statement: Union[Select[Any], FromStatement[Any], UpdateBase], |
| 152 | user_passed_query: Union[ |
| 153 | Select[Any], |
| 154 | FromStatement[Any], |
| 155 | UpdateBase, |
| 156 | ], |
| 157 | params: _CoreSingleExecuteParams, |
| 158 | session: Session, |
| 159 | load_options: Union[ |
no outgoing calls
no test coverage detected