Load table definitions from the database by calling ``metadata.reflect()`` for all or some bind keys. This requires that a Flask application context is active. :param bind_key: A bind key or list of keys to reflect the tables from. Defaults to all binds.
(self, bind_key: str | None | list[str | None] = "__all__")
| 917 | self._call_for_binds(bind_key, "drop_all") |
| 918 | |
| 919 | def reflect(self, bind_key: str | None | list[str | None] = "__all__") -> None: |
| 920 | """Load table definitions from the database by calling ``metadata.reflect()`` |
| 921 | for all or some bind keys. |
| 922 | |
| 923 | This requires that a Flask application context is active. |
| 924 | |
| 925 | :param bind_key: A bind key or list of keys to reflect the tables from. Defaults |
| 926 | to all binds. |
| 927 | |
| 928 | .. versionchanged:: 3.0 |
| 929 | Renamed the ``bind`` parameter to ``bind_key``. Removed the ``app`` |
| 930 | parameter. |
| 931 | |
| 932 | .. versionchanged:: 0.12 |
| 933 | Added the ``bind`` and ``app`` parameters. |
| 934 | """ |
| 935 | self._call_for_binds(bind_key, "reflect") |
| 936 | |
| 937 | def _set_rel_query(self, kwargs: dict[str, t.Any]) -> None: |
| 938 | """Apply the extension's :attr:`Query` class as the default for relationships |