main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from typing import Any
from typing import Callable
from typing import Collection
from typing import ContextManager
from typing import Dict
from typing import Iterable
from typing import List
@@ -13,14 +14,11 @@ from typing import Mapping
from typing import MutableMapping
from typing import Optional
from typing import overload
from typing import Sequence
from typing import TextIO
from typing import Tuple
from typing import TYPE_CHECKING
from typing import Union
from typing_extensions import ContextManager
if TYPE_CHECKING:
from sqlalchemy.engine.base import Connection
from sqlalchemy.engine.url import URL
@@ -41,9 +39,7 @@ if TYPE_CHECKING:
### end imports ###
def begin_transaction() -> (
Union[_ProxyTransaction, ContextManager[None, Optional[bool]]]
):
def begin_transaction() -> Union[_ProxyTransaction, ContextManager[None]]:
"""Return a context manager that will
enclose an operation within a "transaction",
as defined by the environment's offline
@@ -101,7 +97,7 @@ def configure(
tag: Optional[str] = None,
template_args: Optional[Dict[str, Any]] = None,
render_as_batch: bool = False,
target_metadata: Union[MetaData, Sequence[MetaData], None] = None,
target_metadata: Optional[MetaData] = None,
include_name: Optional[
Callable[
[
@@ -163,8 +159,8 @@ def configure(
MigrationContext,
Column[Any],
Column[Any],
TypeEngine[Any],
TypeEngine[Any],
TypeEngine,
TypeEngine,
],
Optional[bool],
],
@@ -639,8 +635,7 @@ def configure(
"""
def execute(
sql: Union[Executable, str],
execution_options: Optional[Dict[str, Any]] = None,
sql: Union[Executable, str], execution_options: Optional[dict] = None
) -> None:
"""Execute the given SQL using the current change context.
@@ -763,11 +758,7 @@ def get_x_argument(
The return value is a list, returned directly from the ``argparse``
structure. If ``as_dictionary=True`` is passed, the ``x`` arguments
are parsed using ``key=value`` format into a dictionary that is
then returned. If there is no ``=`` in the argument, value is an empty
string.
.. versionchanged:: 1.13.1 Support ``as_dictionary=True`` when
arguments are passed without the ``=`` symbol.
then returned.
For example, to support passing a database URL on the command line,
the standard ``env.py`` script can be modified like this::
@@ -809,7 +800,7 @@ def is_offline_mode() -> bool:
"""
def is_transactional_ddl() -> bool:
def is_transactional_ddl():
"""Return True if the context is configured to expect a
transactional DDL capable backend.