summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/_typing.py
blob: 7d8b9ee5c4c6efc23b9f549a9e2fdbef0227e58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from __future__ import annotations

from typing import Any
from typing import Mapping
from typing import Sequence
from typing import Type
from typing import Union

from . import roles
from ..inspection import Inspectable
from ..util import immutabledict

_SingleExecuteParams = Mapping[str, Any]
_MultiExecuteParams = Sequence[_SingleExecuteParams]
_ExecuteParams = Union[_SingleExecuteParams, _MultiExecuteParams]
_ExecuteOptions = Mapping[str, Any]
_ImmutableExecuteOptions = immutabledict[str, Any]
_ColumnsClauseElement = Union[
    roles.ColumnsClauseRole, Type, Inspectable[roles.HasClauseElement]
]
_FromClauseElement = Union[
    roles.FromClauseRole, Type, Inspectable[roles.HasFromClauseElement]
]