From: Mike Bayer Date: Sun, 8 Jun 2025 19:29:16 +0000 (-0400) Subject: document toml_file argument X-Git-Tag: rel_1_16_2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=511dd0379a086c22860bdfbc4e422cfca36dd1d5;p=thirdparty%2Fsqlalchemy%2Falembic.git document toml_file argument Change-Id: I3edf7f32d818ffa4f6cf08d15a2d1e4f20137ff2 --- diff --git a/alembic/config.py b/alembic/config.py index 11375788..c1196657 100644 --- a/alembic/config.py +++ b/alembic/config.py @@ -75,7 +75,20 @@ class Config: alembic_cfg.attributes['connection'] = connection command.upgrade(alembic_cfg, "head") - :param file\_: name of the .ini file to open. + :param file\_: name of the .ini file to open if an ``alembic.ini`` is + to be used. This should refer to the ``alembic.ini`` file, either as + a filename or a full path to the file. This filename if passed must refer + to an **ini file in ConfigParser format** only. + + :param toml\_file: name of the pyproject.toml file to open if a + ``pyproject.toml`` file is to be used. This should refer to the + ``pyproject.toml`` file, either as a filename or a full path to the file. + This file must be in toml format. Both :paramref:`.Config.file\_` and + :paramref:`.Config.toml\_file` may be passed simultaneously, or + exclusively. + + .. versionadded:: 1.16.0 + :param ini_section: name of the main Alembic section within the .ini file :param output_buffer: optional file-like input buffer which