Remove upstreamed SQLAlchemy stubs (#276)
This commit is contained in:
Родитель
3190e9dc4f
Коммит
676f45e267
|
@ -50,6 +50,7 @@ and are no longer maintained here:
|
|||
- pywin32 (pythonwin, win32 and win32com packages)
|
||||
- retry
|
||||
- slugify
|
||||
- SQLAlchemy (see <https://pypi.org/project/types-SQLAlchemy/> for SQLAlchemy 1.4; 2.0.0 and above include type annotations)
|
||||
|
||||
# Trademarks
|
||||
|
||||
|
|
|
@ -1,202 +0,0 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
|
@ -1,142 +0,0 @@
|
|||
from .sql import (
|
||||
alias as alias,
|
||||
all_ as all_,
|
||||
and_ as and_,
|
||||
any_ as any_,
|
||||
asc as asc,
|
||||
between as between,
|
||||
bindparam as bindparam,
|
||||
case as case,
|
||||
cast as cast,
|
||||
collate as collate,
|
||||
column as column,
|
||||
delete as delete,
|
||||
desc as desc,
|
||||
distinct as distinct,
|
||||
except_ as except_,
|
||||
except_all as except_all,
|
||||
exists as exists,
|
||||
extract as extract,
|
||||
false as false,
|
||||
func as func,
|
||||
funcfilter as funcfilter,
|
||||
insert as insert,
|
||||
intersect as intersect,
|
||||
intersect_all as intersect_all,
|
||||
join as join,
|
||||
lateral as lateral,
|
||||
literal as literal,
|
||||
literal_column as literal_column,
|
||||
modifier as modifier,
|
||||
not_ as not_,
|
||||
null as null,
|
||||
or_ as or_,
|
||||
outerjoin as outerjoin,
|
||||
outparam as outparam,
|
||||
over as over,
|
||||
select as select,
|
||||
subquery as subquery,
|
||||
table as table,
|
||||
tablesample as tablesample,
|
||||
text as text,
|
||||
true as true,
|
||||
tuple_ as tuple_,
|
||||
type_coerce as type_coerce,
|
||||
union as union,
|
||||
union_all as union_all,
|
||||
update as update,
|
||||
within_group as within_group
|
||||
)
|
||||
|
||||
from .types import (
|
||||
ARRAY as ARRAY,
|
||||
BIGINT as BIGINT,
|
||||
BINARY as BINARY,
|
||||
BLOB as BLOB,
|
||||
BOOLEAN as BOOLEAN,
|
||||
BigInteger as BigInteger,
|
||||
Binary as Binary,
|
||||
Boolean as Boolean,
|
||||
CHAR as CHAR,
|
||||
CLOB as CLOB,
|
||||
DATE as DATE,
|
||||
DATETIME as DATETIME,
|
||||
DECIMAL as DECIMAL,
|
||||
Date as Date,
|
||||
DateTime as DateTime,
|
||||
Enum as Enum,
|
||||
FLOAT as FLOAT,
|
||||
Float as Float,
|
||||
INT as INT,
|
||||
INTEGER as INTEGER,
|
||||
Integer as Integer,
|
||||
Interval as Interval,
|
||||
JSON as JSON,
|
||||
LargeBinary as LargeBinary,
|
||||
NCHAR as NCHAR,
|
||||
NVARCHAR as NVARCHAR,
|
||||
NUMERIC as NUMERIC,
|
||||
Numeric as Numeric,
|
||||
PickleType as PickleType,
|
||||
REAL as REAL,
|
||||
SMALLINT as SMALLINT,
|
||||
SmallInteger as SmallInteger,
|
||||
String as String,
|
||||
TEXT as TEXT,
|
||||
TIME as TIME,
|
||||
TIMESTAMP as TIMESTAMP,
|
||||
Text as Text,
|
||||
Time as Time,
|
||||
TypeDecorator as TypeDecorator,
|
||||
Unicode as Unicode,
|
||||
UnicodeText as UnicodeText,
|
||||
VARBINARY as VARBINARY,
|
||||
VARCHAR as VARCHAR
|
||||
)
|
||||
|
||||
from .schema import (
|
||||
CheckConstraint as CheckConstraint,
|
||||
Column as Column,
|
||||
ColumnDefault as ColumnDefault,
|
||||
Constraint as Constraint,
|
||||
DefaultClause as DefaultClause,
|
||||
FetchedValue as FetchedValue,
|
||||
ForeignKey as ForeignKey,
|
||||
ForeignKeyConstraint as ForeignKeyConstraint,
|
||||
Index as Index,
|
||||
MetaData as MetaData,
|
||||
PassiveDefault as PassiveDefault,
|
||||
PrimaryKeyConstraint as PrimaryKeyConstraint,
|
||||
Sequence as Sequence,
|
||||
Table as Table,
|
||||
ThreadLocalMetaData as ThreadLocalMetaData,
|
||||
UniqueConstraint as UniqueConstraint,
|
||||
DDL as DDL,
|
||||
BLANK_SCHEMA as BLANK_SCHEMA
|
||||
)
|
||||
|
||||
from .inspection import inspect as inspect
|
||||
|
||||
from .engine import (
|
||||
create_engine as create_engine,
|
||||
engine_from_config as engine_from_config
|
||||
)
|
||||
|
||||
from . import connectors as connectors
|
||||
from . import databases as databases
|
||||
from . import dialects as dialects
|
||||
from . import engine as engine
|
||||
from . import event as event
|
||||
from . import ext as ext
|
||||
from . import orm as orm
|
||||
from . import sql as sql
|
||||
from . import util as util
|
||||
from . import events as events
|
||||
from . import exc as exc
|
||||
from . import inspection as inspection
|
||||
from . import interfaces as interfaces
|
||||
from . import log as log
|
||||
from . import pool as pool
|
||||
from . import processors as processors
|
||||
from . import schema as schema
|
||||
from . import types as types
|
|
@ -1 +0,0 @@
|
|||
80f89322c3a58c1a8c19588b17869c5f49a1e72b
|
|
@ -1,5 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
class Connector(object): ...
|
||||
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,8 +0,0 @@
|
|||
from ..dialects.sqlite import base as sqlite
|
||||
from ..dialects.postgresql import base as postgresql
|
||||
from ..dialects.postgresql import base as postgres
|
||||
from ..dialects.mysql import base as mysql
|
||||
from ..dialects.oracle import base as oracle
|
||||
from ..dialects.firebird import base as firebird
|
||||
from ..dialects.mssql import base as mssql
|
||||
from ..dialects.sybase import base as sybase
|
|
@ -1,14 +0,0 @@
|
|||
from . import (
|
||||
firebird as firebird,
|
||||
mssql as mssql,
|
||||
mysql as mysql,
|
||||
oracle as oracle,
|
||||
postgresql as postgresql,
|
||||
sqlite as sqlite,
|
||||
sybase as sybase
|
||||
)
|
||||
|
||||
from .. import util
|
||||
|
||||
registry: util.PluginLoader
|
||||
plugins: util.PluginLoader
|
|
@ -1,3 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,33 +0,0 @@
|
|||
from .base import (
|
||||
BIGINT as BIGINT,
|
||||
BINARY as BINARY,
|
||||
BIT as BIT,
|
||||
CHAR as CHAR,
|
||||
DATE as DATE,
|
||||
DATETIME as DATETIME,
|
||||
DATETIME2 as DATETIME2,
|
||||
DATETIMEOFFSET as DATETIMEOFFSET,
|
||||
DECIMAL as DECIMAL,
|
||||
FLOAT as FLOAT,
|
||||
IMAGE as IMAGE,
|
||||
INTEGER as INTEGER,
|
||||
MONEY as MONEY,
|
||||
NCHAR as NCHAR,
|
||||
NTEXT as NTEXT,
|
||||
NVARCHAR as NVARCHAR,
|
||||
NUMERIC as NUMERIC,
|
||||
SMALLDATETIME as SMALLDATETIME,
|
||||
SMALLINT as SMALLINT,
|
||||
SMALLMONEY as SMALLMONEY,
|
||||
REAL as REAL,
|
||||
ROWVERSION as ROWVERSION,
|
||||
SQL_VARIANT as SQL_VARIANT,
|
||||
TEXT as TEXT,
|
||||
TIME as TIME,
|
||||
TIMESTAMP as TIMESTAMP,
|
||||
TINYINT as TINYINT,
|
||||
UNIQUEIDENTIFIER as UNIQUEIDENTIFIER,
|
||||
VARBINARY as VARBINARY,
|
||||
VARCHAR as VARCHAR,
|
||||
XML as XML
|
||||
)
|
|
@ -1,62 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ... import types as _sqltypes
|
||||
from ...types import INTEGER as INTEGER, BIGINT as BIGINT, SMALLINT as SMALLINT, DECIMAL as DECIMAL, NUMERIC as NUMERIC, \
|
||||
FLOAT as FLOAT, DATETIME as DATETIME, DATE as DATE, BINARY as BINARY, \
|
||||
TEXT as TEXT, VARCHAR as VARCHAR, NVARCHAR as NVARCHAR, CHAR as CHAR, NCHAR as NCHAR
|
||||
|
||||
class REAL(_sqltypes.REAL):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class TINYINT(_sqltypes.Integer):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class TIME(_sqltypes.TIME):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class _DateTimeBase(object): ...
|
||||
|
||||
class SMALLDATETIME(_DateTimeBase, _sqltypes.DateTime):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class DATETIME2(_DateTimeBase, _sqltypes.DateTime):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class DATETIMEOFFSET(_sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
def __init__(self, precision: Optional[int] = ..., **kwargs: Any) -> None: ...
|
||||
|
||||
class TIMESTAMP(_sqltypes._Binary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
def __init__(self, convert_int: bool = ...) -> None: ...
|
||||
|
||||
class ROWVERSION(TIMESTAMP):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class NTEXT(_sqltypes.UnicodeText):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class VARBINARY(_sqltypes.VARBINARY, _sqltypes.LargeBinary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class IMAGE(_sqltypes.LargeBinary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class XML(_sqltypes.Text):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class BIT(_sqltypes.TypeEngine[int]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class MONEY(_sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class SMALLMONEY(_sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class UNIQUEIDENTIFIER(_sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class SQL_VARIANT(_sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
|
@ -1,46 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
from .base import (
|
||||
BIGINT as BIGINT,
|
||||
BINARY as BINARY,
|
||||
BIT as BIT,
|
||||
BLOB as BLOB,
|
||||
BOOLEAN as BOOLEAN,
|
||||
CHAR as CHAR,
|
||||
DATE as DATE,
|
||||
DATETIME as DATETIME,
|
||||
DECIMAL as DECIMAL,
|
||||
DOUBLE as DOUBLE,
|
||||
ENUM as ENUM,
|
||||
DECIMAL as DECIMAL,
|
||||
FLOAT as FLOAT,
|
||||
INTEGER as INTEGER,
|
||||
INTEGER as INTEGER,
|
||||
JSON as JSON,
|
||||
LONGBLOB as LONGBLOB,
|
||||
LONGTEXT as LONGTEXT,
|
||||
MEDIUMBLOB as MEDIUMBLOB,
|
||||
MEDIUMINT as MEDIUMINT,
|
||||
MEDIUMTEXT as MEDIUMTEXT,
|
||||
NCHAR as NCHAR,
|
||||
NVARCHAR as NVARCHAR,
|
||||
NUMERIC as NUMERIC,
|
||||
SET as SET,
|
||||
SMALLINT as SMALLINT,
|
||||
REAL as REAL,
|
||||
TEXT as TEXT,
|
||||
TIME as TIME,
|
||||
TIMESTAMP as TIMESTAMP,
|
||||
TINYBLOB as TINYBLOB,
|
||||
TINYINT as TINYINT,
|
||||
TINYTEXT as TINYTEXT,
|
||||
VARBINARY as VARBINARY,
|
||||
VARCHAR as VARCHAR,
|
||||
YEAR as YEAR,
|
||||
)
|
||||
|
||||
from .mysqldb import dialect as dialect
|
||||
|
||||
# This should stay here until we are sure we added all submodules,
|
||||
# to avoid false positives.
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,197 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.base (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
from sqlalchemy.sql import compiler
|
||||
from ... import schema as sa_schema
|
||||
from ...sql import compiler as compiler, elements as elements
|
||||
from array import array as _array
|
||||
from ...engine import reflection as reflection
|
||||
from ...engine import default as default
|
||||
from ... import types as sqltypes
|
||||
from ...util import topological as topological
|
||||
from ...types import DATE as DATE, BOOLEAN as BOOLEAN, BLOB as BLOB, BINARY as BINARY, VARBINARY as VARBINARY
|
||||
from . import reflection as _reflection
|
||||
from .types import (
|
||||
BIGINT as BIGINT, BIT as BIT, CHAR as CHAR, DECIMAL as DECIMAL, DATETIME as DATETIME,
|
||||
DOUBLE as DOUBLE, FLOAT as FLOAT, INTEGER as INTEGER, LONGBLOB as LONGBLOB,
|
||||
LONGTEXT as LONGTEXT, MEDIUMBLOB as MEDIUMBLOB, MEDIUMINT as MEDIUMINT,
|
||||
MEDIUMTEXT as MEDIUMTEXT, NCHAR as NCHAR, NUMERIC as NUMERIC, NVARCHAR as NVARCHAR,
|
||||
REAL as REAL, SMALLINT as SMALLINT, TEXT as TEXT, TIME as TIME, TIMESTAMP as TIMESTAMP,
|
||||
TINYBLOB as TINYBLOB, TINYINT as TINYINT, TINYTEXT as TINYTEXT,
|
||||
VARCHAR as VARCHAR, YEAR as YEAR
|
||||
)
|
||||
from .types import (
|
||||
_StringType as _StringType, _IntegerType as _IntegerType,
|
||||
_NumericType as _NumericType, _FloatType as _FloatType, _MatchType as _MatchType
|
||||
)
|
||||
from .enumerated import ENUM as ENUM, SET as SET
|
||||
from .json import JSON as JSON, JSONIndexType as JSONIndexType, JSONPathType as JSONPathType
|
||||
|
||||
RESERVED_WORDS: Any = ...
|
||||
AUTOCOMMIT_RE: Any = ...
|
||||
SET_RE: Any = ...
|
||||
MSTime: Any = ...
|
||||
MSSet: Any = ...
|
||||
MSEnum: Any = ...
|
||||
MSLongBlob: Any = ...
|
||||
MSMediumBlob: Any = ...
|
||||
MSTinyBlob: Any = ...
|
||||
MSBlob: Any = ...
|
||||
MSBinary: Any = ...
|
||||
MSVarBinary: Any = ...
|
||||
MSNChar: Any = ...
|
||||
MSNVarChar: Any = ...
|
||||
MSChar: Any = ...
|
||||
MSString: Any = ...
|
||||
MSLongText: Any = ...
|
||||
MSMediumText: Any = ...
|
||||
MSTinyText: Any = ...
|
||||
MSText: Any = ...
|
||||
MSYear: Any = ...
|
||||
MSTimeStamp: Any = ...
|
||||
MSBit: Any = ...
|
||||
MSSmallInteger: Any = ...
|
||||
MSTinyInteger: Any = ...
|
||||
MSMediumInteger: Any = ...
|
||||
MSBigInteger: Any = ...
|
||||
MSNumeric: Any = ...
|
||||
MSDecimal: Any = ...
|
||||
MSDouble: Any = ...
|
||||
MSReal: Any = ...
|
||||
MSFloat: Any = ...
|
||||
MSInteger: Any = ...
|
||||
colspecs: Any = ...
|
||||
ischema_names: Any = ...
|
||||
|
||||
class MySQLExecutionContext(default.DefaultExecutionContext):
|
||||
def should_autocommit_text(self, statement): ...
|
||||
def create_server_side_cursor(self): ...
|
||||
|
||||
class MySQLCompiler(compiler.SQLCompiler):
|
||||
render_table_with_column_in_update_from: bool = ...
|
||||
extract_map: Any = ...
|
||||
def visit_random_func(self, fn, **kw): ...
|
||||
def visit_utc_timestamp_func(self, fn, **kw): ...
|
||||
def visit_sysdate_func(self, fn, **kw): ...
|
||||
def visit_json_getitem_op_binary(self, binary, operator, **kw): ...
|
||||
def visit_json_path_getitem_op_binary(self, binary, operator, **kw): ...
|
||||
def visit_concat_op_binary(self, binary, operator, **kw): ...
|
||||
def visit_match_op_binary(self, binary, operator, **kw): ...
|
||||
def get_from_hint_text(self, table, text): ...
|
||||
def visit_typeclause(self, *args, **kw): ...
|
||||
def visit_cast(self, cast, **kw): ...
|
||||
def render_literal_value(self, value, type_): ...
|
||||
def visit_true(self, element, **kw): ...
|
||||
def visit_false(self, element, **kw): ...
|
||||
def get_select_precolumns(self, select, **kw): ...
|
||||
def visit_join(self, join, asfrom: bool = ..., **kwargs): ...
|
||||
def for_update_clause(self, select, **kw): ...
|
||||
def limit_clause(self, select, **kw): ...
|
||||
def update_limit_clause(self, update_stmt): ...
|
||||
def update_tables_clause(self, update_stmt, from_table, extra_froms, **kw): ...
|
||||
def update_from_clause(self, update_stmt, from_table, extra_froms, from_hints, **kw): ...
|
||||
|
||||
class MySQLDDLCompiler(compiler.DDLCompiler):
|
||||
def get_column_specification(self, column, **kw): ...
|
||||
def post_create_table(self, table): ...
|
||||
def visit_create_index(self, create): ...
|
||||
def visit_primary_key_constraint(self, constraint): ...
|
||||
def visit_drop_index(self, drop): ...
|
||||
def visit_drop_constraint(self, drop): ...
|
||||
def define_constraint_match(self, constraint): ...
|
||||
|
||||
class MySQLTypeCompiler(compiler.GenericTypeCompiler):
|
||||
def visit_NUMERIC(self, type_, **kw): ...
|
||||
def visit_DECIMAL(self, type_, **kw): ...
|
||||
def visit_DOUBLE(self, type_, **kw): ...
|
||||
def visit_REAL(self, type_, **kw): ...
|
||||
def visit_FLOAT(self, type_, **kw): ...
|
||||
def visit_INTEGER(self, type_, **kw): ...
|
||||
def visit_BIGINT(self, type_, **kw): ...
|
||||
def visit_MEDIUMINT(self, type_, **kw): ...
|
||||
def visit_TINYINT(self, type_, **kw): ...
|
||||
def visit_SMALLINT(self, type_, **kw): ...
|
||||
def visit_BIT(self, type_, **kw): ...
|
||||
def visit_DATETIME(self, type_, **kw): ...
|
||||
def visit_DATE(self, type_, **kw): ...
|
||||
def visit_TIME(self, type_, **kw): ...
|
||||
def visit_TIMESTAMP(self, type_, **kw): ...
|
||||
def visit_YEAR(self, type_, **kw): ...
|
||||
def visit_TEXT(self, type_, **kw): ...
|
||||
def visit_TINYTEXT(self, type_, **kw): ...
|
||||
def visit_MEDIUMTEXT(self, type_, **kw): ...
|
||||
def visit_LONGTEXT(self, type_, **kw): ...
|
||||
def visit_VARCHAR(self, type_, **kw): ...
|
||||
def visit_CHAR(self, type_, **kw): ...
|
||||
def visit_NVARCHAR(self, type_, **kw): ...
|
||||
def visit_NCHAR(self, type_, **kw): ...
|
||||
def visit_VARBINARY(self, type_, **kw): ...
|
||||
def visit_JSON(self, type_, **kw): ...
|
||||
def visit_large_binary(self, type_, **kw): ...
|
||||
def visit_enum(self, type_, **kw): ...
|
||||
def visit_BLOB(self, type_, **kw): ...
|
||||
def visit_TINYBLOB(self, type_, **kw): ...
|
||||
def visit_MEDIUMBLOB(self, type_, **kw): ...
|
||||
def visit_LONGBLOB(self, type_, **kw): ...
|
||||
def visit_ENUM(self, type_, **kw): ...
|
||||
def visit_SET(self, type_, **kw): ...
|
||||
def visit_BOOLEAN(self, type, **kw): ...
|
||||
|
||||
class MySQLIdentifierPreparer(compiler.IdentifierPreparer):
|
||||
reserved_words: Any = ...
|
||||
def __init__(self, dialect, server_ansiquotes: bool = ..., **kw) -> None: ...
|
||||
|
||||
class MySQLDialect(default.DefaultDialect):
|
||||
name: str = ...
|
||||
supports_alter: bool = ...
|
||||
supports_native_boolean: bool = ...
|
||||
max_identifier_length: int = ...
|
||||
max_index_name_length: int = ...
|
||||
supports_native_enum: bool = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
supports_multivalues_insert: bool = ...
|
||||
default_paramstyle: str = ...
|
||||
colspecs: Any = ...
|
||||
statement_compiler: Any = ...
|
||||
ddl_compiler: Any = ...
|
||||
type_compiler: Any = ...
|
||||
ischema_names: Any = ...
|
||||
preparer: Any = ...
|
||||
construct_arguments: Any = ...
|
||||
isolation_level: Any = ...
|
||||
def __init__(self, isolation_level: Optional[Any] = ..., json_serializer: Optional[Any] = ...,
|
||||
json_deserializer: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
def on_connect(self): ...
|
||||
def set_isolation_level(self, connection, level): ...
|
||||
def get_isolation_level(self, connection): ...
|
||||
def do_commit(self, dbapi_connection): ...
|
||||
def do_rollback(self, dbapi_connection): ...
|
||||
def do_begin_twophase(self, connection, xid): ...
|
||||
def do_prepare_twophase(self, connection, xid): ...
|
||||
def do_rollback_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def do_commit_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def do_recover_twophase(self, connection): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
def has_table(self, connection, table_name, schema: Optional[Any] = ...): ...
|
||||
identifier_preparer: Any = ...
|
||||
def initialize(self, connection): ...
|
||||
def get_schema_names(self, connection, **kw): ...
|
||||
def get_table_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_table_options(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_columns(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_pk_constraint(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_foreign_keys(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_indexes(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_unique_constraints(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_definition(self, connection, view_name, schema: Optional[Any] = ..., **kw): ...
|
||||
|
||||
class _DecodingRowProxy(object):
|
||||
rowproxy: Any = ...
|
||||
charset: Any = ...
|
||||
def __init__(self, rowproxy, charset) -> None: ...
|
||||
def __getitem__(self, index): ...
|
||||
def __getattr__(self, attr): ...
|
|
@ -1,23 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.cymysql (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .mysqldb import MySQLDialect_mysqldb as MySQLDialect_mysqldb
|
||||
from .base import BIT as BIT
|
||||
|
||||
class _cymysqlBIT(BIT):
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class MySQLDialect_cymysql(MySQLDialect_mysqldb):
|
||||
driver: str = ...
|
||||
description_encoding: Any = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
supports_unicode_statements: bool = ...
|
||||
colspecs: Any = ...
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,24 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.enumerated (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .types import _StringType as _StringType
|
||||
from ... import types as sqltypes
|
||||
|
||||
class _EnumeratedValues(_StringType): ...
|
||||
|
||||
class ENUM(sqltypes.Enum, _EnumeratedValues):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, *enums, **kw) -> None: ...
|
||||
def adapt(self, cls, **kw): ...
|
||||
|
||||
class SET(_EnumeratedValues):
|
||||
__visit_name__: str = ...
|
||||
retrieve_as_bitwise: Any = ...
|
||||
values: Any = ...
|
||||
def __init__(self, *values, **kw) -> None: ...
|
||||
def column_expression(self, colexpr): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def adapt(self, impltype, **kw): ...
|
|
@ -1,15 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.gaerdbms (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .mysqldb import MySQLDialect_mysqldb as MySQLDialect_mysqldb
|
||||
|
||||
class MySQLDialect_gaerdbms(MySQLDialect_mysqldb):
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
@classmethod
|
||||
def get_pool_class(cls, url): ...
|
||||
def create_connect_args(self, url): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,14 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.json (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from ... import types as sqltypes
|
||||
|
||||
class JSON(sqltypes.JSON): ...
|
||||
|
||||
class _FormatTypeMixin(object):
|
||||
def bind_processor(self, dialect): ...
|
||||
def literal_processor(self, dialect): ...
|
||||
|
||||
class JSONIndexType(_FormatTypeMixin, sqltypes.JSON.JSONIndexType): ...
|
||||
class JSONPathType(_FormatTypeMixin, sqltypes.JSON.JSONPathType): ...
|
|
@ -1,42 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.mysqlconnector (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .base import (
|
||||
MySQLDialect as MySQLDialect, MySQLExecutionContext as MySQLExecutionContext,
|
||||
MySQLCompiler as MySQLCompiler, MySQLIdentifierPreparer as MySQLIdentifierPreparer, BIT as BIT
|
||||
)
|
||||
|
||||
class MySQLExecutionContext_mysqlconnector(MySQLExecutionContext):
|
||||
def get_lastrowid(self): ...
|
||||
|
||||
class MySQLCompiler_mysqlconnector(MySQLCompiler):
|
||||
def visit_mod_binary(self, binary, operator, **kw): ...
|
||||
def post_process_text(self, text): ...
|
||||
def escape_literal_column(self, text): ...
|
||||
|
||||
class MySQLIdentifierPreparer_mysqlconnector(MySQLIdentifierPreparer): ...
|
||||
|
||||
class _myconnpyBIT(BIT):
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class MySQLDialect_mysqlconnector(MySQLDialect):
|
||||
driver: str = ...
|
||||
supports_unicode_binds: bool = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
supports_native_decimal: bool = ...
|
||||
default_paramstyle: str = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
statement_compiler: Any = ...
|
||||
preparer: Any = ...
|
||||
colspecs: Any = ...
|
||||
@property
|
||||
def supports_unicode_statements(self): ...
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
def create_connect_args(self, url): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,36 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .base import (
|
||||
MySQLDialect as MySQLDialect,
|
||||
MySQLExecutionContext as MySQLExecutionContext,
|
||||
MySQLCompiler as MySQLCompiler,
|
||||
MySQLIdentifierPreparer as MySQLIdentifierPreparer
|
||||
)
|
||||
class MySQLExecutionContext_mysqldb(MySQLExecutionContext):
|
||||
@property
|
||||
def rowcount(self) -> int: ...
|
||||
|
||||
class MySQLCompiler_mysqldb(MySQLCompiler):
|
||||
def visit_mod_binary(self, binary, operator, **kw): ...
|
||||
def post_process_text(self, text): ...
|
||||
|
||||
class MySQLIdentifierPreparer_mysqldb(MySQLIdentifierPreparer): ...
|
||||
|
||||
class MySQLDialect_mysqldb(MySQLDialect):
|
||||
driver: str = ...
|
||||
supports_unicode_statements: bool = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
supports_native_decimal: bool = ...
|
||||
default_paramstyle: str = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
statement_compiler: Any = ...
|
||||
preparer: Any = ...
|
||||
server_side_cursors: Any = ...
|
||||
def __init__(self, server_side_cursors: bool = ..., **kwargs) -> None: ...
|
||||
def supports_server_side_cursors(self): ...
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
def do_executemany(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def create_connect_args(self, url): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,42 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.oursql (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
from .base import BIT as BIT, MySQLDialect as MySQLDialect, MySQLExecutionContext as MySQLExecutionContext
|
||||
|
||||
class _oursqlBIT(BIT):
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class MySQLExecutionContext_oursql(MySQLExecutionContext):
|
||||
@property
|
||||
def plain_query(self): ...
|
||||
|
||||
class MySQLDialect_oursql(MySQLDialect):
|
||||
driver: str = ...
|
||||
supports_unicode_binds: bool = ...
|
||||
supports_unicode_statements: bool = ...
|
||||
supports_native_decimal: bool = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
colspecs: Any = ...
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
def do_execute(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def do_begin(self, connection): ...
|
||||
def do_begin_twophase(self, connection, xid): ...
|
||||
def do_prepare_twophase(self, connection, xid): ...
|
||||
def do_rollback_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def do_commit_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def has_table(self, connection, table_name, schema: Optional[Any] = ...): ...
|
||||
def get_table_options(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_columns(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_table_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_schema_names(self, connection, **kw): ...
|
||||
def initialize(self, connection): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
def create_connect_args(self, url): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,19 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.pymysql (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .mysqldb import MySQLDialect_mysqldb as MySQLDialect_mysqldb
|
||||
|
||||
class MySQLDialect_pymysql(MySQLDialect_mysqldb):
|
||||
driver: str = ...
|
||||
description_encoding: Any = ...
|
||||
supports_unicode_statements: bool = ...
|
||||
supports_unicode_binds: bool = ...
|
||||
server_side_cursors: Any = ...
|
||||
def __init__(self, server_side_cursors: bool = ..., **kwargs) -> None: ...
|
||||
def supports_server_side_cursors(self): ...
|
||||
@classmethod
|
||||
def dbapi(cls): ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,18 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.pyodbc (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .base import MySQLDialect as MySQLDialect, MySQLExecutionContext as MySQLExecutionContext
|
||||
from ...connectors.pyodbc import PyODBCConnector as PyODBCConnector
|
||||
|
||||
class MySQLExecutionContext_pyodbc(MySQLExecutionContext):
|
||||
def get_lastrowid(self): ...
|
||||
|
||||
class MySQLDialect_pyodbc(PyODBCConnector, MySQLDialect):
|
||||
supports_unicode_statements: bool = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
pyodbc_driver_name: str = ...
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,19 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.reflection (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class ReflectedState(object):
|
||||
columns: Any = ...
|
||||
table_options: Any = ...
|
||||
table_name: Any = ...
|
||||
keys: Any = ...
|
||||
constraints: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class MySQLTableDefinitionParser(object):
|
||||
dialect: Any = ...
|
||||
preparer: Any = ...
|
||||
def __init__(self, dialect, preparer) -> None: ...
|
||||
def parse(self, show_create, charset): ...
|
|
@ -1,147 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.types (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
from ... import types as sqltypes
|
||||
|
||||
class _NumericType(object):
|
||||
unsigned: Any = ...
|
||||
zerofill: Any = ...
|
||||
def __init__(self, unsigned: bool = ..., zerofill: bool = ..., **kw) -> None: ...
|
||||
|
||||
class _FloatType(_NumericType, sqltypes.Float):
|
||||
scale: Any = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
|
||||
class _IntegerType(_NumericType, sqltypes.Integer):
|
||||
display_width: Any = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class _StringType(sqltypes.String):
|
||||
charset: Any = ...
|
||||
ascii: Any = ...
|
||||
unicode: Any = ...
|
||||
binary: Any = ...
|
||||
national: Any = ...
|
||||
def __init__(self, charset: Optional[Any] = ..., collation: Optional[Any] = ...,
|
||||
ascii: bool = ..., binary: bool = ...,
|
||||
unicode: bool = ..., national: bool = ..., **kw) -> None: ...
|
||||
|
||||
class _MatchType(sqltypes.Float, sqltypes.MatchType): # type: ignore # Float has incompatible members with MatchType
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
class NUMERIC(_NumericType, sqltypes.NUMERIC):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
|
||||
class DECIMAL(_NumericType, sqltypes.DECIMAL):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
|
||||
class DOUBLE(_FloatType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
|
||||
class REAL(_FloatType, sqltypes.REAL):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
|
||||
class FLOAT(_FloatType, sqltypes.FLOAT):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, precision: Optional[Any] = ...,
|
||||
scale: Optional[Any] = ..., asdecimal: bool = ..., **kw) -> None: ...
|
||||
def bind_processor(self, dialect): ...
|
||||
|
||||
class INTEGER(_IntegerType, sqltypes.INTEGER):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class BIGINT(_IntegerType, sqltypes.BIGINT):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class MEDIUMINT(_IntegerType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class TINYINT(_IntegerType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class SMALLINT(_IntegerType, sqltypes.SMALLINT):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, display_width: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class BIT(sqltypes.TypeEngine):
|
||||
__visit_name__: str = ...
|
||||
length: Any = ...
|
||||
def __init__(self, length: Optional[Any] = ...) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIME(sqltypes.TIME):
|
||||
__visit_name__: str = ...
|
||||
fsp: Any = ...
|
||||
def __init__(self, timezone: bool = ..., fsp: Optional[Any] = ...) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIMESTAMP(sqltypes.TIMESTAMP):
|
||||
__visit_name__: str = ...
|
||||
fsp: Any = ...
|
||||
def __init__(self, timezone: bool = ..., fsp: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class DATETIME(sqltypes.DATETIME):
|
||||
__visit_name__: str = ...
|
||||
fsp: Any = ...
|
||||
def __init__(self, timezone: bool = ..., fsp: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class YEAR(sqltypes.TypeEngine):
|
||||
__visit_name__: str = ...
|
||||
display_width: Any = ...
|
||||
def __init__(self, display_width: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class TEXT(_StringType, sqltypes.TEXT):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, length: Optional[Any] = ..., **kw) -> None: ...
|
||||
|
||||
class TINYTEXT(_StringType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class MEDIUMTEXT(_StringType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class LONGTEXT(_StringType):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class VARCHAR(_StringType, sqltypes.VARCHAR):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, length: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
|
||||
class CHAR(_StringType, sqltypes.CHAR):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, length: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
|
||||
class NVARCHAR(_StringType, sqltypes.NVARCHAR):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, length: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
|
||||
class NCHAR(_StringType, sqltypes.NCHAR):
|
||||
__visit_name__: str = ...
|
||||
def __init__(self, length: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
|
||||
class TINYBLOB(sqltypes._Binary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class MEDIUMBLOB(sqltypes._Binary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class LONGBLOB(sqltypes._Binary):
|
||||
__visit_name__: str = ...
|
|
@ -1,21 +0,0 @@
|
|||
# Stubs for sqlalchemy.dialects.mysql.zxjdbc (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from ...connectors.zxJDBC import ZxJDBCConnector as ZxJDBCConnector
|
||||
from .base import BIT as BIT, MySQLDialect as MySQLDialect, MySQLExecutionContext as MySQLExecutionContext
|
||||
|
||||
class _ZxJDBCBit(BIT):
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class MySQLExecutionContext_zxjdbc(MySQLExecutionContext):
|
||||
def get_lastrowid(self): ...
|
||||
|
||||
class MySQLDialect_zxjdbc(ZxJDBCConnector, MySQLDialect):
|
||||
jdbc_db_name: str = ...
|
||||
jdbc_driver_name: str = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
colspecs: Any = ...
|
||||
|
||||
dialect: Any = ...
|
|
@ -1,3 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,25 +0,0 @@
|
|||
from typing import Any as _AnyType
|
||||
|
||||
from .base import (
|
||||
INTEGER as INTEGER, BIGINT as BIGINT, SMALLINT as SMALLINT, VARCHAR as VARCHAR, CHAR as CHAR,
|
||||
TEXT as TEXT, NUMERIC as NUMERIC, FLOAT as FLOAT, REAL as REAL, INET as INET, CIDR as CIDR,
|
||||
UUID as UUID, BIT as BIT, MACADDR as MACADDR, MONEY as MONEY, OID as OID, REGCLASS as REGCLASS,
|
||||
DOUBLE_PRECISION as DOUBLE_PRECISION, TIMESTAMP as TIMESTAMP, TIME as TIME, DATE as DATE,
|
||||
BYTEA as BYTEA, BOOLEAN as BOOLEAN, INTERVAL as INTERVAL, ENUM as ENUM, TSVECTOR as TSVECTOR,
|
||||
DropEnumType as DropEnumType, CreateEnumType as CreateEnumType
|
||||
)
|
||||
from .hstore import HSTORE as HSTORE, hstore as hstore
|
||||
from .json import JSON as JSON, JSONB as JSONB, json as json
|
||||
from .array import array as array, ARRAY as ARRAY, Any as Any, All as All
|
||||
from .ext import (
|
||||
aggregate_order_by as aggregate_order_by, ExcludeConstraint as ExcludeConstraint,
|
||||
array_agg as array_agg
|
||||
)
|
||||
from .dml import insert as insert, Insert as Insert
|
||||
|
||||
from .ranges import (
|
||||
INT4RANGE as INT4RANGE, INT8RANGE as INT8RANGE, NUMRANGE as NUMRANGE, DATERANGE as DATERANGE,
|
||||
TSRANGE as TSRANGE, TSTZRANGE as TSTZRANGE
|
||||
)
|
||||
|
||||
def __getattr__(attr: str) -> _AnyType: ...
|
|
@ -1,18 +0,0 @@
|
|||
from typing import Any as _AnyType, Optional, TypeVar, Type, Callable, overload
|
||||
from ...sql import expression
|
||||
from ...sql.type_api import TypeEngine
|
||||
from ... import types as _sqltypes
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
def Any(other: _AnyType, arrexpr: _AnyType, operator: Callable[..., _AnyType] = ...) -> _AnyType: ...
|
||||
def All(other: _AnyType, arrexpr: _AnyType, operator: Callable[..., _AnyType] = ...) -> _AnyType: ...
|
||||
|
||||
class array(expression.Tuple): ...
|
||||
class ARRAY(_sqltypes.ARRAY[_T]):
|
||||
@overload
|
||||
def __init__(self, item_type: TypeEngine[_T], as_tuple: bool = ..., dimensions: Optional[_AnyType] = ...,
|
||||
zero_indexes: bool = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, item_type: Type[TypeEngine[_T]], as_tuple: bool = ..., dimensions: Optional[_AnyType] = ...,
|
||||
zero_indexes: bool = ...) -> None: ...
|
|
@ -1,236 +0,0 @@
|
|||
from ... import schema
|
||||
from ...engine import default, reflection
|
||||
from ...sql import compiler, expression, sqltypes, type_api
|
||||
from typing import Any, Optional, Set, Type, Text, Pattern, Dict
|
||||
from datetime import timedelta
|
||||
|
||||
from sqlalchemy.types import INTEGER as INTEGER, BIGINT as BIGINT, SMALLINT as SMALLINT, VARCHAR as VARCHAR, \
|
||||
CHAR as CHAR, TEXT as TEXT, FLOAT as FLOAT, NUMERIC as NUMERIC, \
|
||||
DATE as DATE, BOOLEAN as BOOLEAN, REAL as REAL
|
||||
|
||||
AUTOCOMMIT_REGEXP: Pattern[Text]
|
||||
RESERVED_WORDS: Set[str]
|
||||
|
||||
class BYTEA(sqltypes.LargeBinary):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class DOUBLE_PRECISION(sqltypes.Float):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class INET(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
PGInet = INET
|
||||
|
||||
class CIDR(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
PGCidr = CIDR
|
||||
|
||||
class MACADDR(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
PGMacAddr = MACADDR
|
||||
|
||||
class MONEY(sqltypes.TypeEngine[float]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class OID(sqltypes.TypeEngine[int]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class REGCLASS(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class TIMESTAMP(sqltypes.TIMESTAMP):
|
||||
precision: Optional[int] = ...
|
||||
def __init__(self, timezone: bool = ..., precision: Optional[int] = ...) -> None: ...
|
||||
|
||||
class TIME(sqltypes.TIME):
|
||||
precision: Optional[int] = ...
|
||||
def __init__(self, timezone: bool = ..., precision: Optional[int] = ...) -> None: ...
|
||||
|
||||
class INTERVAL(sqltypes.NativeForEmulated, sqltypes._AbstractInterval[timedelta]):
|
||||
__visit_name__: str = ...
|
||||
native: bool = ...
|
||||
precision: Optional[int] = ...
|
||||
fields: Optional[str] = ...
|
||||
def __init__(self, precision: Optional[int] = ..., fields: Optional[str] = ...) -> None: ...
|
||||
# Return value of adapt_emulated_to_native incompatible with supertype "NativeForEmulated"
|
||||
@classmethod
|
||||
def adapt_emulated_to_native(cls, interval: Any, **kw: Any) -> INTERVAL: ... # type: ignore
|
||||
@property
|
||||
def python_type(self) -> Type[timedelta]: ...
|
||||
PGInterval = INTERVAL
|
||||
|
||||
class BIT(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
length: Optional[int] = ...
|
||||
varying: bool = ...
|
||||
def __init__(self, length: Optional[int] = ..., varying: bool = ...) -> None: ...
|
||||
PGBit = BIT
|
||||
|
||||
class UUID(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
as_uuid: bool = ...
|
||||
def __init__(self, as_uuid: bool = ...) -> None: ...
|
||||
def bind_processor(self, dialect: Any): ...
|
||||
def result_processor(self, dialect: Any, coltype: Any): ...
|
||||
PGUuid = UUID
|
||||
|
||||
class TSVECTOR(sqltypes.TypeEngine[str]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class ENUM(sqltypes.NativeForEmulated, sqltypes.Enum):
|
||||
native_enum: bool = ...
|
||||
create_type: Any = ...
|
||||
def __init__(self, *enums: Any, **kw: Any) -> None: ...
|
||||
@classmethod
|
||||
def adapt_emulated_to_native(cls, impl: Any, **kw: Any): ...
|
||||
def create(self, bind: Optional[Any] = ..., checkfirst: bool = ...): ...
|
||||
def drop(self, bind: Optional[Any] = ..., checkfirst: bool = ...): ...
|
||||
|
||||
colspecs: Dict[type_api.TypeEngine[Any], type_api.TypeEngine[Any]]
|
||||
ischema_names: Dict[str, type_api.TypeEngine[Any]]
|
||||
|
||||
class PGCompiler(compiler.SQLCompiler):
|
||||
def visit_array(self, element: Any, **kw: Any): ...
|
||||
def visit_slice(self, element: Any, **kw: Any): ...
|
||||
def visit_json_getitem_op_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def visit_json_path_getitem_op_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def visit_getitem_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def visit_aggregate_order_by(self, element: Any, **kw: Any): ...
|
||||
def visit_match_op_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def visit_ilike_op_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def visit_notilike_op_binary(self, binary: Any, operator: Any, **kw: Any): ...
|
||||
def render_literal_value(self, value: Any, type_: Any): ...
|
||||
def visit_sequence(self, sequence: Any, **kw: Any) -> str: ...
|
||||
def limit_clause(self, select: Any, **kw: Any): ...
|
||||
def format_from_hint_text(self, sqltext: Any, table: Any, hint: Any, iscrud: Any): ...
|
||||
def get_select_precolumns(self, select: Any, **kw: Any): ...
|
||||
def for_update_clause(self, select: Any, **kw: Any): ...
|
||||
def returning_clause(self, stmt: Any, returning_cols: Any): ...
|
||||
def visit_substring_func(self, func: Any, **kw: Any): ...
|
||||
def visit_on_conflict_do_nothing(self, on_conflict: Any, **kw: Any): ...
|
||||
def visit_on_conflict_do_update(self, on_conflict: Any, **kw: Any): ...
|
||||
def update_from_clause(self, update_stmt: Any, from_table: Any, extra_froms: Any, from_hints: Any, **kw: Any): ...
|
||||
def delete_extra_from_clause(self, update_stmt: Any, from_table: Any, extra_froms: Any, from_hints: Any,
|
||||
**kw: Any) -> str: ...
|
||||
|
||||
class PGDDLCompiler(compiler.DDLCompiler):
|
||||
def get_column_specification(self, column: Any, **kwargs: Any): ...
|
||||
def visit_create_enum_type(self, create: Any): ...
|
||||
def visit_drop_enum_type(self, drop: Any): ...
|
||||
# Signature of visit_create_index incompatible with supertype "DDLCompiler"
|
||||
def visit_create_index(self, create: Any) -> str: ... # type: ignore
|
||||
def visit_drop_index(self, drop: Any): ...
|
||||
def visit_exclude_constraint(self, constraint: Any, **kw: Any): ...
|
||||
def post_create_table(self, table: Any): ...
|
||||
|
||||
class PGTypeCompiler(compiler.GenericTypeCompiler):
|
||||
def visit_TSVECTOR(self, type: Any, **kw: Any): ...
|
||||
def visit_INET(self, type_: Any, **kw: Any): ...
|
||||
def visit_CIDR(self, type_: Any, **kw: Any): ...
|
||||
def visit_MACADDR(self, type_: Any, **kw: Any): ...
|
||||
def visit_MONEY(self, type_: Any, **kw: Any): ...
|
||||
def visit_OID(self, type_: Any, **kw: Any): ...
|
||||
def visit_REGCLASS(self, type_: Any, **kw: Any): ...
|
||||
def visit_FLOAT(self, type_: Any, **kw: Any): ...
|
||||
def visit_DOUBLE_PRECISION(self, type_: Any, **kw: Any): ...
|
||||
def visit_BIGINT(self, type_: Any, **kw: Any): ...
|
||||
def visit_HSTORE(self, type_: Any, **kw: Any): ...
|
||||
def visit_JSON(self, type_: Any, **kw: Any): ...
|
||||
def visit_JSONB(self, type_: Any, **kw: Any): ...
|
||||
def visit_INT4RANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_INT8RANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_NUMRANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_DATERANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_TSRANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_TSTZRANGE(self, type_: Any, **kw: Any): ...
|
||||
def visit_datetime(self, type_: Any, **kw: Any): ...
|
||||
def visit_enum(self, type_: Any, **kw: Any): ...
|
||||
def visit_ENUM(self, type_: Any, **kw: Any): ...
|
||||
def visit_TIMESTAMP(self, type_: Any, **kw: Any): ...
|
||||
def visit_TIME(self, type_: Any, **kw: Any): ...
|
||||
def visit_INTERVAL(self, type_: Any, **kw: Any): ...
|
||||
def visit_BIT(self, type_: Any, **kw: Any): ...
|
||||
def visit_UUID(self, type_: Any, **kw: Any): ...
|
||||
def visit_large_binary(self, type_: Any, **kw: Any): ...
|
||||
def visit_BYTEA(self, type_: Any, **kw: Any): ...
|
||||
def visit_ARRAY(self, type_: Any, **kw: Any): ...
|
||||
|
||||
class PGIdentifierPreparer(compiler.IdentifierPreparer):
|
||||
reserved_words: Any = ...
|
||||
def format_type(self, type_: Any, use_schema: bool = ...): ...
|
||||
|
||||
class PGInspector(reflection.Inspector):
|
||||
def __init__(self, conn: Any) -> None: ...
|
||||
def get_table_oid(self, table_name: Any, schema: Optional[Any] = ...): ...
|
||||
def get_enums(self, schema: Optional[Any] = ...): ...
|
||||
def get_foreign_table_names(self, schema: Optional[Any] = ...): ...
|
||||
def get_view_names(self, schema: Optional[Any] = ..., include: Any = ...): ...
|
||||
|
||||
class CreateEnumType(schema._CreateDropBase[str]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class DropEnumType(schema._CreateDropBase[str]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class PGExecutionContext(default.DefaultExecutionContext):
|
||||
def fire_sequence(self, seq: Any, type_: Any): ...
|
||||
def get_insert_default(self, column: Any): ...
|
||||
def should_autocommit_text(self, statement: Any): ...
|
||||
|
||||
class PGDialect(default.DefaultDialect):
|
||||
name: str = ...
|
||||
supports_alter: bool = ...
|
||||
max_identifier_length: int = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_native_enum: bool = ...
|
||||
supports_native_boolean: bool = ...
|
||||
supports_smallserial: bool = ...
|
||||
supports_sequences: bool = ...
|
||||
sequences_optional: bool = ...
|
||||
preexecute_autoincrement_sequences: bool = ...
|
||||
postfetch_lastrowid: bool = ...
|
||||
supports_comments: bool = ...
|
||||
supports_default_values: bool = ...
|
||||
supports_empty_insert: bool = ...
|
||||
supports_multivalues_insert: bool = ...
|
||||
default_paramstyle: str = ...
|
||||
ischema_names: Any = ...
|
||||
colspecs: Any = ...
|
||||
statement_compiler: Any = ...
|
||||
ddl_compiler: Any = ...
|
||||
type_compiler: Any = ...
|
||||
preparer: Any = ...
|
||||
execution_ctx_cls: Any = ...
|
||||
inspector: Any = ...
|
||||
isolation_level: Any = ...
|
||||
construct_arguments: Any = ...
|
||||
reflection_options: Any = ...
|
||||
def __init__(self, isolation_level: Optional[Any] = ..., json_serializer: Optional[Any] = ...,
|
||||
json_deserializer: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
||||
implicit_returning: Any = ...
|
||||
def initialize(self, connection: Any) -> None: ...
|
||||
def on_connect(self): ...
|
||||
def set_isolation_level(self, connection: Any, level: Any) -> None: ...
|
||||
def get_isolation_level(self, connection: Any): ...
|
||||
def do_begin_twophase(self, connection: Any, xid: Any) -> None: ...
|
||||
def do_prepare_twophase(self, connection: Any, xid: Any) -> None: ...
|
||||
def do_rollback_twophase(self, connection: Any, xid: Any, is_prepared: bool = ..., recover: bool = ...) -> None: ...
|
||||
def do_commit_twophase(self, connection: Any, xid: Any, is_prepared: bool = ..., recover: bool = ...) -> None: ...
|
||||
def do_recover_twophase(self, connection: Any): ...
|
||||
def has_schema(self, connection: Any, schema: Any): ...
|
||||
def has_table(self, connection: Any, table_name: Any, schema: Optional[Any] = ...): ...
|
||||
def has_sequence(self, connection: Any, sequence_name: Any, schema: Optional[Any] = ...): ...
|
||||
def has_type(self, connection: Any, type_name: Any, schema: Optional[Any] = ...): ...
|
||||
def get_table_oid(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_schema_names(self, connection: Any, **kw: Any): ...
|
||||
def get_table_names(self, connection: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_view_names(self, connection: Any, schema: Optional[Any] = ..., include: Any = ..., **kw: Any): ...
|
||||
def get_view_definition(self, connection: Any, view_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_columns(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_pk_constraint(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_foreign_keys(self, connection: Any, table_name: Any, schema: Optional[Any] = ...,
|
||||
postgresql_ignore_search_path: bool = ..., **kw: Any): ...
|
||||
def get_indexes(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_unique_constraints(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_table_comment(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
||||
def get_check_constraints(self, connection: Any, table_name: Any, schema: Optional[Any] = ..., **kw: Any): ...
|
|
@ -1,31 +0,0 @@
|
|||
from ...sql.dml import Insert as _StandardInsert
|
||||
from ...sql.elements import ClauseElement
|
||||
from typing import Any, Optional
|
||||
|
||||
class Insert(_StandardInsert):
|
||||
def excluded(self): ...
|
||||
def on_conflict_do_update(self, constraint: Optional[Any] = ..., index_elements: Optional[Any] = ...,
|
||||
index_where: Optional[Any] = ..., set_: Optional[Any] = ...,
|
||||
where: Optional[Any] = ...): ...
|
||||
def on_conflict_do_nothing(self, constraint: Optional[Any] = ..., index_elements: Optional[Any] = ...,
|
||||
index_where: Optional[Any] = ...): ...
|
||||
|
||||
insert: Any
|
||||
|
||||
class OnConflictClause(ClauseElement):
|
||||
constraint_target: Any = ...
|
||||
inferred_target_elements: Any = ...
|
||||
inferred_target_whereclause: Any = ...
|
||||
def __init__(self, constraint: Optional[Any] = ..., index_elements: Optional[Any] = ...,
|
||||
index_where: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class OnConflictDoNothing(OnConflictClause):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class OnConflictDoUpdate(OnConflictClause):
|
||||
__visit_name__: str = ...
|
||||
update_values_to_set: Any = ...
|
||||
update_whereclause: Any = ...
|
||||
def __init__(self, constraint: Optional[Any] = ..., index_elements: Optional[Any] = ...,
|
||||
index_where: Optional[Any] = ..., set_: Optional[Any] = ...,
|
||||
where: Optional[Any] = ...) -> None: ...
|
|
@ -1,38 +0,0 @@
|
|||
from ...sql import expression, functions, visitors
|
||||
from ...sql.schema import ColumnCollectionConstraint
|
||||
from ...sql.elements import ColumnElement
|
||||
from ...sql.type_api import TypeEngine
|
||||
from ...engine.base import Engine, Connection
|
||||
from .array import ARRAY
|
||||
from typing import Any, Optional, Union, TypeVar, Dict, Tuple, Type, overload
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_AOB = TypeVar('_AOB', bound=aggregate_order_by)
|
||||
|
||||
class aggregate_order_by(expression.ColumnElement[Any]):
|
||||
__visit_name__: str = ...
|
||||
target: expression.ColumnElement[Any] = ...
|
||||
order_by: Any = ...
|
||||
def __init__(self, target: expression.ColumnElement[Any], *order_by: expression.ClauseElement) -> None: ...
|
||||
def self_group(self: _AOB, against: Optional[Any] = ...) -> _AOB: ...
|
||||
def get_children(self, **kwargs: Any) -> Tuple[expression.ColumnElement[Any], Any]: ...
|
||||
|
||||
_EC = TypeVar('_EC', bound=ExcludeConstraint)
|
||||
|
||||
class ExcludeConstraint(ColumnCollectionConstraint):
|
||||
__visit_name__: str = ...
|
||||
where: Optional[visitors.Visitable] = ...
|
||||
operators: Dict[str, Any] = ...
|
||||
using: str = ...
|
||||
def __init__(self, *elements: Any, name: str = ..., deferrable: bool = ..., initially: str = ..., using: str = ...,
|
||||
where: Optional[Union[str, bool, visitors.Visitable]] = ...) -> None: ...
|
||||
def copy(self: _EC, **kw: Any) -> _EC: ...
|
||||
|
||||
@overload
|
||||
def array_agg(self, *args: ColumnElement[Any], bind: Optional[Union[Engine, Connection]] = ...,
|
||||
type_: Type[TypeEngine[_T]]) -> functions.array_agg[_T]: ...
|
||||
@overload
|
||||
def array_agg(self, *args: ColumnElement[Any], bind: Optional[Union[Engine, Connection]] = ...,
|
||||
type_: TypeEngine[_T]) -> functions.array_agg[_T]: ...
|
||||
@overload
|
||||
def array_agg(self, *args: ColumnElement[_T], bind: Optional[Union[Engine, Connection]] = ...) -> functions.array_agg[_T]: ...
|
|
@ -1,58 +0,0 @@
|
|||
from ... import types as sqltypes
|
||||
from ...sql import functions as sqlfunc, type_api
|
||||
from .array import ARRAY
|
||||
from typing import Any, Optional, Mapping, Type, List, Text
|
||||
|
||||
class HSTORE(sqltypes.Indexable, sqltypes.Concatenable, sqltypes.TypeEngine[Mapping[str, Any]]):
|
||||
__visit_name__: str = ...
|
||||
hashable: bool = ...
|
||||
text_type: type_api.TypeEngine[Text] = ...
|
||||
def __init__(self, text_type: Optional[type_api.TypeEngine[Text]] = ...) -> None: ...
|
||||
class Comparator(type_api.TypeEngine.Comparator):
|
||||
def has_key(self, other: Any): ...
|
||||
def has_all(self, other: Any): ...
|
||||
def has_any(self, other: Any): ...
|
||||
def contains(self, other: Any, **kwargs: Any): ...
|
||||
def contained_by(self, other: Any): ...
|
||||
def defined(self, key: Any) -> _HStoreDefinedFunction: ...
|
||||
def delete(self, key: Any) -> _HStoreDeleteFunction: ...
|
||||
def slice(self, array: Any) -> _HStoreSliceFunction: ...
|
||||
def keys(self) -> _HStoreKeysFunction: ...
|
||||
def vals(self) -> _HStoreValsFunction: ...
|
||||
def array(self) -> _HStoreArrayFunction: ...
|
||||
def matrix(self) -> _HStoreMatrixFunction: ...
|
||||
comparator_factory: Type[HSTORE.Comparator] = ...
|
||||
def bind_processor(self, dialect: Any): ...
|
||||
def result_processor(self, dialect: Any, coltype: Any): ...
|
||||
|
||||
class hstore(sqlfunc.GenericFunction[Mapping[str, Any]]):
|
||||
type: HSTORE = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreDefinedFunction(sqlfunc.GenericFunction[bool]):
|
||||
type: sqltypes.Boolean = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreDeleteFunction(sqlfunc.GenericFunction[Mapping[str, Any]]):
|
||||
type: HSTORE = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreSliceFunction(sqlfunc.GenericFunction[Mapping[str, Any]]):
|
||||
type: HSTORE = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreKeysFunction(sqlfunc.GenericFunction[List[Text]]):
|
||||
type: ARRAY[Text] = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreValsFunction(sqlfunc.GenericFunction[List[Text]]):
|
||||
type: ARRAY[Text] = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreArrayFunction(sqlfunc.GenericFunction[List[Text]]):
|
||||
type: ARRAY[Text] = ...
|
||||
name: str = ...
|
||||
|
||||
class _HStoreMatrixFunction(sqlfunc.GenericFunction[List[Text]]):
|
||||
type: ARRAY[Text] = ...
|
||||
name: str = ...
|
|
@ -1,6 +0,0 @@
|
|||
import json as json
|
||||
|
||||
from ... import types as sqltypes
|
||||
|
||||
class JSON(sqltypes.JSON): ...
|
||||
class JSONB(JSON): ...
|
|
@ -1,36 +0,0 @@
|
|||
from ... import types as _sqltypes
|
||||
from ...sql.type_api import TypeEngine
|
||||
from typing import Any
|
||||
|
||||
class RangeOperators:
|
||||
class comparator_factory(TypeEngine.Comparator):
|
||||
def __ne__(self, other: Any): ...
|
||||
def contains(self, other: Any, **kw: Any): ...
|
||||
def contained_by(self, other: Any): ...
|
||||
def overlaps(self, other: Any): ...
|
||||
def strictly_left_of(self, other: Any): ...
|
||||
__lshift__: Any = ...
|
||||
def strictly_right_of(self, other: Any): ...
|
||||
__rshift__: Any = ...
|
||||
def not_extend_right_of(self, other: Any): ...
|
||||
def not_extend_left_of(self, other: Any): ...
|
||||
def adjacent_to(self, other: Any): ...
|
||||
def __add__(self, other: Any): ...
|
||||
|
||||
class INT4RANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class INT8RANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class NUMRANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class DATERANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class TSRANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
||||
|
||||
class TSTZRANGE(RangeOperators, _sqltypes.TypeEngine[Any]):
|
||||
__visit_name__: str = ...
|
|
@ -1,3 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,3 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def __getattr__(attr: str) -> Any: ...
|
|
@ -1,34 +0,0 @@
|
|||
from typing import Any
|
||||
from . import default as default
|
||||
|
||||
from .interfaces import (
|
||||
Connectable as Connectable,
|
||||
CreateEnginePlugin as CreateEnginePlugin,
|
||||
Dialect as Dialect,
|
||||
ExecutionContext as ExecutionContext,
|
||||
ExceptionContext as ExceptionContext,
|
||||
Compiled as Compiled,
|
||||
TypeCompiler as TypeCompiler,
|
||||
)
|
||||
|
||||
from .base import (
|
||||
Connection as Connection,
|
||||
Engine as Engine,
|
||||
NestedTransaction as NestedTransaction,
|
||||
RootTransaction as RootTransaction,
|
||||
Transaction as Transaction,
|
||||
TwoPhaseTransaction as TwoPhaseTransaction,
|
||||
)
|
||||
|
||||
from .result import (
|
||||
BaseRowProxy as BaseRowProxy,
|
||||
BufferedColumnResultProxy as BufferedColumnResultProxy,
|
||||
BufferedColumnRow as BufferedColumnRow,
|
||||
BufferedRowResultProxy as BufferedRowResultProxy,
|
||||
FullyBufferedResultProxy as FullyBufferedResultProxy,
|
||||
ResultProxy as ResultProxy,
|
||||
RowProxy as RowProxy,
|
||||
)
|
||||
|
||||
def create_engine(*args: Any, **kwargs: Any) -> Engine: ...
|
||||
def engine_from_config(configuration: Any, prefix: str = ..., **kwargs: Any) -> Engine: ...
|
|
@ -1,123 +0,0 @@
|
|||
from typing import Any, Optional, Dict, Union, Text
|
||||
from sqlalchemy import log
|
||||
from sqlalchemy.sql.expression import ClauseElement
|
||||
from sqlalchemy.sql.functions import FunctionElement
|
||||
from sqlalchemy.schema import DDLElement, DefaultGenerator
|
||||
from sqlalchemy.engine.interfaces import Compiled
|
||||
from .interfaces import Connectable as Connectable, ExceptionContext as ExceptionContext
|
||||
from .result import ResultProxy
|
||||
|
||||
class Transaction(object):
|
||||
connection: Any = ...
|
||||
is_active: bool = ...
|
||||
def __init__(self, connection, parent) -> None: ...
|
||||
def close(self): ...
|
||||
def rollback(self): ...
|
||||
def commit(self): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type, value, traceback): ...
|
||||
|
||||
class RootTransaction(Transaction):
|
||||
def __init__(self, connection) -> None: ...
|
||||
|
||||
class NestedTransaction(Transaction):
|
||||
def __init__(self, connection, parent) -> None: ...
|
||||
|
||||
class TwoPhaseTransaction(Transaction):
|
||||
xid: Any = ...
|
||||
def __init__(self, connection, xid) -> None: ...
|
||||
def prepare(self): ...
|
||||
|
||||
class Connection(Connectable):
|
||||
schema_for_object: Any = ...
|
||||
engine: Any = ...
|
||||
dialect: Any = ...
|
||||
should_close_with_result: bool = ...
|
||||
dispatch: Any = ...
|
||||
def __init__(self, engine, connection: Optional[Any] = ..., close_with_result: bool = ...,
|
||||
_branch_from: Optional[Any] = ..., _execution_options: Optional[Any] = ...,
|
||||
_dispatch: Optional[Any] = ..., _has_events: Optional[Any] = ...) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type, value, traceback): ...
|
||||
def execution_options(self, **opt): ...
|
||||
@property
|
||||
def closed(self) -> bool: ...
|
||||
@property
|
||||
def invalidated(self) -> bool: ...
|
||||
@property
|
||||
def connection(self): ...
|
||||
def get_isolation_level(self) -> str: ...
|
||||
@property
|
||||
def default_isolation_level(self) -> str: ...
|
||||
@property
|
||||
def info(self) -> Dict[Any, Any]: ...
|
||||
def connect(self): ...
|
||||
def contextual_connect(self, **kwargs): ...
|
||||
def invalidate(self, exception: Optional[Any] = ...) -> None: ...
|
||||
def detach(self) -> None: ...
|
||||
def begin(self) -> Transaction: ...
|
||||
def begin_nested(self) -> NestedTransaction: ...
|
||||
def begin_twophase(self, xid: Optional[Any] = ...) -> TwoPhaseTransaction: ...
|
||||
def recover_twophase(self): ...
|
||||
def rollback_prepared(self, xid, recover: bool = ...): ...
|
||||
def commit_prepared(self, xid, recover: bool = ...): ...
|
||||
def in_transaction(self) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def scalar(self, object, *multiparams, **params): ...
|
||||
def execute(self, object, *multiparams, **params): ...
|
||||
def transaction(self, callable_, *args, **kwargs): ...
|
||||
def run_callable(self, callable_, *args, **kwargs): ...
|
||||
|
||||
class ExceptionContextImpl(ExceptionContext):
|
||||
engine: Any = ...
|
||||
connection: Any = ...
|
||||
sqlalchemy_exception: Any = ...
|
||||
original_exception: Any = ...
|
||||
execution_context: Any = ...
|
||||
statement: Any = ...
|
||||
parameters: Any = ...
|
||||
is_disconnect: bool = ...
|
||||
invalidate_pool_on_disconnect: bool = ...
|
||||
def __init__(self, exception, sqlalchemy_exception, engine, connection, cursor,
|
||||
statement, parameters, context, is_disconnect,
|
||||
invalidate_pool_on_disconnect) -> None: ...
|
||||
|
||||
class Engine(Connectable, log.Identified):
|
||||
schema_for_object: Any = ...
|
||||
pool: Any = ...
|
||||
url: Any = ...
|
||||
dialect: Any = ...
|
||||
logging_name: Any = ...
|
||||
echo: Any = ...
|
||||
engine: Any = ...
|
||||
def __init__(self, pool, dialect, url, logging_name: Optional[Any] = ..., echo: Optional[Any] = ...,
|
||||
proxy: Optional[Any] = ..., execution_options: Optional[Any] = ...) -> None: ...
|
||||
def update_execution_options(self, **opt): ...
|
||||
def execution_options(self, **opt): ...
|
||||
@property
|
||||
def name(self): ...
|
||||
@property
|
||||
def driver(self): ...
|
||||
def dispose(self) -> None: ...
|
||||
def begin(self, close_with_result: bool = ...): ...
|
||||
def transaction(self, callable_, *args, **kwargs): ...
|
||||
def run_callable(self, callable_, *args, **kwargs): ...
|
||||
def execute(self,
|
||||
object: Union[Text, ClauseElement, FunctionElement, DDLElement, DefaultGenerator, Compiled],
|
||||
*multiparams: Any,
|
||||
**params: Any) -> ResultProxy: ...
|
||||
def scalar(self, statement, *multiparams, **params): ...
|
||||
def connect(self, **kwargs) -> Connection: ...
|
||||
def contextual_connect(self, close_with_result: bool = ..., **kwargs): ...
|
||||
def table_names(self, schema: Optional[Any] = ..., connection: Optional[Any] = ...): ...
|
||||
def has_table(self, table_name, schema: Optional[Any] = ...): ...
|
||||
def raw_connection(self, _connection: Optional[Any] = ...): ...
|
||||
|
||||
class OptionEngine(Engine):
|
||||
url: Any = ...
|
||||
dialect: Any = ...
|
||||
logging_name: Any = ...
|
||||
echo: Any = ...
|
||||
dispatch: Any = ...
|
||||
def __init__(self, proxied, execution_options) -> None: ...
|
||||
pool: Any = ...
|
|
@ -1,146 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from . import interfaces
|
||||
|
||||
AUTOCOMMIT_REGEXP: Any = ...
|
||||
SERVER_SIDE_CURSOR_RE: Any = ...
|
||||
|
||||
class DefaultDialect(interfaces.Dialect):
|
||||
statement_compiler: Any = ...
|
||||
ddl_compiler: Any = ...
|
||||
type_compiler: Any = ...
|
||||
preparer: Any = ...
|
||||
supports_alter: bool = ...
|
||||
default_sequence_base: int = ...
|
||||
execute_sequence_format: Any = ...
|
||||
supports_views: bool = ...
|
||||
supports_sequences: bool = ...
|
||||
sequences_optional: bool = ...
|
||||
preexecute_autoincrement_sequences: bool = ...
|
||||
postfetch_lastrowid: bool = ...
|
||||
implicit_returning: bool = ...
|
||||
supports_right_nested_joins: bool = ...
|
||||
supports_native_enum: bool = ...
|
||||
supports_native_boolean: bool = ...
|
||||
supports_simple_order_by_label: bool = ...
|
||||
engine_config_types: Any = ...
|
||||
supports_native_decimal: bool = ...
|
||||
supports_unicode_statements: bool = ...
|
||||
supports_unicode_binds: bool = ...
|
||||
returns_unicode_strings: bool = ...
|
||||
description_encoding: Any = ...
|
||||
name: str = ...
|
||||
max_identifier_length: int = ...
|
||||
max_index_name_length: Any = ...
|
||||
supports_sane_rowcount: bool = ...
|
||||
supports_sane_multi_rowcount: bool = ...
|
||||
dbapi_type_map: Any = ...
|
||||
colspecs: Any = ...
|
||||
default_paramstyle: str = ...
|
||||
supports_default_values: bool = ...
|
||||
supports_empty_insert: bool = ...
|
||||
supports_multivalues_insert: bool = ...
|
||||
supports_server_side_cursors: bool = ...
|
||||
server_version_info: Any = ...
|
||||
construct_arguments: Any = ...
|
||||
requires_name_normalize: bool = ...
|
||||
reflection_options: Any = ...
|
||||
dbapi_exception_translation_map: Any = ...
|
||||
convert_unicode: Any = ...
|
||||
encoding: Any = ...
|
||||
positional: bool = ...
|
||||
dbapi: Any = ...
|
||||
paramstyle: Any = ...
|
||||
identifier_preparer: Any = ...
|
||||
case_sensitive: Any = ...
|
||||
label_length: Any = ...
|
||||
def __init__(self, convert_unicode: bool = ..., encoding: str = ..., paramstyle: Optional[Any] = ...,
|
||||
dbapi: Optional[Any] = ..., implicit_returning: Optional[Any] = ...,
|
||||
supports_right_nested_joins: Optional[Any] = ..., case_sensitive: bool = ...,
|
||||
supports_native_boolean: Optional[Any] = ...,
|
||||
label_length: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
@property
|
||||
def dialect_description(self): ...
|
||||
@classmethod
|
||||
def get_pool_class(cls, url): ...
|
||||
default_schema_name: str = ...
|
||||
default_isolation_level: Any = ...
|
||||
def initialize(self, connection): ...
|
||||
def on_connect(self): ...
|
||||
def type_descriptor(self, typeobj): ...
|
||||
def reflecttable(self, connection, table, include_columns, exclude_columns, **opts): ...
|
||||
# Should be conn but using connection so mypy doesn't complain about superclass incompatibility
|
||||
def get_pk_constraint(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def validate_identifier(self, ident): ...
|
||||
def connect(self, *cargs, **cparams): ...
|
||||
def create_connect_args(self, url): ...
|
||||
def set_engine_execution_options(self, engine, opts): ...
|
||||
def set_connection_execution_options(self, connection, opts): ...
|
||||
def do_begin(self, dbapi_connection): ...
|
||||
def do_rollback(self, dbapi_connection): ...
|
||||
def do_commit(self, dbapi_connection): ...
|
||||
def do_close(self, dbapi_connection): ...
|
||||
def create_xid(self): ...
|
||||
def do_savepoint(self, connection, name): ...
|
||||
def do_rollback_to_savepoint(self, connection, name): ...
|
||||
def do_release_savepoint(self, connection, name): ...
|
||||
def do_executemany(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def do_execute(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def do_execute_no_params(self, *args, **kwargs): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
def reset_isolation_level(self, dbapi_conn): ...
|
||||
|
||||
class StrCompileDialect(DefaultDialect):
|
||||
statement_compiler: Any = ...
|
||||
ddl_compiler: Any = ...
|
||||
type_compiler: Any = ...
|
||||
preparer: Any = ...
|
||||
supports_sequences: bool = ...
|
||||
sequences_optional: bool = ...
|
||||
preexecute_autoincrement_sequences: bool = ...
|
||||
implicit_returning: bool = ...
|
||||
supports_native_boolean: bool = ...
|
||||
supports_simple_order_by_label: bool = ...
|
||||
|
||||
class DefaultExecutionContext(interfaces.ExecutionContext):
|
||||
isinsert: bool = ...
|
||||
isupdate: bool = ...
|
||||
isdelete: bool = ...
|
||||
is_crud: bool = ...
|
||||
is_text: bool = ...
|
||||
isddl: bool = ...
|
||||
executemany: bool = ...
|
||||
compiled: Any = ...
|
||||
statement: Any = ...
|
||||
result_column_struct: Any = ...
|
||||
returned_defaults: Any = ...
|
||||
@property
|
||||
def engine(self): ...
|
||||
@property
|
||||
def postfetch_cols(self): ...
|
||||
@property
|
||||
def prefetch_cols(self): ...
|
||||
@property
|
||||
def returning_cols(self): ...
|
||||
@property
|
||||
def no_parameters(self): ...
|
||||
@property
|
||||
def should_autocommit(self): ...
|
||||
@property
|
||||
def connection(self): ...
|
||||
def should_autocommit_text(self, statement): ...
|
||||
def create_cursor(self): ...
|
||||
def create_server_side_cursor(self): ...
|
||||
def pre_exec(self): ...
|
||||
def post_exec(self): ...
|
||||
def get_result_processor(self, type_, colname, coltype): ...
|
||||
def get_lastrowid(self): ...
|
||||
def handle_dbapi_exception(self, e): ...
|
||||
def get_result_proxy(self): ...
|
||||
@property
|
||||
def rowcount(self): ...
|
||||
def supports_sane_rowcount(self): ...
|
||||
def supports_sane_multi_rowcount(self): ...
|
||||
def lastrow_has_defaults(self): ...
|
||||
def set_input_sizes(self, translate: Optional[Any] = ..., exclude_types: Optional[Any] = ...): ...
|
||||
def get_insert_default(self, column): ...
|
||||
def get_update_default(self, column): ...
|
|
@ -1,100 +0,0 @@
|
|||
from typing import Any, Optional, Union
|
||||
from sqlalchemy.sql.expression import ClauseElement
|
||||
from sqlalchemy.sql.functions import FunctionElement
|
||||
from sqlalchemy.schema import DDLElement, DefaultGenerator
|
||||
from .base import Connection
|
||||
from .result import ResultProxy
|
||||
from ..sql.compiler import Compiled as Compiled, TypeCompiler as TypeCompiler
|
||||
|
||||
class Dialect(object):
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
def create_connect_args(self, url): ...
|
||||
@classmethod
|
||||
def type_descriptor(cls, typeobj): ...
|
||||
def initialize(self, connection): ...
|
||||
def reflecttable(self, connection, table, include_columns, exclude_columns): ...
|
||||
def get_columns(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_primary_keys(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_pk_constraint(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_foreign_keys(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_table_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_temp_table_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_temp_view_names(self, connection, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_definition(self, connection, view_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_indexes(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_unique_constraints(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_check_constraints(self, connection, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def normalize_name(self, name): ...
|
||||
def denormalize_name(self, name): ...
|
||||
def has_table(self, connection, table_name, schema: Optional[Any] = ...): ...
|
||||
def has_sequence(self, connection, sequence_name, schema: Optional[Any] = ...): ...
|
||||
def do_begin(self, dbapi_connection): ...
|
||||
def do_rollback(self, dbapi_connection): ...
|
||||
def do_commit(self, dbapi_connection): ...
|
||||
def do_close(self, dbapi_connection): ...
|
||||
def create_xid(self): ...
|
||||
def do_savepoint(self, connection, name): ...
|
||||
def do_rollback_to_savepoint(self, connection, name): ...
|
||||
def do_release_savepoint(self, connection, name): ...
|
||||
def do_begin_twophase(self, connection, xid): ...
|
||||
def do_prepare_twophase(self, connection, xid): ...
|
||||
def do_rollback_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def do_commit_twophase(self, connection, xid, is_prepared: bool = ..., recover: bool = ...): ...
|
||||
def do_recover_twophase(self, connection): ...
|
||||
def do_executemany(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def do_execute(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def do_execute_no_params(self, cursor, statement, parameters, context: Optional[Any] = ...): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
def connect(self): ...
|
||||
def reset_isolation_level(self, dbapi_conn): ...
|
||||
def set_isolation_level(self, dbapi_conn, level): ...
|
||||
def get_isolation_level(self, dbapi_conn): ...
|
||||
@classmethod
|
||||
def get_dialect_cls(cls, url): ...
|
||||
@classmethod
|
||||
def engine_created(cls, engine): ...
|
||||
|
||||
class CreateEnginePlugin(object):
|
||||
url: Any = ...
|
||||
def __init__(self, url, kwargs) -> None: ...
|
||||
def handle_dialect_kwargs(self, dialect_cls, dialect_args): ...
|
||||
def handle_pool_kwargs(self, pool_cls, pool_args): ...
|
||||
def engine_created(self, engine): ...
|
||||
|
||||
class ExecutionContext(object):
|
||||
exception: Any = ...
|
||||
is_disconnect: bool = ...
|
||||
def create_cursor(self): ...
|
||||
def pre_exec(self): ...
|
||||
def post_exec(self): ...
|
||||
def result(self): ...
|
||||
def handle_dbapi_exception(self, e): ...
|
||||
def should_autocommit_text(self, statement): ...
|
||||
def lastrow_has_defaults(self): ...
|
||||
def get_rowcount(self): ...
|
||||
|
||||
class Connectable(object):
|
||||
def connect(self, **kwargs: Any) -> Connection: ...
|
||||
def contextual_connect(self) -> Connection: ...
|
||||
def create(self, entity, **kwargs): ...
|
||||
def drop(self, entity, **kwargs): ...
|
||||
def execute(self,
|
||||
object: Union[str, ClauseElement, FunctionElement, DDLElement, DefaultGenerator, Compiled],
|
||||
*multiparams: Any,
|
||||
**params: Any) -> ResultProxy: ...
|
||||
def scalar(self, object, *multiparams: Any, **params: Any) -> Any: ...
|
||||
|
||||
class ExceptionContext(object):
|
||||
connection: Any = ...
|
||||
engine: Any = ...
|
||||
cursor: Any = ...
|
||||
statement: Any = ...
|
||||
parameters: Any = ...
|
||||
original_exception: Any = ...
|
||||
sqlalchemy_exception: Any = ...
|
||||
chained_exception: Any = ...
|
||||
execution_context: Any = ...
|
||||
is_disconnect: bool = ...
|
||||
invalidate_pool_on_disconnect: bool = ...
|
|
@ -1,30 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def cache(fn, self, con, *args, **kw): ...
|
||||
|
||||
class Inspector(object):
|
||||
bind: Any = ...
|
||||
engine: Any = ...
|
||||
dialect: Any = ...
|
||||
info_cache: Any = ...
|
||||
def __init__(self, bind) -> None: ...
|
||||
@classmethod
|
||||
def from_engine(cls, bind): ...
|
||||
@property
|
||||
def default_schema_name(self) -> Any: ...
|
||||
def get_schema_names(self): ...
|
||||
def get_table_names(self, schema: Optional[Any] = ..., order_by: Optional[Any] = ...): ...
|
||||
def get_sorted_table_and_fkc_names(self, schema: Optional[Any] = ...): ...
|
||||
def get_temp_table_names(self): ...
|
||||
def get_temp_view_names(self): ...
|
||||
def get_table_options(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_view_names(self, schema: Optional[Any] = ...): ...
|
||||
def get_view_definition(self, view_name, schema: Optional[Any] = ...): ...
|
||||
def get_columns(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_primary_keys(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_pk_constraint(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_foreign_keys(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_indexes(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_unique_constraints(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def get_check_constraints(self, table_name, schema: Optional[Any] = ..., **kw): ...
|
||||
def reflecttable(self, table, include_columns, exclude_columns: Any = ..., _extend_on: Optional[Any] = ...): ...
|
|
@ -1,93 +0,0 @@
|
|||
import sys
|
||||
|
||||
from typing import Any, List, Mapping, Optional, Iterator, Union, AbstractSet, Tuple
|
||||
from ..sql.schema import Column
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
_RowItems = AbstractSet[Tuple[str, Any]]
|
||||
else:
|
||||
_RowItems = List[Tuple[str, Any]]
|
||||
|
||||
def rowproxy_reconstructor(cls, state): ...
|
||||
|
||||
class BaseRowProxy(Mapping[str, Any]):
|
||||
def __init__(self, parent, row, processors, keymap) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
def values(self): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __getitem__(self, key: Union[str, int, Column]) -> Any: ...
|
||||
def __getattr__(self, name): ...
|
||||
|
||||
class RowProxy(BaseRowProxy):
|
||||
def __contains__(self, key): ...
|
||||
__hash__: Any = ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def has_key(self, key): ...
|
||||
def items(self) -> _RowItems: ... # type: ignore[override]
|
||||
def keys(self): ...
|
||||
def iterkeys(self): ...
|
||||
def itervalues(self): ...
|
||||
|
||||
class ResultMetaData(object):
|
||||
case_sensitive: Any = ...
|
||||
matched_on_name: bool = ...
|
||||
def __init__(self, parent, cursor_description) -> None: ...
|
||||
|
||||
class ResultProxy:
|
||||
out_parameters: Any = ...
|
||||
closed: bool = ...
|
||||
context: Any = ...
|
||||
dialect: Any = ...
|
||||
cursor: Any = ...
|
||||
connection: Any = ...
|
||||
def __init__(self, context) -> None: ...
|
||||
def keys(self): ...
|
||||
@property
|
||||
def rowcount(self) -> int: ...
|
||||
@property
|
||||
def lastrowid(self): ...
|
||||
@property
|
||||
def returns_rows(self): ...
|
||||
@property
|
||||
def is_insert(self): ...
|
||||
def close(self) -> None: ...
|
||||
def __iter__(self) -> Iterator[RowProxy]: ...
|
||||
def __next__(self) -> RowProxy: ...
|
||||
def next(self) -> RowProxy: ...
|
||||
@property
|
||||
def inserted_primary_key(self): ...
|
||||
def last_updated_params(self): ...
|
||||
def last_inserted_params(self): ...
|
||||
@property
|
||||
def returned_defaults(self): ...
|
||||
def lastrow_has_defaults(self): ...
|
||||
def postfetch_cols(self): ...
|
||||
def prefetch_cols(self): ...
|
||||
def supports_sane_rowcount(self): ...
|
||||
def supports_sane_multi_rowcount(self): ...
|
||||
def process_rows(self, rows): ...
|
||||
def fetchall(self) -> List[RowProxy]: ...
|
||||
def fetchmany(self, size: Optional[int] = ...) -> List[RowProxy]: ...
|
||||
def fetchone(self) -> Optional[RowProxy]: ...
|
||||
def first(self) -> Optional[RowProxy]: ...
|
||||
# Note: The return type `Any` should be a DB API 2 value type once defined
|
||||
# TODO: See typeshed/#1037
|
||||
def scalar(self) -> Any: ...
|
||||
|
||||
class BufferedRowResultProxy(ResultProxy):
|
||||
size_growth: Any = ...
|
||||
|
||||
class FullyBufferedResultProxy(ResultProxy): ...
|
||||
|
||||
class BufferedColumnRow(RowProxy):
|
||||
def __init__(self, parent, row, processors, keymap) -> None: ...
|
||||
|
||||
class BufferedColumnResultProxy(ResultProxy):
|
||||
def fetchall(self): ...
|
||||
def fetchmany(self, size: Optional[Any] = ...): ...
|
|
@ -1,35 +0,0 @@
|
|||
from typing import Any, Type
|
||||
from . import base, threadlocal
|
||||
|
||||
strategies: Any = ...
|
||||
|
||||
class EngineStrategy(object):
|
||||
def __init__(self) -> None: ...
|
||||
def create(self, *args, **kwargs): ...
|
||||
|
||||
class DefaultEngineStrategy(EngineStrategy):
|
||||
def create(self, name_or_url, **kwargs): ...
|
||||
|
||||
class PlainEngineStrategy(DefaultEngineStrategy):
|
||||
name: str
|
||||
engine_cls: Type[base.Engine]
|
||||
|
||||
class ThreadLocalEngineStrategy(DefaultEngineStrategy):
|
||||
name: str = ...
|
||||
engine_cls: Type[threadlocal.TLEngine] = ...
|
||||
|
||||
class MockEngineStrategy(EngineStrategy):
|
||||
name: str = ...
|
||||
def create(self, name_or_url, executor, **kwargs) -> MockEngineStrategy.MockConnection: ... # type: ignore
|
||||
class MockConnection(base.Connectable):
|
||||
execute: Any = ...
|
||||
def __init__(self, dialect, execute) -> None: ...
|
||||
engine: Any = ...
|
||||
dialect: Any = ...
|
||||
name: str = ...
|
||||
schema_for_object: Any = ...
|
||||
def contextual_connect(self, **kwargs): ...
|
||||
def execution_options(self, **kw): ...
|
||||
def compiler(self, statement, parameters, **kwargs): ...
|
||||
def create(self, entity, **kwargs): ...
|
||||
def drop(self, entity, **kwargs): ...
|
|
@ -1,22 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from . import base
|
||||
|
||||
class TLConnection(base.Connection):
|
||||
def __init__(self, *arg, **kw) -> None: ...
|
||||
def close(self): ...
|
||||
|
||||
class TLEngine(base.Engine):
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def contextual_connect(self, **kw): ...
|
||||
def begin_twophase(self, xid: Optional[Any] = ...): ...
|
||||
def begin_nested(self): ...
|
||||
def begin(self): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type, value, traceback): ...
|
||||
def prepare(self): ...
|
||||
def commit(self): ...
|
||||
def rollback(self): ...
|
||||
def dispose(self): ...
|
||||
@property
|
||||
def closed(self): ...
|
||||
def close(self): ...
|
|
@ -1,22 +0,0 @@
|
|||
from typing import Any, Optional, Dict, Text, Union
|
||||
|
||||
class URL(object):
|
||||
drivername: str = ...
|
||||
username: str = ...
|
||||
password: Any
|
||||
host: Any = ...
|
||||
port: Any = ...
|
||||
database: str = ...
|
||||
query: Dict[str, Any] = ...
|
||||
def __init__(self, drivername, username: Optional[Any] = ..., password: Optional[Any] = ...,
|
||||
host: Optional[Any] = ..., port: Optional[Any] = ..., database: Optional[Any] = ...,
|
||||
query: Optional[Any] = ...) -> None: ...
|
||||
def __to_string__(self, hide_password: bool = ...) -> str: ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def get_backend_name(self): ...
|
||||
def get_driver_name(self): ...
|
||||
def get_dialect(self): ...
|
||||
def translate_connect_args(self, names: Any = ..., **kw): ...
|
||||
|
||||
def make_url(name_or_url: Union[Text, bytes]) -> URL: ...
|
|
@ -1,2 +0,0 @@
|
|||
def connection_memoize(key): ...
|
||||
def py_fallback(): ...
|
|
@ -1,10 +0,0 @@
|
|||
from .api import (
|
||||
CANCEL as CANCEL,
|
||||
NO_RETVAL as NO_RETVAL,
|
||||
listen as listen,
|
||||
listens_for as listens_for,
|
||||
remove as remove,
|
||||
contains as contains
|
||||
)
|
||||
from .base import Events as Events, dispatcher as dispatcher
|
||||
from .attr import RefCollection as RefCollection
|
|
@ -1,9 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
CANCEL: Any = ...
|
||||
NO_RETVAL: Any = ...
|
||||
|
||||
def listen(target, identifier, fn, *args, **kw): ...
|
||||
def listens_for(target, identifier, *args, **kw): ...
|
||||
def remove(target, identifier, fn): ...
|
||||
def contains(target, identifier, fn): ...
|
|
@ -1,4 +0,0 @@
|
|||
from typing import Any
|
||||
from .. import util
|
||||
|
||||
class RefCollection(util.MemoizedSlots): ...
|
|
@ -1,12 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class _EventMeta(type):
|
||||
def __init__(cls, classname, bases, dict_) -> None: ...
|
||||
|
||||
class Events(metaclass=_EventMeta): ...
|
||||
|
||||
class dispatcher(object):
|
||||
dispatch_cls: Any = ...
|
||||
events: Any = ...
|
||||
def __init__(self, events) -> None: ...
|
||||
def __get__(self, obj, cls): ...
|
|
@ -1 +0,0 @@
|
|||
# No public APIs here.
|
|
@ -1,50 +0,0 @@
|
|||
from . import event
|
||||
|
||||
class DDLEvents(event.Events):
|
||||
def before_create(self, target, connection, **kw): ...
|
||||
def after_create(self, target, connection, **kw): ...
|
||||
def before_drop(self, target, connection, **kw): ...
|
||||
def after_drop(self, target, connection, **kw): ...
|
||||
def before_parent_attach(self, target, parent): ...
|
||||
def after_parent_attach(self, target, parent): ...
|
||||
def column_reflect(self, inspector, table, column_info): ...
|
||||
|
||||
class PoolEvents(event.Events):
|
||||
def connect(self, dbapi_connection, connection_record): ...
|
||||
def first_connect(self, dbapi_connection, connection_record): ...
|
||||
def checkout(self, dbapi_connection, connection_record, connection_proxy): ...
|
||||
def checkin(self, dbapi_connection, connection_record): ...
|
||||
def reset(self, dbapi_connection, connection_record): ...
|
||||
def invalidate(self, dbapi_connection, connection_record, exception): ...
|
||||
def soft_invalidate(self, dbapi_connection, connection_record, exception): ...
|
||||
def close(self, dbapi_connection, connection_record): ...
|
||||
def detach(self, dbapi_connection, connection_record): ...
|
||||
def close_detached(self, dbapi_connection): ...
|
||||
|
||||
class ConnectionEvents(event.Events):
|
||||
def before_execute(self, conn, clauseelement, multiparams, params): ...
|
||||
def after_execute(self, conn, clauseelement, multiparams, params, result): ...
|
||||
def before_cursor_execute(self, conn, cursor, statement, parameters, context, executemany): ...
|
||||
def after_cursor_execute(self, conn, cursor, statement, parameters, context, executemany): ...
|
||||
def dbapi_error(self, conn, cursor, statement, parameters, context, exception): ...
|
||||
def handle_error(self, exception_context): ...
|
||||
def engine_connect(self, conn, branch): ...
|
||||
def set_connection_execution_options(self, conn, opts): ...
|
||||
def set_engine_execution_options(self, engine, opts): ...
|
||||
def engine_disposed(self, engine): ...
|
||||
def begin(self, conn): ...
|
||||
def rollback(self, conn): ...
|
||||
def commit(self, conn): ...
|
||||
def savepoint(self, conn, name): ...
|
||||
def rollback_savepoint(self, conn, name, context): ...
|
||||
def release_savepoint(self, conn, name, context): ...
|
||||
def begin_twophase(self, conn, xid): ...
|
||||
def prepare_twophase(self, conn, xid): ...
|
||||
def rollback_twophase(self, conn, xid, is_prepared): ...
|
||||
def commit_twophase(self, conn, xid, is_prepared): ...
|
||||
|
||||
class DialectEvents(event.Events):
|
||||
def do_connect(self, dialect, conn_rec, cargs, cparams): ...
|
||||
def do_executemany(self, cursor, statement, parameters, context): ...
|
||||
def do_execute_no_params(self, cursor, statement, context): ...
|
||||
def do_execute(self, cursor, statement, parameters, context): ...
|
|
@ -1,81 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class SQLAlchemyError(Exception):
|
||||
code: Optional[str] = ...
|
||||
class ArgumentError(SQLAlchemyError): ...
|
||||
|
||||
class ObjectNotExecutableError(ArgumentError):
|
||||
def __init__(self, target) -> None: ...
|
||||
|
||||
class NoSuchModuleError(ArgumentError): ...
|
||||
class NoForeignKeysError(ArgumentError): ...
|
||||
class AmbiguousForeignKeysError(ArgumentError): ...
|
||||
|
||||
class CircularDependencyError(SQLAlchemyError):
|
||||
cycles: Any = ...
|
||||
edges: Any = ...
|
||||
def __init__(self, message, cycles, edges, msg: Optional[Any] = ...) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class CompileError(SQLAlchemyError): ...
|
||||
|
||||
class UnsupportedCompilationError(CompileError):
|
||||
def __init__(self, compiler, element_type) -> None: ...
|
||||
|
||||
class IdentifierError(SQLAlchemyError): ...
|
||||
class DisconnectionError(SQLAlchemyError):
|
||||
invalidate_pool: bool = ...
|
||||
class InvalidatePoolError(DisconnectionError): ...
|
||||
class TimeoutError(SQLAlchemyError): ...
|
||||
class InvalidRequestError(SQLAlchemyError): ...
|
||||
class NoInspectionAvailable(InvalidRequestError): ...
|
||||
class ResourceClosedError(InvalidRequestError): ...
|
||||
class NoSuchColumnError(KeyError, InvalidRequestError): ...
|
||||
class NoReferenceError(InvalidRequestError): ...
|
||||
|
||||
class NoReferencedTableError(NoReferenceError):
|
||||
table_name: str = ...
|
||||
def __init__(self, message, tname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoReferencedColumnError(NoReferenceError):
|
||||
table_name: str = ...
|
||||
column_name: str = ...
|
||||
def __init__(self, message, tname, cname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoSuchTableError(InvalidRequestError): ...
|
||||
class UnboundExecutionError(InvalidRequestError): ...
|
||||
class DontWrapMixin(object): ...
|
||||
|
||||
UnmappedColumnError: Any
|
||||
|
||||
class StatementError(SQLAlchemyError):
|
||||
statement: Any = ...
|
||||
params: Any = ...
|
||||
orig: Any = ...
|
||||
detail: Any = ...
|
||||
def __init__(self, message, statement, params, orig) -> None: ...
|
||||
def add_detail(self, msg): ...
|
||||
def __reduce__(self): ...
|
||||
def __unicode__(self): ...
|
||||
|
||||
class DBAPIError(StatementError):
|
||||
@classmethod
|
||||
def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated: bool = ...,
|
||||
dialect: Optional[Any] = ...): ...
|
||||
def __reduce__(self): ...
|
||||
connection_invalidated: Any = ...
|
||||
def __init__(self, statement, params, orig, connection_invalidated: bool = ...) -> None: ...
|
||||
|
||||
class InterfaceError(DBAPIError): ...
|
||||
class DatabaseError(DBAPIError): ...
|
||||
class DataError(DatabaseError): ...
|
||||
class OperationalError(DatabaseError): ...
|
||||
class IntegrityError(DatabaseError): ...
|
||||
class InternalError(DatabaseError): ...
|
||||
class ProgrammingError(DatabaseError): ...
|
||||
class NotSupportedError(DatabaseError): ...
|
||||
class SADeprecationWarning(DeprecationWarning): ...
|
||||
class SAPendingDeprecationWarning(PendingDeprecationWarning): ...
|
||||
class SAWarning(RuntimeWarning): ...
|
|
@ -1,14 +0,0 @@
|
|||
from . import (
|
||||
declarative as declarative,
|
||||
associationproxy as associationproxy,
|
||||
automap as automap,
|
||||
baked as baked,
|
||||
compiler as compiler,
|
||||
horizontal_shard as horizontal_shard,
|
||||
hybrid as hybrid,
|
||||
indexable as indexable,
|
||||
instrumentation as instrumentation,
|
||||
mutable as mutable,
|
||||
orderinglist as orderinglist,
|
||||
serializer as serializer
|
||||
)
|
|
@ -1,161 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ..orm import interfaces
|
||||
|
||||
def association_proxy(target_collection, attr, **kw): ...
|
||||
|
||||
ASSOCIATION_PROXY: Any = ...
|
||||
|
||||
class AssociationProxy(interfaces.InspectionAttrInfo):
|
||||
is_attribute: bool = ...
|
||||
extension_type: Any = ...
|
||||
target_collection: Any = ...
|
||||
value_attr: Any = ...
|
||||
creator: Any = ...
|
||||
getset_factory: Any = ...
|
||||
proxy_factory: Any = ...
|
||||
proxy_bulk_set: Any = ...
|
||||
owning_class: Any = ...
|
||||
key: Any = ...
|
||||
collection_class: Any = ...
|
||||
info: Any = ...
|
||||
def __init__(self, target_collection, attr, creator: Optional[Any] = ...,
|
||||
getset_factory: Optional[Any] = ..., proxy_factory: Optional[Any] = ...,
|
||||
proxy_bulk_set: Optional[Any] = ..., info: Optional[Any] = ...) -> None: ...
|
||||
@property
|
||||
def remote_attr(self): ...
|
||||
@property
|
||||
def local_attr(self): ...
|
||||
@property
|
||||
def attr(self): ...
|
||||
@property
|
||||
def target_class(self): ...
|
||||
@property
|
||||
def scalar(self): ...
|
||||
def __get__(self, obj, class_): ...
|
||||
def __set__(self, obj, values): ...
|
||||
def __delete__(self, obj): ...
|
||||
def any(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
def has(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
def contains(self, obj): ...
|
||||
def __eq__(self, obj): ...
|
||||
def __ne__(self, obj): ...
|
||||
|
||||
class _lazy_collection(object):
|
||||
ref: Any = ...
|
||||
target: Any = ...
|
||||
def __init__(self, obj, target) -> None: ...
|
||||
def __call__(self): ...
|
||||
|
||||
class _AssociationCollection(object):
|
||||
lazy_collection: Any = ...
|
||||
creator: Any = ...
|
||||
getter: Any = ...
|
||||
setter: Any = ...
|
||||
parent: Any = ...
|
||||
def __init__(self, lazy_collection, creator, getter, setter, parent) -> None: ...
|
||||
col: Any = ...
|
||||
def __len__(self): ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
|
||||
# these classes are returned by AssociationProxy.__get__
|
||||
class _AssociationList(_AssociationCollection):
|
||||
def __getitem__(self, index): ...
|
||||
def __setitem__(self, index, value): ...
|
||||
def __delitem__(self, index): ...
|
||||
def __contains__(self, value): ...
|
||||
def __getslice__(self, start, end): ...
|
||||
def __setslice__(self, start, end, values): ...
|
||||
def __delslice__(self, start, end): ...
|
||||
def __iter__(self): ...
|
||||
def append(self, value): ...
|
||||
def count(self, value): ...
|
||||
def extend(self, values): ...
|
||||
def insert(self, index, value): ...
|
||||
def pop(self, index: int = ...): ...
|
||||
def remove(self, value): ...
|
||||
def reverse(self): ...
|
||||
def sort(self): ...
|
||||
def clear(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
def __cmp__(self, other): ...
|
||||
def __add__(self, iterable): ...
|
||||
def __radd__(self, iterable): ...
|
||||
def __mul__(self, n): ...
|
||||
__rmul__: Any = ...
|
||||
def __iadd__(self, iterable): ...
|
||||
def __imul__(self, n): ...
|
||||
def copy(self): ...
|
||||
def __hash__(self): ...
|
||||
|
||||
class _AssociationDict(_AssociationCollection):
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def has_key(self, key): ...
|
||||
def __iter__(self): ...
|
||||
def clear(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
def __cmp__(self, other): ...
|
||||
def get(self, key, default: Optional[Any] = ...): ...
|
||||
def setdefault(self, key, default: Optional[Any] = ...): ...
|
||||
def keys(self): ...
|
||||
def iteritems(self): ...
|
||||
def itervalues(self): ...
|
||||
def iterkeys(self): ...
|
||||
def values(self): ...
|
||||
def items(self): ...
|
||||
def pop(self, key, default: Any = ...): ...
|
||||
def popitem(self): ...
|
||||
def update(self, *a, **kw): ...
|
||||
def copy(self): ...
|
||||
def __hash__(self): ...
|
||||
|
||||
class _AssociationSet(_AssociationCollection):
|
||||
def __len__(self): ...
|
||||
def __bool__(self): ...
|
||||
def __nonzero__(self): ...
|
||||
def __contains__(self, value): ...
|
||||
def __iter__(self): ...
|
||||
def add(self, value): ...
|
||||
def discard(self, value): ...
|
||||
def remove(self, value): ...
|
||||
def pop(self): ...
|
||||
def update(self, other): ...
|
||||
def __ior__(self, other): ...
|
||||
def union(self, other): ...
|
||||
def __or__(self, other): ...
|
||||
def difference(self, other): ...
|
||||
def __sub__(self, other): ...
|
||||
def difference_update(self, other): ...
|
||||
def __isub__(self, other): ...
|
||||
def intersection(self, other): ...
|
||||
def __and__(self, other): ...
|
||||
def intersection_update(self, other): ...
|
||||
def __iand__(self, other): ...
|
||||
def symmetric_difference(self, other): ...
|
||||
def __xor__(self, other): ...
|
||||
def symmetric_difference_update(self, other): ...
|
||||
def __ixor__(self, other): ...
|
||||
def issubset(self, other): ...
|
||||
def issuperset(self, other): ...
|
||||
def clear(self): ...
|
||||
def copy(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
def __hash__(self): ...
|
|
@ -1,17 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def classname_for_table(base, tablename, table) -> str: ...
|
||||
def name_for_scalar_relationship(base, local_cls, referred_cls, constraint) -> str: ...
|
||||
def name_for_collection_relationship(base, local_cls, referred_cls, constraint) -> str: ...
|
||||
def generate_relationship(base, direction, return_fn, attrname, local_cls, referred_cls, **kw): ...
|
||||
|
||||
class AutomapBase(object):
|
||||
__abstract__: bool = ...
|
||||
classes: Any = ...
|
||||
@classmethod
|
||||
def prepare(cls, engine: Optional[Any] = ..., reflect: bool = ...,
|
||||
schema: Optional[Any] = ..., classname_for_table: Any = ...,
|
||||
collection_class: Any = ..., name_for_scalar_relationship: Any = ...,
|
||||
name_for_collection_relationship: Any = ..., generate_relationship: Any = ...) -> None: ...
|
||||
|
||||
def automap_base(declarative_base: Optional[Any] = ..., **kw): ...
|
|
@ -1,47 +0,0 @@
|
|||
from typing import Any
|
||||
from ..orm import strategies as strategies
|
||||
|
||||
log: Any = ...
|
||||
|
||||
class Bakery(object):
|
||||
cls: Any = ...
|
||||
cache: Any = ...
|
||||
def __init__(self, cls_, cache) -> None: ...
|
||||
def __call__(self, initial_fn, *args) -> None: ...
|
||||
|
||||
class BakedQuery(object):
|
||||
steps: Any = ...
|
||||
def __init__(self, bakery: Bakery, initial_fn, args: Any = ...) -> None: ...
|
||||
@classmethod
|
||||
def bakery(cls, size: int = ...) -> Bakery: ...
|
||||
def __iadd__(self, other): ...
|
||||
def __add__(self, other): ...
|
||||
def add_criteria(self, fn, *args): ...
|
||||
def with_criteria(self, fn, *args): ...
|
||||
def for_session(self, session): ...
|
||||
def __call__(self, session): ...
|
||||
def spoil(self, full: bool = ...): ...
|
||||
|
||||
class Result(object):
|
||||
bq: Any = ...
|
||||
session: Any = ...
|
||||
def __init__(self, bq: BakedQuery, session) -> None: ...
|
||||
def params(self, *args, **kw): ...
|
||||
def __iter__(self): ...
|
||||
def count(self): ...
|
||||
def scalar(self): ...
|
||||
def first(self): ...
|
||||
def one(self): ...
|
||||
def one_or_none(self): ...
|
||||
def all(self): ...
|
||||
def get(self, ident): ...
|
||||
|
||||
def bake_lazy_loaders(): ...
|
||||
def unbake_lazy_loaders(): ...
|
||||
|
||||
class BakedLazyLoader(strategies.LazyLoader): ...
|
||||
|
||||
def baked_lazyload(loadopt, attr): ...
|
||||
def baked_lazyload_all(*keys): ...
|
||||
|
||||
bakery: Bakery = ...
|
|
@ -1,6 +0,0 @@
|
|||
from typing import Callable, TypeVar, Any
|
||||
|
||||
_F = TypeVar('_F', bound=Callable[..., Any])
|
||||
|
||||
def compiles(class_, *specs) -> Callable[[_F], _F]: ...
|
||||
def deregister(class_) -> None: ...
|
|
@ -1,13 +0,0 @@
|
|||
from .api import (
|
||||
declarative_base as declarative_base,
|
||||
synonym_for as synonym_for,
|
||||
comparable_using as comparable_using,
|
||||
instrument_declarative as instrument_declarative,
|
||||
ConcreteBase as ConcreteBase,
|
||||
AbstractConcreteBase as AbstractConcreteBase,
|
||||
DeclarativeMeta as DeclarativeMeta,
|
||||
DeferredReflection as DeferredReflection,
|
||||
has_inherited_table as has_inherited_table,
|
||||
declared_attr as declared_attr,
|
||||
as_declarative as as_declarative
|
||||
)
|
|
@ -1,41 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ...orm import interfaces
|
||||
|
||||
def instrument_declarative(cls, registry, metadata): ...
|
||||
def has_inherited_table(cls): ...
|
||||
|
||||
class DeclarativeMeta(type):
|
||||
def __init__(cls, classname, bases, dict_) -> None: ...
|
||||
def __setattr__(cls, key, value): ...
|
||||
|
||||
def synonym_for(name, map_column: bool = ...): ...
|
||||
def comparable_using(comparator_factory): ...
|
||||
|
||||
class declared_attr(interfaces._MappedAttribute, property):
|
||||
__doc__: Any = ...
|
||||
def __init__(self, fget, cascading: bool = ...) -> None: ...
|
||||
def __get__(desc, self, cls): ...
|
||||
def cascading(cls): ...
|
||||
|
||||
class _stateful_declared_attr(declared_attr):
|
||||
kw: Any = ...
|
||||
def __init__(self, **kw) -> None: ...
|
||||
def __call__(self, fn): ...
|
||||
|
||||
def declarative_base(bind: Optional[Any] = ..., metadata: Optional[Any] = ...,
|
||||
mapper: Optional[Any] = ..., cls: Any = ..., name: str = ...,
|
||||
constructor: Any = ..., class_registry: Optional[Any] = ..., metaclass: Any = ...): ...
|
||||
def as_declarative(**kw): ...
|
||||
|
||||
class ConcreteBase(object):
|
||||
@classmethod
|
||||
def __declare_first__(cls): ...
|
||||
|
||||
class AbstractConcreteBase(ConcreteBase):
|
||||
__no_table__: bool = ...
|
||||
@classmethod
|
||||
def __declare_first__(cls): ...
|
||||
|
||||
class DeferredReflection(object):
|
||||
@classmethod
|
||||
def prepare(cls, engine): ...
|
|
@ -1,4 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
declared_attr: Any = ...
|
||||
declarative_props: Any = ...
|
|
@ -1 +0,0 @@
|
|||
def add_class(classname: str, cls) -> None: ...
|
|
@ -1,21 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ..orm.session import Session
|
||||
from ..orm.query import Query
|
||||
|
||||
class ShardedQuery(Query):
|
||||
id_chooser: Any = ...
|
||||
query_chooser: Any = ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def set_shard(self, shard_id): ...
|
||||
def get(self, ident, **kwargs): ...
|
||||
|
||||
class ShardedSession(Session):
|
||||
shard_chooser: Any = ...
|
||||
id_chooser: Any = ...
|
||||
query_chooser: Any = ...
|
||||
connection_callable: Any = ...
|
||||
def __init__(self, shard_chooser, id_chooser, query_chooser, shards: Optional[Any] = ...,
|
||||
query_cls: Any = ..., **kwargs) -> None: ...
|
||||
def connection(self, *args, **kwargs): ...
|
||||
def get_bind(self, *args, **kw): ...
|
||||
def bind_shard(self, shard_id, bind): ...
|
|
@ -1,62 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ..orm import interfaces
|
||||
|
||||
HYBRID_METHOD: Any = ...
|
||||
HYBRID_PROPERTY: Any = ...
|
||||
|
||||
class hybrid_method(interfaces.InspectionAttrInfo):
|
||||
is_attribute: bool = ...
|
||||
extension_type: Any = ...
|
||||
func: Any = ...
|
||||
def __init__(self, func, expr: Optional[Any] = ...) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
expr: Any = ...
|
||||
def expression(self, expr): ...
|
||||
|
||||
class hybrid_property(interfaces.InspectionAttrInfo):
|
||||
is_attribute: bool = ...
|
||||
extension_type: Any = ...
|
||||
fget: Any = ...
|
||||
fset: Any = ...
|
||||
fdel: Any = ...
|
||||
custom_comparator: Any = ...
|
||||
update_expr: Any = ...
|
||||
def __init__(self, fget, fset: Optional[Any] = ..., fdel: Optional[Any] = ...,
|
||||
expr: Optional[Any] = ..., custom_comparator: Optional[Any] = ...,
|
||||
update_expr: Optional[Any] = ...) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
def __set__(self, instance, value): ...
|
||||
def __delete__(self, instance): ...
|
||||
def getter(self, fget): ...
|
||||
def setter(self, fset): ...
|
||||
def deleter(self, fdel): ...
|
||||
expr: Any = ...
|
||||
def expression(self, expr): ...
|
||||
def comparator(self, comparator): ...
|
||||
def update_expression(self, meth): ...
|
||||
def _copy(self, **kw): ...
|
||||
def _expr_comparator(self): ...
|
||||
def _get_expr(self, expr): ...
|
||||
def _get_comparator(self, comparator): ...
|
||||
@property
|
||||
def overrides(self): ...
|
||||
|
||||
|
||||
class Comparator(interfaces.PropComparator):
|
||||
property: Any = ...
|
||||
expression: Any = ...
|
||||
def __init__(self, expression) -> None: ...
|
||||
def __clause_element__(self): ...
|
||||
def adapt_to_entity(self, adapt_to_entity): ...
|
||||
|
||||
class ExprComparator(Comparator):
|
||||
expression: Any = ...
|
||||
hybrid: Any = ...
|
||||
def __init__(self, expression, hybrid) -> None: ...
|
||||
def __getattr__(self, key): ...
|
||||
@property
|
||||
def info(self): ...
|
||||
@property
|
||||
def property(self): ...
|
||||
def operate(self, op, *other, **kwargs): ...
|
||||
def reverse_operate(self, op, other, **kwargs): ...
|
|
@ -1,15 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ..ext.hybrid import hybrid_property
|
||||
|
||||
class index_property(hybrid_property):
|
||||
attr_name: str = ...
|
||||
index: Any = ...
|
||||
default: Any = ...
|
||||
datatype: Any = ...
|
||||
onebased: Any = ...
|
||||
def __init__(self, attr_name, index, default: Any = ..., datatype: Optional[Any] = ...,
|
||||
mutable: bool = ..., onebased: bool = ...) -> None: ...
|
||||
def fget(self, instance): ...
|
||||
def fset(self, instance, value): ...
|
||||
def fdel(self, instance): ...
|
||||
def expr(self, model): ...
|
|
@ -1,33 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from ..orm.instrumentation import InstrumentationFactory
|
||||
|
||||
INSTRUMENTATION_MANAGER: str = ...
|
||||
|
||||
def find_native_user_instrumentation_hook(cls): ...
|
||||
|
||||
instrumentation_finders: Any = ...
|
||||
|
||||
class ExtendedInstrumentationRegistry(InstrumentationFactory):
|
||||
def unregister(self, class_): ...
|
||||
def manager_of_class(self, cls): ...
|
||||
def state_of(self, instance): ...
|
||||
def dict_of(self, instance): ...
|
||||
|
||||
class InstrumentationManager(object):
|
||||
def __init__(self, class_) -> None: ...
|
||||
def manage(self, class_, manager): ...
|
||||
def dispose(self, class_, manager): ...
|
||||
def manager_getter(self, class_): ...
|
||||
def instrument_attribute(self, class_, key, inst): ...
|
||||
def post_configure_attribute(self, class_, key, inst): ...
|
||||
def install_descriptor(self, class_, key, inst): ...
|
||||
def uninstall_descriptor(self, class_, key): ...
|
||||
def install_member(self, class_, key, implementation): ...
|
||||
def uninstall_member(self, class_, key): ...
|
||||
def instrument_collection_class(self, class_, key, collection_class): ...
|
||||
def get_instance_dict(self, class_, instance): ...
|
||||
def initialize_instance_dict(self, class_, instance): ...
|
||||
def install_state(self, class_, instance, state): ...
|
||||
def remove_state(self, class_, instance): ...
|
||||
def state_getter(self, class_): ...
|
||||
def dict_getter(self, class_): ...
|
|
@ -1,56 +0,0 @@
|
|||
class MutableBase(object):
|
||||
@classmethod
|
||||
def coerce(cls, key, value): ...
|
||||
|
||||
class Mutable(MutableBase):
|
||||
def changed(self): ...
|
||||
@classmethod
|
||||
def associate_with_attribute(cls, attribute): ...
|
||||
@classmethod
|
||||
def associate_with(cls, sqltype): ...
|
||||
@classmethod
|
||||
def as_mutable(cls, sqltype): ...
|
||||
|
||||
class MutableComposite(MutableBase):
|
||||
def changed(self): ...
|
||||
|
||||
class MutableDict(Mutable, dict):
|
||||
def __setitem__(self, key, value): ...
|
||||
def setdefault(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
def update(self, *a, **kw): ...
|
||||
def pop(self, *arg): ...
|
||||
def popitem(self): ...
|
||||
def clear(self): ...
|
||||
@classmethod
|
||||
def coerce(cls, key, value): ...
|
||||
|
||||
class MutableList(Mutable, list):
|
||||
def __setitem__(self, index, value): ...
|
||||
def __setslice__(self, start, end, value): ...
|
||||
def __delitem__(self, index): ...
|
||||
def __delslice__(self, start, end): ...
|
||||
def pop(self, *arg): ...
|
||||
def append(self, x): ...
|
||||
def extend(self, x): ...
|
||||
def insert(self, i, x): ...
|
||||
def remove(self, i): ...
|
||||
def clear(self): ...
|
||||
def sort(self): ...
|
||||
def reverse(self): ...
|
||||
@classmethod
|
||||
def coerce(cls, index, value): ...
|
||||
|
||||
class MutableSet(Mutable, set):
|
||||
def update(self, *arg): ...
|
||||
def intersection_update(self, *arg): ...
|
||||
def difference_update(self, *arg): ...
|
||||
def symmetric_difference_update(self, *arg): ...
|
||||
def add(self, elem): ...
|
||||
def remove(self, elem): ...
|
||||
def discard(self, elem): ...
|
||||
def pop(self, *arg): ...
|
||||
def clear(self): ...
|
||||
@classmethod
|
||||
def coerce(cls, index, value): ...
|
||||
def __reduce_ex__(self, proto): ...
|
|
@ -1,19 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def ordering_list(attr, count_from: Optional[Any] = ..., **kw): ...
|
||||
|
||||
class OrderingList(list):
|
||||
ordering_attr: str = ...
|
||||
ordering_func: Any = ...
|
||||
reorder_on_append: Any = ...
|
||||
def __init__(self, ordering_attr: Optional[str] = ..., ordering_func: Optional[Any] = ...,
|
||||
reorder_on_append: bool = ...) -> None: ...
|
||||
def reorder(self): ...
|
||||
def append(self, entity): ...
|
||||
def insert(self, index, entity): ...
|
||||
def remove(self, entity): ...
|
||||
def __setitem__(self, index, entity): ...
|
||||
def __delitem__(self, index): ...
|
||||
def __setslice__(self, start, end, values): ...
|
||||
def __delslice__(self, start, end): ...
|
||||
def __reduce__(self): ...
|
|
@ -1,9 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from pickle import Pickler, Unpickler
|
||||
|
||||
def Serializer(*args, **kw) -> Pickler: ...
|
||||
def Deserializer(file, metadata: Optional[Any] = ..., scoped_session: Optional[Any] = ...,
|
||||
engine: Optional[Any] = ...) -> Unpickler: ...
|
||||
def dumps(obj, protocol: int = ...) -> bytes: ...
|
||||
def loads(data, metadata: Optional[Any] = ..., scoped_session: Optional[Any] = ...,
|
||||
engine: Optional[Any] = ...): ...
|
|
@ -1,3 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def inspect(subject: object, raiseerr: bool = ...) -> Any: ...
|
|
@ -1,21 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class PoolListener(object):
|
||||
def connect(self, dbapi_con, con_record): ...
|
||||
def first_connect(self, dbapi_con, con_record): ...
|
||||
def checkout(self, dbapi_con, con_record, con_proxy): ...
|
||||
def checkin(self, dbapi_con, con_record): ...
|
||||
|
||||
class ConnectionProxy(object):
|
||||
def execute(self, conn, execute, clauseelement, *multiparams, **params): ...
|
||||
def cursor_execute(self, execute, cursor, statement, parameters, context, executemany): ...
|
||||
def begin(self, conn, begin): ...
|
||||
def rollback(self, conn, rollback): ...
|
||||
def commit(self, conn, commit): ...
|
||||
def savepoint(self, conn, savepoint, name: Optional[Any] = ...): ...
|
||||
def rollback_savepoint(self, conn, rollback_savepoint, name, context): ...
|
||||
def release_savepoint(self, conn, release_savepoint, name, context): ...
|
||||
def begin_twophase(self, conn, begin_twophase, xid): ...
|
||||
def prepare_twophase(self, conn, prepare_twophase, xid): ...
|
||||
def rollback_twophase(self, conn, rollback_twophase, xid, is_prepared): ...
|
||||
def commit_twophase(self, conn, commit_twophase, xid, is_prepared): ...
|
|
@ -1,32 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
rootlogger: Any = ...
|
||||
|
||||
def class_logger(cls): ...
|
||||
|
||||
class Identified(object):
|
||||
logging_name: str = ...
|
||||
def _should_log_debug(self) -> bool: ...
|
||||
def _should_log_info(self) -> bool: ...
|
||||
|
||||
class InstanceLogger(object):
|
||||
echo: Any
|
||||
logger: Any = ...
|
||||
def __init__(self, echo, name) -> None: ...
|
||||
def debug(self, msg, *args, **kwargs): ...
|
||||
def info(self, msg, *args, **kwargs): ...
|
||||
def warning(self, msg, *args, **kwargs): ...
|
||||
def warn(self, msg, *args, **kwargs): ...
|
||||
def error(self, msg, *args, **kwargs): ...
|
||||
def exception(self, msg, *args, **kwargs): ...
|
||||
def critical(self, msg, *args, **kwargs): ...
|
||||
def log(self, level, msg, *args, **kwargs): ...
|
||||
def isEnabledFor(self, level): ...
|
||||
def getEffectiveLevel(self): ...
|
||||
|
||||
def instance_logger(instance, echoflag: Optional[Any] = ...): ...
|
||||
|
||||
class echo_property(object):
|
||||
__doc__: str = ...
|
||||
def __get__(self, instance, owner): ...
|
||||
def __set__(self, instance, value): ...
|
|
@ -1,91 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .mapper import (
|
||||
Mapper as Mapper,
|
||||
class_mapper as class_mapper,
|
||||
configure_mappers as configure_mappers,
|
||||
reconstructor as reconstructor,
|
||||
validates as validates
|
||||
)
|
||||
from .interfaces import (
|
||||
EXT_CONTINUE as EXT_CONTINUE,
|
||||
EXT_STOP as EXT_STOP,
|
||||
PropComparator as PropComparator
|
||||
)
|
||||
from .util import (
|
||||
aliased as aliased,
|
||||
join as join,
|
||||
object_mapper as object_mapper,
|
||||
outerjoin as outerjoin,
|
||||
polymorphic_union as polymorphic_union,
|
||||
was_deleted as was_deleted,
|
||||
with_parent as with_parent,
|
||||
with_polymorphic as with_polymorphic
|
||||
)
|
||||
from .properties import ColumnProperty as ColumnProperty
|
||||
from .relationships import RelationshipProperty as RelationshipProperty
|
||||
from .descriptor_props import (
|
||||
ComparableProperty as ComparableProperty,
|
||||
CompositeProperty as CompositeProperty,
|
||||
SynonymProperty as SynonymProperty
|
||||
)
|
||||
from .relationships import foreign as foreign, remote as remote
|
||||
from .session import (
|
||||
Session as Session,
|
||||
close_all_sessions as close_all_sessions,
|
||||
object_session as object_session,
|
||||
sessionmaker as sessionmaker,
|
||||
make_transient as make_transient,
|
||||
make_transient_to_detached as make_transient_to_detached
|
||||
)
|
||||
from .scoping import scoped_session as scoped_session
|
||||
from . import mapper as mapperlib
|
||||
from .query import AliasOption as AliasOption, Query as Query, Bundle as Bundle
|
||||
from .strategy_options import Load as Load
|
||||
|
||||
def create_session(bind: Optional[Any] = ..., **kwargs): ...
|
||||
|
||||
relationship = RelationshipProperty
|
||||
|
||||
def relation(*arg, **kw): ...
|
||||
def dynamic_loader(argument, **kw): ...
|
||||
|
||||
column_property = ColumnProperty
|
||||
composite = CompositeProperty
|
||||
|
||||
def query_expression() -> ColumnProperty: ...
|
||||
|
||||
def backref(name, **kwargs): ...
|
||||
def deferred(*columns, **kw): ...
|
||||
|
||||
mapper = Mapper
|
||||
synonym = SynonymProperty
|
||||
comparable_property = ComparableProperty
|
||||
|
||||
def compile_mappers(): ...
|
||||
def clear_mappers(): ...
|
||||
|
||||
# TODO: these are function "aliases"
|
||||
joinedload: Any = ...
|
||||
joinedload_all: Any = ...
|
||||
contains_eager: Any = ...
|
||||
defer: Any = ...
|
||||
undefer: Any = ...
|
||||
undefer_group: Any = ...
|
||||
with_expression: Any = ...
|
||||
load_only: Any = ...
|
||||
lazyload: Any = ...
|
||||
lazyload_all: Any = ...
|
||||
subqueryload: Any = ...
|
||||
subqueryload_all: Any = ...
|
||||
selectinload: Any = ...
|
||||
selectinload_all: Any = ...
|
||||
immediateload: Any = ...
|
||||
noload: Any = ...
|
||||
raiseload: Any = ...
|
||||
defaultload: Any = ...
|
||||
selectin_polymorphic: Any = ...
|
||||
|
||||
def eagerload(*args, **kwargs): ...
|
||||
def eagerload_all(*args, **kwargs): ...
|
||||
|
||||
contains_alias = AliasOption
|
|
@ -1,194 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from . import interfaces
|
||||
from .base import (
|
||||
PASSIVE_NO_RESULT as PASSIVE_NO_RESULT,
|
||||
ATTR_WAS_SET as ATTR_WAS_SET,
|
||||
ATTR_EMPTY as ATTR_EMPTY,
|
||||
NO_VALUE as NO_VALUE,
|
||||
NEVER_SET as NEVER_SET,
|
||||
NO_CHANGE as NO_CHANGE,
|
||||
CALLABLES_OK as CALLABLES_OK,
|
||||
SQL_OK as SQL_OK,
|
||||
RELATED_OBJECT_OK as RELATED_OBJECT_OK,
|
||||
INIT_OK as INIT_OK,
|
||||
NON_PERSISTENT_OK as NON_PERSISTENT_OK,
|
||||
LOAD_AGAINST_COMMITTED as LOAD_AGAINST_COMMITTED,
|
||||
PASSIVE_OFF as PASSIVE_OFF,
|
||||
PASSIVE_RETURN_NEVER_SET as PASSIVE_RETURN_NEVER_SET,
|
||||
PASSIVE_NO_INITIALIZE as PASSIVE_NO_INITIALIZE,
|
||||
PASSIVE_NO_FETCH as PASSIVE_NO_FETCH,
|
||||
PASSIVE_NO_FETCH_RELATED as PASSIVE_NO_FETCH_RELATED,
|
||||
PASSIVE_ONLY_PERSISTENT as PASSIVE_ONLY_PERSISTENT,
|
||||
NO_AUTOFLUSH as NO_AUTOFLUSH
|
||||
)
|
||||
from .base import state_str as state_str, instance_str as instance_str
|
||||
from collections import namedtuple
|
||||
|
||||
class QueryableAttribute(interfaces._MappedAttribute, interfaces.InspectionAttr, interfaces.PropComparator):
|
||||
is_attribute: bool = ...
|
||||
class_: Any = ...
|
||||
key: Any = ...
|
||||
impl: Any = ...
|
||||
comparator: Any = ...
|
||||
def __init__(self, class_, key, impl: Optional[Any] = ..., comparator: Optional[Any] = ...,
|
||||
parententity: Optional[Any] = ..., of_type: Optional[Any] = ...) -> None: ...
|
||||
def get_history(self, instance, passive: Any = ...): ...
|
||||
def __selectable__(self): ...
|
||||
@property
|
||||
def info(self): ...
|
||||
@property
|
||||
def parent(self): ...
|
||||
@property
|
||||
def expression(self): ...
|
||||
def __clause_element__(self): ...
|
||||
def adapt_to_entity(self, adapt_to_entity): ...
|
||||
def of_type(self, cls): ...
|
||||
def label(self, name): ...
|
||||
def operate(self, op, *other, **kwargs): ...
|
||||
def reverse_operate(self, op, other, **kwargs): ...
|
||||
def hasparent(self, state, optimistic: bool = ...): ...
|
||||
def __getattr__(self, key): ...
|
||||
@property
|
||||
def property(self): ...
|
||||
|
||||
class InstrumentedAttribute(QueryableAttribute):
|
||||
def __set__(self, instance, value): ...
|
||||
def __delete__(self, instance): ...
|
||||
def __get__(self, instance, owner): ...
|
||||
|
||||
def create_proxied_attribute(descriptor): ...
|
||||
|
||||
OP_REMOVE: Any = ...
|
||||
OP_APPEND: Any = ...
|
||||
OP_REPLACE: Any = ...
|
||||
|
||||
class Event(object):
|
||||
impl: Any = ...
|
||||
op: Any = ...
|
||||
parent_token: Any = ...
|
||||
def __init__(self, attribute_impl, op) -> None: ...
|
||||
def __eq__(self, other): ...
|
||||
@property
|
||||
def key(self): ...
|
||||
def hasparent(self, state): ...
|
||||
|
||||
class AttributeImpl(object):
|
||||
class_: Any = ...
|
||||
key: Any = ...
|
||||
callable_: Any = ...
|
||||
dispatch: Any = ...
|
||||
trackparent: Any = ...
|
||||
parent_token: Any = ...
|
||||
send_modified_events: Any = ...
|
||||
is_equal: Any = ...
|
||||
expire_missing: Any = ...
|
||||
def __init__(self, class_, key, callable_, dispatch, trackparent: bool = ..., extension: Optional[Any] = ...,
|
||||
compare_function: Optional[Any] = ..., active_history: bool = ...,
|
||||
parent_token: Optional[Any] = ..., expire_missing: bool = ...,
|
||||
send_modified_events: bool = ..., **kwargs) -> None: ...
|
||||
active_history: Any = ...
|
||||
def hasparent(self, state, optimistic: bool = ...): ...
|
||||
def sethasparent(self, state, parent_state, value): ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
def get_all_pending(self, state, dict_, passive: Any = ...): ...
|
||||
def initialize(self, state, dict_): ...
|
||||
def get(self, state, dict_, passive: Any = ...): ...
|
||||
def append(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def remove(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def pop(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def set(self, state, dict_, value, initiator, passive: Any = ...,
|
||||
check_old: Optional[Any] = ..., pop: bool = ...): ...
|
||||
def get_committed_value(self, state, dict_, passive: Any = ...): ...
|
||||
def set_committed_value(self, state, dict_, value): ...
|
||||
|
||||
class ScalarAttributeImpl(AttributeImpl):
|
||||
accepts_scalar_loader: bool = ...
|
||||
uses_objects: bool = ...
|
||||
supports_population: bool = ...
|
||||
collection: bool = ...
|
||||
def __init__(self, *arg, **kw) -> None: ...
|
||||
def delete(self, state, dict_): ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
def set(self, state, dict_, value, initiator, passive: Any = ...,
|
||||
check_old: Optional[Any] = ..., pop: bool = ...): ...
|
||||
def fire_replace_event(self, state, dict_, value, previous, initiator): ...
|
||||
def fire_remove_event(self, state, dict_, value, initiator): ...
|
||||
@property
|
||||
def type(self): ...
|
||||
|
||||
class ScalarObjectAttributeImpl(ScalarAttributeImpl):
|
||||
accepts_scalar_loader: bool = ...
|
||||
uses_objects: bool = ...
|
||||
supports_population: bool = ...
|
||||
collection: bool = ...
|
||||
def delete(self, state, dict_): ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
def get_all_pending(self, state, dict_, passive: Any = ...): ...
|
||||
def set(self, state, dict_, value, initiator, passive: Any = ...,
|
||||
check_old: Optional[Any] = ..., pop: bool = ...): ...
|
||||
def fire_remove_event(self, state, dict_, value, initiator): ...
|
||||
def fire_replace_event(self, state, dict_, value, previous, initiator): ...
|
||||
|
||||
class CollectionAttributeImpl(AttributeImpl):
|
||||
accepts_scalar_loader: bool = ...
|
||||
uses_objects: bool = ...
|
||||
supports_population: bool = ...
|
||||
collection: bool = ...
|
||||
copy: Any = ...
|
||||
collection_factory: Any = ...
|
||||
def __init__(self, class_, key, callable_, dispatch, typecallable: Optional[Any] = ...,
|
||||
trackparent: bool = ..., extension: Optional[Any] = ...,
|
||||
copy_function: Optional[Any] = ..., compare_function: Optional[Any] = ..., **kwargs) -> None: ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
def get_all_pending(self, state, dict_, passive: Any = ...): ...
|
||||
def fire_append_event(self, state, dict_, value, initiator): ...
|
||||
def fire_pre_remove_event(self, state, dict_, initiator): ...
|
||||
def fire_remove_event(self, state, dict_, value, initiator): ...
|
||||
def delete(self, state, dict_): ...
|
||||
def initialize(self, state, dict_): ...
|
||||
def append(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def remove(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def pop(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def set(self, *args, **kwargs): ...
|
||||
def set_committed_value(self, state, dict_, value): ...
|
||||
def get_collection(self, state, dict_, user_data: Optional[Any] = ..., passive: Any = ...): ...
|
||||
|
||||
def backref_listeners(attribute, key, uselist): ...
|
||||
|
||||
_History = namedtuple('_History', ['added', 'unchanged', 'deleted'])
|
||||
|
||||
class History(_History):
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
def empty(self): ...
|
||||
def sum(self): ...
|
||||
def non_deleted(self): ...
|
||||
def non_added(self): ...
|
||||
def has_changes(self): ...
|
||||
def as_state(self): ...
|
||||
@classmethod
|
||||
def from_scalar_attribute(cls, attribute, state, current): ...
|
||||
@classmethod
|
||||
def from_object_attribute(cls, attribute, state, current): ...
|
||||
@classmethod
|
||||
def from_collection(cls, attribute, state, current): ...
|
||||
|
||||
HISTORY_BLANK: Any = ...
|
||||
|
||||
def get_history(obj, key, passive: Any = ...): ...
|
||||
def get_state_history(state, key, passive: Any = ...): ...
|
||||
def has_parent(cls, obj, key, optimistic: bool = ...): ...
|
||||
def register_attribute(class_, key, **kw): ...
|
||||
def register_attribute_impl(class_, key, uselist: bool = ..., callable_: Optional[Any] = ...,
|
||||
useobject: bool = ..., impl_class: Optional[Any] = ...,
|
||||
backref: Optional[Any] = ..., **kw): ...
|
||||
def register_descriptor(class_, key, comparator: Optional[Any] = ...,
|
||||
parententity: Optional[Any] = ..., doc: Optional[Any] = ...): ...
|
||||
def unregister_attribute(class_, key): ...
|
||||
def init_collection(obj, key): ...
|
||||
def init_state_collection(state, dict_, key): ...
|
||||
def set_committed_value(instance, key, value): ...
|
||||
def set_attribute(instance, key, value): ...
|
||||
def get_attribute(instance, key): ...
|
||||
def del_attribute(instance, key): ...
|
||||
def flag_modified(instance, key): ...
|
|
@ -1,60 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
PASSIVE_NO_RESULT: Any = ...
|
||||
ATTR_WAS_SET: Any = ...
|
||||
ATTR_EMPTY: Any = ...
|
||||
NO_VALUE: Any = ...
|
||||
NEVER_SET: Any = ...
|
||||
NO_CHANGE: Any = ...
|
||||
CALLABLES_OK: Any = ...
|
||||
SQL_OK: Any = ...
|
||||
RELATED_OBJECT_OK: Any = ...
|
||||
INIT_OK: Any = ...
|
||||
NON_PERSISTENT_OK: Any = ...
|
||||
LOAD_AGAINST_COMMITTED: Any = ...
|
||||
NO_AUTOFLUSH: Any = ...
|
||||
PASSIVE_OFF: Any = ...
|
||||
PASSIVE_RETURN_NEVER_SET: Any = ...
|
||||
PASSIVE_NO_INITIALIZE: Any = ...
|
||||
PASSIVE_NO_FETCH: Any = ...
|
||||
PASSIVE_NO_FETCH_RELATED: Any = ...
|
||||
PASSIVE_ONLY_PERSISTENT: Any = ...
|
||||
DEFAULT_MANAGER_ATTR: str = ...
|
||||
DEFAULT_STATE_ATTR: str = ...
|
||||
EXT_CONTINUE: Any = ...
|
||||
EXT_STOP: Any = ...
|
||||
ONETOMANY: Any = ...
|
||||
MANYTOONE: Any = ...
|
||||
MANYTOMANY: Any = ...
|
||||
NOT_EXTENSION: Any = ...
|
||||
|
||||
def manager_of_class(cls): ...
|
||||
|
||||
instance_state: Any = ...
|
||||
instance_dict: Any = ...
|
||||
|
||||
def instance_str(instance): ...
|
||||
def state_str(state): ...
|
||||
def state_class_str(state): ...
|
||||
def attribute_str(instance, attribute): ...
|
||||
def state_attribute_str(state, attribute): ...
|
||||
def object_mapper(instance): ...
|
||||
def object_state(instance): ...
|
||||
def class_mapper(class_, configure: bool = ...): ...
|
||||
|
||||
class InspectionAttr(object):
|
||||
is_selectable: bool = ...
|
||||
is_aliased_class: bool = ...
|
||||
is_instance: bool = ...
|
||||
is_mapper: bool = ...
|
||||
is_property: bool = ...
|
||||
is_attribute: bool = ...
|
||||
is_clause_element: bool = ...
|
||||
extension_type: Any = ...
|
||||
|
||||
class InspectionAttrInfo(InspectionAttr):
|
||||
@property
|
||||
def info(self): ...
|
||||
|
||||
# used by interfaces.pyi
|
||||
class _MappedAttribute(object): ...
|
|
@ -1,64 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def column_mapped_collection(mapping_spec): ...
|
||||
def attribute_mapped_collection(attr_name): ...
|
||||
def mapped_collection(keyfunc): ...
|
||||
|
||||
class collection(object):
|
||||
@staticmethod
|
||||
def appender(fn): ...
|
||||
@staticmethod
|
||||
def remover(fn): ...
|
||||
@staticmethod
|
||||
def iterator(fn): ...
|
||||
@staticmethod
|
||||
def internally_instrumented(fn): ...
|
||||
@staticmethod
|
||||
def linker(fn): ...
|
||||
link: Any = ...
|
||||
@staticmethod
|
||||
def converter(fn): ...
|
||||
@staticmethod
|
||||
def adds(arg): ...
|
||||
@staticmethod
|
||||
def replaces(arg): ...
|
||||
@staticmethod
|
||||
def removes(arg): ...
|
||||
@staticmethod
|
||||
def removes_return(): ...
|
||||
|
||||
collection_adapter: Any = ...
|
||||
|
||||
class CollectionAdapter(object):
|
||||
attr: Any = ...
|
||||
owner_state: Any = ...
|
||||
invalidated: bool = ...
|
||||
def __init__(self, attr, owner_state, data) -> None: ...
|
||||
@property
|
||||
def data(self): ...
|
||||
def bulk_appender(self): ...
|
||||
def append_with_event(self, item, initiator: Optional[Any] = ...): ...
|
||||
def append_without_event(self, item): ...
|
||||
def append_multiple_without_event(self, items): ...
|
||||
def bulk_remover(self): ...
|
||||
def remove_with_event(self, item, initiator: Optional[Any] = ...): ...
|
||||
def remove_without_event(self, item): ...
|
||||
def clear_with_event(self, initiator: Optional[Any] = ...): ...
|
||||
def clear_without_event(self): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
def fire_append_event(self, item, initiator: Optional[Any] = ...): ...
|
||||
def fire_remove_event(self, item, initiator: Optional[Any] = ...): ...
|
||||
def fire_pre_remove_event(self, initiator: Optional[Any] = ...): ...
|
||||
|
||||
class InstrumentedList(list): ...
|
||||
class InstrumentedSet(set): ...
|
||||
class InstrumentedDict(dict): ...
|
||||
|
||||
class MappedCollection(dict):
|
||||
keyfunc: Any = ...
|
||||
def __init__(self, keyfunc) -> None: ...
|
||||
def set(self, value, _sa_initiator: Optional[Any] = ...): ...
|
||||
def remove(self, value, _sa_initiator: Optional[Any] = ...): ...
|
|
@ -1,74 +0,0 @@
|
|||
from typing import Any
|
||||
from .. import exc as sa_exc
|
||||
from . import util as mapperutil
|
||||
from .interfaces import (
|
||||
ONETOMANY as ONETOMANY,
|
||||
MANYTOONE as MANYTOONE,
|
||||
MANYTOMANY as MANYTOMANY
|
||||
)
|
||||
|
||||
class DependencyProcessor(object):
|
||||
prop: Any = ...
|
||||
cascade: Any = ...
|
||||
mapper: Any = ...
|
||||
parent: Any = ...
|
||||
secondary: Any = ...
|
||||
direction: Any = ...
|
||||
post_update: Any = ...
|
||||
passive_deletes: Any = ...
|
||||
passive_updates: Any = ...
|
||||
enable_typechecks: Any = ...
|
||||
key: Any = ...
|
||||
def __init__(self, prop) -> None: ...
|
||||
@classmethod
|
||||
def from_relationship(cls, prop): ...
|
||||
def hasparent(self, state): ...
|
||||
def per_property_preprocessors(self, uow): ...
|
||||
def per_property_flush_actions(self, uow): ...
|
||||
def per_state_flush_actions(self, uow, states, isdelete): ...
|
||||
def presort_deletes(self, uowcommit, states): ...
|
||||
def presort_saves(self, uowcommit, states): ...
|
||||
def process_deletes(self, uowcommit, states): ...
|
||||
def process_saves(self, uowcommit, states): ...
|
||||
def prop_has_changes(self, uowcommit, states, isdelete): ...
|
||||
|
||||
class OneToManyDP(DependencyProcessor):
|
||||
def per_property_dependencies(self, uow, parent_saves, child_saves, parent_deletes,
|
||||
child_deletes, after_save, before_delete): ...
|
||||
def per_state_dependencies(self, uow, save_parent, delete_parent, child_action,
|
||||
after_save, before_delete, isdelete, childisdelete): ...
|
||||
def presort_deletes(self, uowcommit, states): ...
|
||||
def presort_saves(self, uowcommit, states): ...
|
||||
def process_deletes(self, uowcommit, states): ...
|
||||
def process_saves(self, uowcommit, states): ...
|
||||
|
||||
class ManyToOneDP(DependencyProcessor):
|
||||
def __init__(self, prop) -> None: ...
|
||||
def per_property_dependencies(self, uow, parent_saves, child_saves, parent_deletes,
|
||||
child_deletes, after_save, before_delete): ...
|
||||
def per_state_dependencies(self, uow, save_parent, delete_parent, child_action,
|
||||
after_save, before_delete, isdelete, childisdelete): ...
|
||||
def presort_deletes(self, uowcommit, states): ...
|
||||
def presort_saves(self, uowcommit, states): ...
|
||||
def process_deletes(self, uowcommit, states): ...
|
||||
def process_saves(self, uowcommit, states): ...
|
||||
|
||||
class DetectKeySwitch(DependencyProcessor):
|
||||
def per_property_preprocessors(self, uow): ...
|
||||
def per_property_flush_actions(self, uow): ...
|
||||
def per_state_flush_actions(self, uow, states, isdelete): ...
|
||||
def presort_deletes(self, uowcommit, states): ...
|
||||
def presort_saves(self, uow, states): ...
|
||||
def prop_has_changes(self, uow, states, isdelete): ...
|
||||
def process_deletes(self, uowcommit, states): ...
|
||||
def process_saves(self, uowcommit, states): ...
|
||||
|
||||
class ManyToManyDP(DependencyProcessor):
|
||||
def per_property_dependencies(self, uow, parent_saves, child_saves, parent_deletes,
|
||||
child_deletes, after_save, before_delete): ...
|
||||
def per_state_dependencies(self, uow, save_parent, delete_parent, child_action,
|
||||
after_save, before_delete, isdelete, childisdelete): ...
|
||||
def presort_deletes(self, uowcommit, states): ...
|
||||
def presort_saves(self, uowcommit, states): ...
|
||||
def process_deletes(self, uowcommit, states): ...
|
||||
def process_saves(self, uowcommit, states): ...
|
|
@ -1,65 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .interfaces import (
|
||||
MapperProperty as MapperProperty,
|
||||
PropComparator as PropComparator
|
||||
)
|
||||
from . import query
|
||||
|
||||
class DescriptorProperty(MapperProperty):
|
||||
doc: Any = ...
|
||||
key: Any = ...
|
||||
descriptor: Any = ...
|
||||
def instrument_class(self, mapper): ...
|
||||
|
||||
class CompositeProperty(DescriptorProperty):
|
||||
attrs: Any = ...
|
||||
composite_class: Any = ...
|
||||
active_history: Any = ...
|
||||
deferred: Any = ...
|
||||
group: Any = ...
|
||||
comparator_factory: Any = ...
|
||||
info: Any = ...
|
||||
def __init__(self, class_, *attrs, **kwargs) -> None: ...
|
||||
def instrument_class(self, mapper): ...
|
||||
def do_init(self): ...
|
||||
@property
|
||||
def props(self): ...
|
||||
@property
|
||||
def columns(self): ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
class CompositeBundle(query.Bundle):
|
||||
property: Any = ...
|
||||
def __init__(self, property, expr) -> None: ...
|
||||
def create_row_processor(self, query, procs, labels): ...
|
||||
class Comparator(PropComparator):
|
||||
__hash__: Any = ...
|
||||
@property
|
||||
def clauses(self): ...
|
||||
def __clause_element__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class ConcreteInheritedProperty(DescriptorProperty):
|
||||
descriptor: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class SynonymProperty(DescriptorProperty):
|
||||
name: str = ...
|
||||
map_column: Any = ...
|
||||
descriptor: Any = ...
|
||||
comparator_factory: Any = ...
|
||||
doc: Any = ...
|
||||
info: Any = ...
|
||||
def __init__(self, name, map_column: Optional[Any] = ..., descriptor: Optional[Any] = ...,
|
||||
comparator_factory: Optional[Any] = ..., doc: Optional[Any] = ...,
|
||||
info: Optional[Any] = ...) -> None: ...
|
||||
parent: Any = ...
|
||||
def set_parent(self, parent, init): ...
|
||||
|
||||
class ComparableProperty(DescriptorProperty):
|
||||
descriptor: Any = ...
|
||||
comparator_factory: Any = ...
|
||||
doc: Any = ...
|
||||
info: Any = ...
|
||||
def __init__(self, comparator_factory, descriptor: Optional[Any] = ...,
|
||||
doc: Optional[Any] = ..., info: Optional[Any] = ...) -> None: ...
|
|
@ -1,63 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from . import strategies
|
||||
from . import attributes
|
||||
from .query import Query as Query
|
||||
|
||||
class DynaLoader(strategies.AbstractRelationshipLoader):
|
||||
is_class_level: bool = ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
|
||||
class DynamicAttributeImpl(attributes.AttributeImpl):
|
||||
uses_objects: bool = ...
|
||||
accepts_scalar_loader: bool = ...
|
||||
supports_population: bool = ...
|
||||
collection: bool = ...
|
||||
target_mapper: Any = ...
|
||||
order_by: Any = ...
|
||||
query_class: Any = ...
|
||||
def __init__(self, class_, key, typecallable, dispatch, target_mapper, order_by,
|
||||
query_class: Optional[Any] = ..., **kw) -> None: ...
|
||||
def get(self, state, dict_, passive: Any = ...): ...
|
||||
def get_collection(self, state, dict_, user_data: Optional[Any] = ..., passive: Any = ...): ...
|
||||
def fire_append_event(self, state, dict_, value, initiator, collection_history: Optional[Any] = ...): ...
|
||||
def fire_remove_event(self, state, dict_, value, initiator, collection_history: Optional[Any] = ...): ...
|
||||
def set(self, state, dict_, value, initiator: Optional[Any] = ..., passive: Any = ...,
|
||||
check_old: Optional[Any] = ..., pop: bool = ..., _adapt: bool = ...): ...
|
||||
def delete(self, *args, **kwargs): ...
|
||||
def set_committed_value(self, state, dict_, value): ...
|
||||
def get_history(self, state, dict_, passive: Any = ...): ...
|
||||
def get_all_pending(self, state, dict_, passive: Any = ...): ...
|
||||
def append(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def remove(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
def pop(self, state, dict_, value, initiator, passive: Any = ...): ...
|
||||
|
||||
class AppenderMixin(object):
|
||||
query_class: Any = ...
|
||||
instance: Any = ...
|
||||
attr: Any = ...
|
||||
def __init__(self, attr, state) -> None: ...
|
||||
session: Any = ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, index): ...
|
||||
def count(self): ...
|
||||
def extend(self, iterator): ...
|
||||
def append(self, item): ...
|
||||
def remove(self, item): ...
|
||||
|
||||
class AppenderQuery(AppenderMixin, Query): ...
|
||||
|
||||
def mixin_user_query(cls): ...
|
||||
|
||||
class CollectionHistory(object):
|
||||
unchanged_items: Any = ...
|
||||
added_items: Any = ...
|
||||
deleted_items: Any = ...
|
||||
def __init__(self, attr, state, apply_to: Optional[Any] = ...) -> None: ...
|
||||
@property
|
||||
def added_plus_unchanged(self): ...
|
||||
@property
|
||||
def all_items(self): ...
|
||||
def as_history(self): ...
|
||||
def indexed(self, index): ...
|
||||
def add_added(self, value): ...
|
||||
def add_removed(self, value): ...
|
|
@ -1,17 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class UnevaluatableError(Exception): ...
|
||||
|
||||
class EvaluatorCompiler(object):
|
||||
target_cls: Any = ...
|
||||
def __init__(self, target_cls: Optional[Any] = ...) -> None: ...
|
||||
def process(self, clause): ...
|
||||
def visit_grouping(self, clause): ...
|
||||
def visit_null(self, clause): ...
|
||||
def visit_false(self, clause): ...
|
||||
def visit_true(self, clause): ...
|
||||
def visit_column(self, clause): ...
|
||||
def visit_clauselist(self, clause): ...
|
||||
def visit_binary(self, clause): ...
|
||||
def visit_unary(self, clause): ...
|
||||
def visit_bindparam(self, clause): ...
|
|
@ -1,92 +0,0 @@
|
|||
from typing import Any
|
||||
from .. import event
|
||||
|
||||
class InstrumentationEvents(event.Events):
|
||||
def class_instrument(self, cls): ...
|
||||
def class_uninstrument(self, cls): ...
|
||||
def attribute_instrument(self, cls, key, inst): ...
|
||||
|
||||
class _InstrumentationEventsHold(object):
|
||||
class_: Any = ...
|
||||
def __init__(self, class_) -> None: ...
|
||||
dispatch: Any = ...
|
||||
|
||||
class InstanceEvents(event.Events):
|
||||
def first_init(self, manager, cls): ...
|
||||
def init(self, target, args, kwargs): ...
|
||||
def init_failure(self, target, args, kwargs): ...
|
||||
def load(self, target, context): ...
|
||||
def refresh(self, target, context, attrs): ...
|
||||
def refresh_flush(self, target, flush_context, attrs): ...
|
||||
def expire(self, target, attrs): ...
|
||||
def pickle(self, target, state_dict): ...
|
||||
def unpickle(self, target, state_dict): ...
|
||||
|
||||
class _EventsHold(event.RefCollection):
|
||||
class_: Any = ...
|
||||
def __init__(self, class_) -> None: ...
|
||||
class HoldEvents(object): ...
|
||||
def remove(self, event_key): ...
|
||||
@classmethod
|
||||
def populate(cls, class_, subject): ...
|
||||
|
||||
class _InstanceEventsHold(_EventsHold):
|
||||
all_holds: Any = ...
|
||||
def resolve(self, class_): ...
|
||||
class HoldInstanceEvents(_EventsHold.HoldEvents, InstanceEvents): ...
|
||||
dispatch: Any = ...
|
||||
|
||||
class MapperEvents(event.Events):
|
||||
def instrument_class(self, mapper, class_): ...
|
||||
def mapper_configured(self, mapper, class_): ...
|
||||
def before_configured(self): ...
|
||||
def after_configured(self): ...
|
||||
def before_insert(self, mapper, connection, target): ...
|
||||
def after_insert(self, mapper, connection, target): ...
|
||||
def before_update(self, mapper, connection, target): ...
|
||||
def after_update(self, mapper, connection, target): ...
|
||||
def before_delete(self, mapper, connection, target): ...
|
||||
def after_delete(self, mapper, connection, target): ...
|
||||
|
||||
class _MapperEventsHold(_EventsHold):
|
||||
all_holds: Any = ...
|
||||
def resolve(self, class_): ...
|
||||
class HoldMapperEvents(_EventsHold.HoldEvents, MapperEvents): ...
|
||||
dispatch: Any = ...
|
||||
|
||||
class SessionEvents(event.Events):
|
||||
def after_transaction_create(self, session, transaction): ...
|
||||
def after_transaction_end(self, session, transaction): ...
|
||||
def before_commit(self, session): ...
|
||||
def after_commit(self, session): ...
|
||||
def after_rollback(self, session): ...
|
||||
def after_soft_rollback(self, session, previous_transaction): ...
|
||||
def before_flush(self, session, flush_context, instances): ...
|
||||
def after_flush(self, session, flush_context): ...
|
||||
def after_flush_postexec(self, session, flush_context): ...
|
||||
def after_begin(self, session, transaction, connection): ...
|
||||
def before_attach(self, session, instance): ...
|
||||
def after_attach(self, session, instance): ...
|
||||
def after_bulk_update(self, update_context): ...
|
||||
def after_bulk_delete(self, delete_context): ...
|
||||
def transient_to_pending(self, session, instance): ...
|
||||
def pending_to_transient(self, session, instance): ...
|
||||
def persistent_to_transient(self, session, instance): ...
|
||||
def pending_to_persistent(self, session, instance): ...
|
||||
def detached_to_persistent(self, session, instance): ...
|
||||
def loaded_as_persistent(self, session, instance): ...
|
||||
def persistent_to_deleted(self, session, instance): ...
|
||||
def deleted_to_persistent(self, session, instance): ...
|
||||
def deleted_to_detached(self, session, instance): ...
|
||||
def persistent_to_detached(self, session, instance): ...
|
||||
|
||||
class AttributeEvents(event.Events):
|
||||
def append(self, target, value, initiator): ...
|
||||
def remove(self, target, value, initiator): ...
|
||||
def set(self, target, value, oldvalue, initiator): ...
|
||||
def init_scalar(self, target, value, dict_): ...
|
||||
def init_collection(self, target, collection, collection_adapter): ...
|
||||
def dispose_collection(self, target, collection, collection_adpater): ...
|
||||
|
||||
class QueryEvents(event.Events):
|
||||
def before_compile(self, query): ...
|
|
@ -1,29 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .. import exc as sa_exc
|
||||
|
||||
NO_STATE: Any = ...
|
||||
|
||||
class StaleDataError(sa_exc.SQLAlchemyError): ...
|
||||
|
||||
ConcurrentModificationError: Any = ...
|
||||
|
||||
class FlushError(sa_exc.SQLAlchemyError): ...
|
||||
class UnmappedError(sa_exc.InvalidRequestError): ...
|
||||
class ObjectDereferencedError(sa_exc.SQLAlchemyError): ...
|
||||
class DetachedInstanceError(sa_exc.SQLAlchemyError): ...
|
||||
|
||||
class UnmappedInstanceError(UnmappedError):
|
||||
def __init__(self, obj, msg: Optional[Any] = ...) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class UnmappedClassError(UnmappedError):
|
||||
def __init__(self, cls, msg: Optional[Any] = ...) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class ObjectDeletedError(sa_exc.InvalidRequestError):
|
||||
def __init__(self, state, msg: Optional[Any] = ...) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class UnmappedColumnError(sa_exc.InvalidRequestError): ...
|
||||
class NoResultFound(sa_exc.InvalidRequestError): ...
|
||||
class MultipleResultsFound(sa_exc.InvalidRequestError): ...
|
|
@ -1,53 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class IdentityMap(object):
|
||||
def __init__(self) -> None: ...
|
||||
def keys(self): ...
|
||||
def replace(self, state): ...
|
||||
def add(self, state): ...
|
||||
def update(self, dict): ...
|
||||
def clear(self): ...
|
||||
def check_modified(self): ...
|
||||
def has_key(self, key) -> bool: ...
|
||||
def popitem(self): ...
|
||||
def pop(self, key, *args): ...
|
||||
def setdefault(self, key, default: Optional[Any] = ...): ...
|
||||
def __len__(self): ...
|
||||
def copy(self): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
|
||||
class WeakInstanceDict(IdentityMap):
|
||||
def __getitem__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def contains_state(self, state): ...
|
||||
def replace(self, state): ...
|
||||
def add(self, state): ...
|
||||
def get(self, key, default: Optional[Any] = ...): ...
|
||||
def items(self): ...
|
||||
def values(self): ...
|
||||
def __iter__(self): ...
|
||||
def iteritems(self): ...
|
||||
def itervalues(self): ...
|
||||
def all_states(self): ...
|
||||
def discard(self, state): ...
|
||||
def safe_discard(self, state): ...
|
||||
def prune(self): ...
|
||||
|
||||
class StrongInstanceDict(IdentityMap):
|
||||
def itervalues(self): ...
|
||||
def iteritems(self): ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def get(self, key, default: Optional[Any] = ...): ...
|
||||
def values(self): ...
|
||||
def items(self): ...
|
||||
def all_states(self): ...
|
||||
def contains_state(self, state): ...
|
||||
def replace(self, state): ...
|
||||
def add(self, state): ...
|
||||
def discard(self, state): ...
|
||||
def safe_discard(self, state): ...
|
||||
modified: Any = ...
|
||||
def prune(self): ...
|
|
@ -1,58 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
class ClassManager(dict):
|
||||
MANAGER_ATTR: Any = ...
|
||||
STATE_ATTR: Any = ...
|
||||
deferred_scalar_loader: Any = ...
|
||||
original_init: Any = ...
|
||||
factory: Any = ...
|
||||
class_: Any = ...
|
||||
info: Any = ...
|
||||
new_init: Any = ...
|
||||
local_attrs: Any = ...
|
||||
originals: Any = ...
|
||||
def __init__(self, class_) -> None: ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
@property
|
||||
def is_mapped(self): ...
|
||||
def manage(self): ...
|
||||
def dispose(self): ...
|
||||
def manager_getter(self): ...
|
||||
def state_getter(self): ...
|
||||
def dict_getter(self): ...
|
||||
def instrument_attribute(self, key, inst, propagated: bool = ...): ...
|
||||
def subclass_managers(self, recursive): ...
|
||||
def post_configure_attribute(self, key): ...
|
||||
def uninstrument_attribute(self, key, propagated: bool = ...): ...
|
||||
mapper: Any = ...
|
||||
def unregister(self): ...
|
||||
def install_descriptor(self, key, inst): ...
|
||||
def uninstall_descriptor(self, key): ...
|
||||
def install_member(self, key, implementation): ...
|
||||
def uninstall_member(self, key): ...
|
||||
def instrument_collection_class(self, key, collection_class): ...
|
||||
def initialize_collection(self, key, state, factory): ...
|
||||
def is_instrumented(self, key, search: bool = ...): ...
|
||||
def get_impl(self, key): ...
|
||||
@property
|
||||
def attributes(self): ...
|
||||
def new_instance(self, state: Optional[Any] = ...): ...
|
||||
def setup_instance(self, instance, state: Optional[Any] = ...): ...
|
||||
def teardown_instance(self, instance): ...
|
||||
def has_state(self, instance): ...
|
||||
def has_parent(self, state, key, optimistic: bool = ...): ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
|
||||
class InstrumentationFactory(object):
|
||||
def create_manager_for_cls(self, class_): ...
|
||||
def unregister(self, class_): ...
|
||||
|
||||
instance_state: Any = ...
|
||||
instance_dict: Any = ...
|
||||
manager_of_class: Any = ...
|
||||
|
||||
def register_class(class_): ...
|
||||
def unregister_class(class_): ...
|
||||
def is_instrumented(instance, key): ...
|
|
@ -1,82 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .. import util
|
||||
from ..sql import operators
|
||||
from .base import (
|
||||
ONETOMANY as ONETOMANY,
|
||||
MANYTOONE as MANYTOONE,
|
||||
MANYTOMANY as MANYTOMANY,
|
||||
EXT_CONTINUE as EXT_CONTINUE,
|
||||
EXT_STOP as EXT_STOP,
|
||||
NOT_EXTENSION as NOT_EXTENSION,
|
||||
InspectionAttrInfo as InspectionAttrInfo
|
||||
)
|
||||
from .base import InspectionAttr as InspectionAttr, _MappedAttribute as _MappedAttribute
|
||||
|
||||
MapperExtension: Any = ...
|
||||
SessionExtension: Any = ...
|
||||
AttributeExtension: Any = ...
|
||||
|
||||
class MapperProperty(_MappedAttribute, InspectionAttr, util.MemoizedSlots):
|
||||
cascade: Any = ...
|
||||
is_property: bool = ...
|
||||
def setup(self, context, entity, path, adapter, **kwargs): ...
|
||||
def create_row_processor(self, context, path, mapper, result, adapter, populators): ...
|
||||
def cascade_iterator(self, type_, state, visited_instances: Optional[Any] = ...,
|
||||
halt_on: Optional[Any] = ...): ...
|
||||
parent: Any = ...
|
||||
def set_parent(self, parent, init): ...
|
||||
def instrument_class(self, mapper): ...
|
||||
def __init__(self) -> None: ...
|
||||
def init(self): ...
|
||||
@property
|
||||
def class_attribute(self): ...
|
||||
def do_init(self): ...
|
||||
def post_instrument_class(self, mapper): ...
|
||||
def merge(self, session, source_state, source_dict, dest_state, dest_dict, load,
|
||||
_recursive, _resolve_conflict_map): ...
|
||||
|
||||
class PropComparator(operators.ColumnOperators):
|
||||
prop: Any = ...
|
||||
def __init__(self, prop, parentmapper, adapt_to_entity: Optional[Any] = ...) -> None: ...
|
||||
def __clause_element__(self): ...
|
||||
def adapt_to_entity(self, adapt_to_entity): ...
|
||||
@property
|
||||
def adapter(self): ...
|
||||
@property
|
||||
def info(self): ...
|
||||
@staticmethod
|
||||
def any_op(a, b, **kwargs): ...
|
||||
@staticmethod
|
||||
def has_op(a, b, **kwargs): ...
|
||||
@staticmethod
|
||||
def of_type_op(a, class_): ...
|
||||
def of_type(self, class_): ...
|
||||
def any(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
def has(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
|
||||
class StrategizedProperty(MapperProperty):
|
||||
strategy_wildcard_key: Any = ...
|
||||
def setup(self, context, entity, path, adapter, **kwargs): ...
|
||||
def create_row_processor(self, context, path, mapper, result, adapter, populators): ...
|
||||
strategy: Any = ...
|
||||
def do_init(self): ...
|
||||
def post_instrument_class(self, mapper): ...
|
||||
@classmethod
|
||||
def strategy_for(cls, **kw): ...
|
||||
|
||||
class MapperOption(object):
|
||||
propagate_to_loaders: bool = ...
|
||||
def process_query(self, query): ...
|
||||
def process_query_conditionally(self, query): ...
|
||||
|
||||
class LoaderStrategy(object):
|
||||
parent_property: Any = ...
|
||||
is_class_level: bool = ...
|
||||
parent: Any = ...
|
||||
key: Any = ...
|
||||
strategy_key: Any = ...
|
||||
strategy_opts: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def setup_query(self, context, entity, path, loadopt, adapter, **kwargs): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
|
@ -1,8 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def instances(query, cursor, context): ...
|
||||
def merge_result(query, iterator, load: bool = ...): ...
|
||||
def get_from_identity(session, key, passive): ...
|
||||
def load_on_ident(query, key, refresh_state: Optional[Any] = ..., lockmode: Optional[Any] = ...,
|
||||
only_load_props: Optional[Any] = ...): ...
|
||||
def load_scalar_attributes(mapper, state, attribute_names): ...
|
|
@ -1,102 +0,0 @@
|
|||
from typing import Any, Optional, Callable
|
||||
from .interfaces import InspectionAttr
|
||||
from .base import class_mapper as class_mapper
|
||||
|
||||
NO_ATTRIBUTE: Any = ...
|
||||
|
||||
class Mapper(InspectionAttr):
|
||||
class_: Any = ...
|
||||
class_manager: Any = ...
|
||||
non_primary: Any = ...
|
||||
order_by: Any = ...
|
||||
always_refresh: Any = ...
|
||||
version_id_prop: Any = ...
|
||||
version_id_col: Any = ...
|
||||
version_id_generator: bool = ...
|
||||
concrete: Any = ...
|
||||
single: bool = ...
|
||||
inherits: Any = ...
|
||||
local_table: Any = ...
|
||||
inherit_condition: Any = ...
|
||||
inherit_foreign_keys: Any = ...
|
||||
batch: Any = ...
|
||||
eager_defaults: Any = ...
|
||||
column_prefix: Any = ...
|
||||
polymorphic_on: Any = ...
|
||||
validators: Any = ...
|
||||
passive_updates: Any = ...
|
||||
passive_deletes: Any = ...
|
||||
legacy_is_orphan: Any = ...
|
||||
allow_partial_pks: Any = ...
|
||||
confirm_deleted_rows: bool = ...
|
||||
with_polymorphic: Any = ...
|
||||
polymorphic_identity: Any = ...
|
||||
polymorphic_map: Any = ...
|
||||
include_properties: Any = ...
|
||||
exclude_properties: Any = ...
|
||||
configured: bool = ...
|
||||
def __init__(self, class_, local_table: Optional[Any] = ...,
|
||||
properties: Optional[Any] = ..., primary_key: Optional[Any] = ...,
|
||||
non_primary: bool = ..., inherits: Optional[Any] = ...,
|
||||
inherit_condition: Optional[Any] = ...,
|
||||
inherit_foreign_keys: Optional[Any] = ..., extension: Optional[Any] = ...,
|
||||
order_by: bool = ..., always_refresh: bool = ...,
|
||||
version_id_col: Optional[Any] = ..., version_id_generator: Optional[Any] = ...,
|
||||
polymorphic_on: Optional[Any] = ..., _polymorphic_map: Optional[Any] = ...,
|
||||
polymorphic_identity: Optional[Any] = ...,
|
||||
concrete: bool = ..., with_polymorphic: Optional[Any] = ...,
|
||||
allow_partial_pks: bool = ..., batch: bool = ..., column_prefix: Optional[Any] = ...,
|
||||
include_properties: Optional[Any] = ..., exclude_properties: Optional[Any] = ...,
|
||||
passive_updates: bool = ..., passive_deletes: bool = ...,
|
||||
confirm_deleted_rows: bool = ..., eager_defaults: bool = ...,
|
||||
legacy_is_orphan: bool = ..., _compiled_cache_size: int = ...) -> None: ...
|
||||
is_mapper: bool = ...
|
||||
@property
|
||||
def mapper(self): ...
|
||||
@property
|
||||
def entity(self): ...
|
||||
mapped_table: Any = ...
|
||||
tables: Any = ...
|
||||
primary_key: Any = ...
|
||||
base_mapper: Any = ...
|
||||
columns: Any = ...
|
||||
c: Any = ...
|
||||
def dispose(self): ...
|
||||
def add_properties(self, dict_of_properties): ...
|
||||
def add_property(self, key, prop): ...
|
||||
def has_property(self, key): ...
|
||||
def get_property(self, key, _configure_mappers: bool = ...): ...
|
||||
def get_property_by_column(self, column): ...
|
||||
@property
|
||||
def iterate_properties(self): ...
|
||||
with_polymorphic_mappers: Any = ...
|
||||
@property
|
||||
def selectable(self): ...
|
||||
def attrs(self): ...
|
||||
def all_orm_descriptors(self): ...
|
||||
def synonyms(self): ...
|
||||
def column_attrs(self): ...
|
||||
def relationships(self): ...
|
||||
def composites(self): ...
|
||||
def common_parent(self, other): ...
|
||||
def isa(self, other): ...
|
||||
def iterate_to_root(self): ...
|
||||
def self_and_descendants(self): ...
|
||||
def polymorphic_iterator(self): ...
|
||||
def primary_mapper(self): ...
|
||||
@property
|
||||
def primary_base_mapper(self): ...
|
||||
def identity_key_from_row(self, row, adapter: Optional[Any] = ...): ...
|
||||
def identity_key_from_primary_key(self, primary_key): ...
|
||||
def identity_key_from_instance(self, instance): ...
|
||||
def primary_key_from_instance(self, instance): ...
|
||||
def cascade_iterator(self, type_, state, halt_on: Optional[Any] = ...): ...
|
||||
|
||||
def configure_mappers(): ...
|
||||
def reconstructor(fn): ...
|
||||
def validates(*names, **kw) -> Callable[..., Any]: ...
|
||||
|
||||
class _ColumnMapping(dict):
|
||||
mapper: Any = ...
|
||||
def __init__(self, mapper) -> None: ...
|
||||
def __missing__(self, column): ...
|
|
@ -1,75 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
log: Any = ...
|
||||
|
||||
class PathRegistry(object):
|
||||
is_token: bool = ...
|
||||
is_root: bool = ...
|
||||
def __eq__(self, other): ...
|
||||
def set(self, attributes, key, value): ...
|
||||
def setdefault(self, *args, **kwargs): ...
|
||||
def get(self, *args, **kwargs): ...
|
||||
def __len__(self): ...
|
||||
@property
|
||||
def length(self): ...
|
||||
def pairs(self): ...
|
||||
def contains_mapper(self, mapper): ...
|
||||
def contains(self, attributes, key): ...
|
||||
def __reduce__(self): ...
|
||||
def serialize(self): ...
|
||||
@classmethod
|
||||
def deserialize(cls, path): ...
|
||||
@classmethod
|
||||
def per_mapper(cls, mapper): ...
|
||||
@classmethod
|
||||
def coerce(cls, raw): ...
|
||||
def token(self, token): ...
|
||||
def __add__(self, other): ...
|
||||
|
||||
class RootRegistry(PathRegistry):
|
||||
path: Any = ...
|
||||
has_entity: bool = ...
|
||||
is_aliased_class: bool = ...
|
||||
is_root: bool = ...
|
||||
def __getitem__(self, entity): ...
|
||||
|
||||
class TokenRegistry(PathRegistry):
|
||||
token: Any = ...
|
||||
parent: Any = ...
|
||||
path: Any = ...
|
||||
def __init__(self, parent, token) -> None: ...
|
||||
has_entity: bool = ...
|
||||
is_token: bool = ...
|
||||
def generate_for_superclasses(self): ...
|
||||
def __getitem__(self, entity): ...
|
||||
|
||||
class PropRegistry(PathRegistry):
|
||||
prop: Any = ...
|
||||
parent: Any = ...
|
||||
path: Any = ...
|
||||
def __init__(self, parent, prop) -> None: ...
|
||||
@property
|
||||
def has_entity(self): ...
|
||||
@property
|
||||
def entity(self): ...
|
||||
@property
|
||||
def mapper(self): ...
|
||||
@property
|
||||
def entity_path(self): ...
|
||||
def __getitem__(self, entity): ...
|
||||
|
||||
class EntityRegistry(PathRegistry, dict):
|
||||
is_aliased_class: bool = ...
|
||||
has_entity: bool = ...
|
||||
key: Any = ...
|
||||
parent: Any = ...
|
||||
entity: Any = ...
|
||||
path: Any = ...
|
||||
entity_path: Any = ...
|
||||
def __init__(self, parent, entity) -> None: ...
|
||||
@property
|
||||
def mapper(self): ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
def __getitem__(self, entity): ...
|
||||
def __missing__(self, key): ...
|
|
@ -1,33 +0,0 @@
|
|||
from typing import Any
|
||||
|
||||
def save_obj(base_mapper, states, uowtransaction, single: bool = ...): ...
|
||||
def post_update(base_mapper, states, uowtransaction, post_update_cols): ...
|
||||
def delete_obj(base_mapper, states, uowtransaction): ...
|
||||
|
||||
class BulkUD(object):
|
||||
query: Any = ...
|
||||
mapper: Any = ...
|
||||
def __init__(self, query) -> None: ...
|
||||
@property
|
||||
def session(self): ...
|
||||
def exec_(self): ...
|
||||
|
||||
class BulkEvaluate(BulkUD): ...
|
||||
class BulkFetch(BulkUD): ...
|
||||
|
||||
class BulkUpdate(BulkUD):
|
||||
values: Any = ...
|
||||
update_kwargs: Any = ...
|
||||
def __init__(self, query, values, update_kwargs) -> None: ...
|
||||
@classmethod
|
||||
def factory(cls, query, synchronize_session, values, update_kwargs): ...
|
||||
|
||||
class BulkDelete(BulkUD):
|
||||
def __init__(self, query) -> None: ...
|
||||
@classmethod
|
||||
def factory(cls, query, synchronize_session): ...
|
||||
|
||||
class BulkUpdateEvaluate(BulkEvaluate, BulkUpdate): ...
|
||||
class BulkDeleteEvaluate(BulkEvaluate, BulkDelete): ...
|
||||
class BulkUpdateFetch(BulkFetch, BulkUpdate): ...
|
||||
class BulkDeleteFetch(BulkFetch, BulkDelete): ...
|
|
@ -1,31 +0,0 @@
|
|||
from typing import Any
|
||||
from .interfaces import StrategizedProperty, PropComparator
|
||||
from .. import util
|
||||
from .relationships import RelationshipProperty as RelationshipProperty
|
||||
|
||||
class ColumnProperty(StrategizedProperty):
|
||||
strategy_wildcard_key: str = ...
|
||||
columns: Any = ...
|
||||
group: Any = ...
|
||||
deferred: Any = ...
|
||||
instrument: Any = ...
|
||||
comparator_factory: Any = ...
|
||||
descriptor: Any = ...
|
||||
extension: Any = ...
|
||||
active_history: Any = ...
|
||||
expire_on_flush: Any = ...
|
||||
info: Any = ...
|
||||
doc: Any = ...
|
||||
strategy_key: Any = ...
|
||||
def __init__(self, *columns, **kwargs) -> None: ...
|
||||
@property
|
||||
def expression(self): ...
|
||||
def instrument_class(self, mapper): ...
|
||||
def do_init(self): ...
|
||||
def copy(self): ...
|
||||
def merge(self, session, source_state, source_dict, dest_state, dest_dict, load,
|
||||
_recursive, _resolve_conflict_map): ...
|
||||
class Comparator(util.MemoizedSlots, PropComparator):
|
||||
def _memoized_method___clause_element__(self): ...
|
||||
def operate(self, op, *other, **kwargs): ...
|
||||
def reverse_operate(self, op, other, **kwargs): ...
|
|
@ -1,210 +0,0 @@
|
|||
from typing import Any, Optional, Union, TypeVar, Generic, List, Iterator
|
||||
from . import interfaces
|
||||
from .base import InspectionAttr
|
||||
from ..sql.selectable import ForUpdateArg, Alias, CTE
|
||||
from ..sql.elements import Label
|
||||
from .session import Session
|
||||
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_Q = TypeVar('_Q', bound="Query")
|
||||
|
||||
|
||||
class Query(Generic[_T]):
|
||||
session: Session = ...
|
||||
def __init__(self, entities, session: Optional[Session] = ...) -> None: ...
|
||||
|
||||
# TODO: is "statement" always of type sqlalchemy.sql.selectable.Select ?
|
||||
@property
|
||||
def statement(self): ...
|
||||
def subquery(self, name: Optional[str] = ..., with_labels: bool = ..., reduce_columns: bool = ...) -> Alias: ...
|
||||
def cte(self, name: Optional[str] = ..., recursive: bool = ...) -> CTE: ...
|
||||
def label(self, name: str) -> Label: ...
|
||||
def as_scalar(self): ...
|
||||
@property
|
||||
def selectable(self): ...
|
||||
def __clause_element__(self): ...
|
||||
def enable_eagerloads(self: _Q, value: bool) -> _Q: ...
|
||||
def with_labels(self: _Q) -> _Q: ...
|
||||
def enable_assertions(self: _Q, value: bool) -> _Q: ...
|
||||
@property
|
||||
def whereclause(self): ...
|
||||
def with_polymorphic(self, cls_or_mappers, selectable: Optional[Any] = ...,
|
||||
polymorphic_on: Optional[Any] = ...): ...
|
||||
def yield_per(self: _Q, count: int) -> _Q: ...
|
||||
def get(self, ident) -> Optional[_T]: ...
|
||||
def correlate(self, *args): ...
|
||||
def autoflush(self: _Q, setting: bool) -> _Q: ...
|
||||
def populate_existing(self: _Q) -> _Q: ...
|
||||
def with_parent(self, instance, property: Optional[Any] = ...): ...
|
||||
def add_entity(self, entity, alias: Optional[Any] = ...): ...
|
||||
def with_session(self: _Q, session: Optional[Session]) -> _Q: ...
|
||||
def from_self(self, *entities): ...
|
||||
def values(self, *columns): ...
|
||||
def value(self, column): ...
|
||||
def with_entities(self, *entities): ...
|
||||
def add_columns(self, *column): ...
|
||||
def add_column(self, column): ...
|
||||
def options(self: _Q, *args) -> _Q: ...
|
||||
def with_transformation(self, fn): ...
|
||||
def with_hint(self, selectable, text, dialect_name: str = ...): ...
|
||||
def with_statement_hint(self, text, dialect_name: str = ...): ...
|
||||
def execution_options(self, **kwargs): ...
|
||||
def with_lockmode(self, mode): ...
|
||||
def with_for_update(self: _Q, read: bool = ..., nowait: bool = ..., of: Optional[Any] = ...,
|
||||
skip_locked: bool = ..., key_share: bool = ...) -> _Q: ...
|
||||
def params(self: _Q, *args, **kwargs) -> _Q: ...
|
||||
def filter(self: _Q, *criterion) -> _Q: ...
|
||||
def filter_by(self: _Q, **kwargs) -> _Q: ...
|
||||
def order_by(self: _Q, *criterion) -> _Q: ...
|
||||
def group_by(self: _Q, *criterion) -> _Q: ...
|
||||
def having(self: _Q, criterion) -> _Q: ...
|
||||
def union(self, *q): ...
|
||||
def union_all(self, *q): ...
|
||||
def intersect(self, *q): ...
|
||||
def intersect_all(self, *q): ...
|
||||
def except_(self, *q): ...
|
||||
def except_all(self, *q): ...
|
||||
def join(self, *props, **kwargs): ...
|
||||
def outerjoin(self, *props, **kwargs): ...
|
||||
def reset_joinpoint(self): ...
|
||||
def select_from(self, *from_obj): ...
|
||||
def select_entity_from(self, from_obj): ...
|
||||
def __getitem__(self, item): ...
|
||||
def slice(self: _Q, start: Optional[int], stop: Optional[int]) -> _Q: ...
|
||||
def limit(self: _Q, limit: Optional[int]) -> _Q: ...
|
||||
def offset(self: _Q, offset: Optional[int]) -> _Q: ...
|
||||
def distinct(self, *criterion): ...
|
||||
def prefix_with(self, *prefixes): ...
|
||||
def suffix_with(self, *suffixes): ...
|
||||
def all(self) -> List[_T]: ...
|
||||
def from_statement(self, statement): ...
|
||||
def first(self) -> Optional[_T]: ...
|
||||
def one_or_none(self) -> Optional[_T]: ...
|
||||
def one(self) -> _T: ...
|
||||
def scalar(self): ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
@property
|
||||
def column_descriptions(self): ...
|
||||
def instances(self, cursor, __context: Optional[Any] = ...): ...
|
||||
def merge_result(self, iterator, load: bool = ...): ...
|
||||
def exists(self): ...
|
||||
def count(self) -> int: ...
|
||||
def delete(self, synchronize_session: Union[bool, str] = ...) -> int: ...
|
||||
def update(self, values, synchronize_session: Union[bool, str] = ..., update_args: Optional[Any] = ...): ...
|
||||
|
||||
class LockmodeArg(ForUpdateArg):
|
||||
@classmethod
|
||||
def parse_legacy_query(self, mode): ...
|
||||
|
||||
class _QueryEntity(object):
|
||||
def __new__(cls, *args, **kwargs): ...
|
||||
|
||||
class _MapperEntity(_QueryEntity):
|
||||
entities: Any = ...
|
||||
expr: Any = ...
|
||||
def __init__(self, query, entity) -> None: ...
|
||||
supports_single_entity: bool = ...
|
||||
use_id_for_hash: bool = ...
|
||||
mapper: Any = ...
|
||||
aliased_adapter: Any = ...
|
||||
selectable: Any = ...
|
||||
is_aliased_class: Any = ...
|
||||
entity_zero: Any = ...
|
||||
path: Any = ...
|
||||
def setup_entity(self, ext_info, aliased_adapter): ...
|
||||
def set_with_polymorphic(self, query, cls_or_mappers, selectable, polymorphic_on): ...
|
||||
@property
|
||||
def type(self): ...
|
||||
@property
|
||||
def entity_zero_or_selectable(self): ...
|
||||
def corresponds_to(self, entity): ...
|
||||
def adapt_to_selectable(self, query, sel): ...
|
||||
def row_processor(self, query, context, result): ...
|
||||
def setup_context(self, query, context): ...
|
||||
|
||||
class Bundle(InspectionAttr):
|
||||
single_entity: bool = ...
|
||||
is_clause_element: bool = ...
|
||||
is_mapper: bool = ...
|
||||
is_aliased_class: bool = ...
|
||||
name: str = ...
|
||||
exprs: Any = ...
|
||||
c: Any = ...
|
||||
def __init__(self, name, *exprs, **kw) -> None: ...
|
||||
columns: Any = ...
|
||||
def __clause_element__(self): ...
|
||||
@property
|
||||
def clauses(self): ...
|
||||
def label(self, name): ...
|
||||
def create_row_processor(self, query, procs, labels): ...
|
||||
|
||||
class _BundleEntity(_QueryEntity):
|
||||
use_id_for_hash: bool = ...
|
||||
bundle: Any = ...
|
||||
type: Any = ...
|
||||
supports_single_entity: Any = ...
|
||||
def __init__(self, query, bundle, setup_entities: bool = ...) -> None: ...
|
||||
@property
|
||||
def entities(self): ...
|
||||
@property
|
||||
def entity_zero(self): ...
|
||||
def corresponds_to(self, entity): ...
|
||||
@property
|
||||
def entity_zero_or_selectable(self): ...
|
||||
def adapt_to_selectable(self, query, sel): ...
|
||||
def setup_entity(self, ext_info, aliased_adapter): ...
|
||||
def setup_context(self, query, context): ...
|
||||
def row_processor(self, query, context, result): ...
|
||||
|
||||
class _ColumnEntity(_QueryEntity):
|
||||
expr: Any = ...
|
||||
namespace: Any = ...
|
||||
type: Any = ...
|
||||
use_id_for_hash: Any = ...
|
||||
column: Any = ...
|
||||
froms: Any = ...
|
||||
actual_froms: Any = ...
|
||||
entity_zero: Any = ...
|
||||
entities: Any = ...
|
||||
mapper: Any = ...
|
||||
def __init__(self, query, column, namespace: Optional[Any] = ...) -> None: ...
|
||||
supports_single_entity: bool = ...
|
||||
@property
|
||||
def entity_zero_or_selectable(self): ...
|
||||
def adapt_to_selectable(self, query, sel): ...
|
||||
selectable: Any = ...
|
||||
def setup_entity(self, ext_info, aliased_adapter): ...
|
||||
def corresponds_to(self, entity): ...
|
||||
def row_processor(self, query, context, result): ...
|
||||
def setup_context(self, query, context): ...
|
||||
|
||||
class QueryContext(object):
|
||||
statement: Any = ...
|
||||
from_clause: Any = ...
|
||||
whereclause: Any = ...
|
||||
order_by: Any = ...
|
||||
multi_row_eager_loaders: bool = ...
|
||||
adapter: Any = ...
|
||||
froms: Any = ...
|
||||
for_update: Any = ...
|
||||
query: Any = ...
|
||||
session: Any = ...
|
||||
autoflush: Any = ...
|
||||
populate_existing: Any = ...
|
||||
invoke_all_eagers: Any = ...
|
||||
version_check: Any = ...
|
||||
refresh_state: Any = ...
|
||||
primary_columns: Any = ...
|
||||
secondary_columns: Any = ...
|
||||
eager_order_by: Any = ...
|
||||
eager_joins: Any = ...
|
||||
create_eager_joins: Any = ...
|
||||
propagate_options: Any = ...
|
||||
attributes: Any = ...
|
||||
def __init__(self, query) -> None: ...
|
||||
|
||||
class AliasOption(interfaces.MapperOption):
|
||||
alias: Any = ...
|
||||
def __init__(self, alias) -> None: ...
|
||||
def process_query(self, query): ...
|
|
@ -1,142 +0,0 @@
|
|||
from typing import Any, Optional, Generic, TypeVar, Union, overload, Type
|
||||
from .interfaces import (
|
||||
MANYTOMANY as MANYTOMANY,
|
||||
MANYTOONE as MANYTOONE,
|
||||
ONETOMANY as ONETOMANY,
|
||||
StrategizedProperty as StrategizedProperty,
|
||||
PropComparator as PropComparator
|
||||
)
|
||||
|
||||
def remote(expr): ...
|
||||
def foreign(expr): ...
|
||||
|
||||
|
||||
_T_co = TypeVar('_T_co', covariant=True)
|
||||
|
||||
|
||||
# Note: typical use case is where argument is a string, so this will require
|
||||
# a plugin to infer '_T_co', otherwise a user will need to write an explicit annotation.
|
||||
# It is not clear whether RelationshipProperty is covariant at this stage since
|
||||
# many types are still missing.
|
||||
class RelationshipProperty(StrategizedProperty, Generic[_T_co]):
|
||||
strategy_wildcard_key: str = ...
|
||||
uselist: Any = ...
|
||||
argument: Any = ...
|
||||
secondary: Any = ...
|
||||
primaryjoin: Any = ...
|
||||
secondaryjoin: Any = ...
|
||||
post_update: bool = ...
|
||||
direction: Any = ...
|
||||
viewonly: bool = ...
|
||||
lazy: Any = ...
|
||||
single_parent: bool = ...
|
||||
collection_class: Any = ...
|
||||
passive_deletes: Union[bool, str] = ...
|
||||
cascade_backrefs: bool = ...
|
||||
passive_updates: bool = ...
|
||||
remote_side: Any = ...
|
||||
enable_typechecks: bool = ...
|
||||
query_class: Any = ...
|
||||
innerjoin: bool = ...
|
||||
distinct_target_key: Any = ...
|
||||
doc: Any = ...
|
||||
active_history: bool = ...
|
||||
join_depth: Any = ...
|
||||
local_remote_pairs: Any = ...
|
||||
extension: Any = ...
|
||||
bake_queries: bool = ...
|
||||
load_on_pending: bool = ...
|
||||
comparator_factory: Any = ...
|
||||
comparator: Any = ...
|
||||
info: Any = ...
|
||||
strategy_key: Any = ...
|
||||
cascade: Any = ...
|
||||
order_by: Any = ...
|
||||
back_populates: Any = ...
|
||||
backref: Any = ...
|
||||
def __init__(self, argument: Any, secondary: Optional[Any] = ...,
|
||||
primaryjoin: Optional[Any] = ..., secondaryjoin: Optional[Any] = ...,
|
||||
foreign_keys: Optional[Any] = ..., uselist: Optional[Any] = ...,
|
||||
order_by: Any = ..., backref: Optional[Any] = ...,
|
||||
back_populates: Optional[Any] = ..., post_update: bool = ..., cascade: Union[str, bool] = ...,
|
||||
extension: Optional[Any] = ..., viewonly: bool = ...,
|
||||
lazy: Optional[Union[str, bool]] = ..., collection_class: Optional[Any] = ...,
|
||||
passive_deletes: Union[bool, str] = ..., passive_updates: bool = ...,
|
||||
remote_side: Optional[Any] = ..., enable_typechecks: bool = ...,
|
||||
join_depth: Optional[Any] = ..., comparator_factory: Optional[Any] = ...,
|
||||
single_parent: bool = ..., innerjoin: bool = ..., distinct_target_key: Optional[Any] = ...,
|
||||
doc: Optional[Any] = ..., active_history: bool = ..., cascade_backrefs: bool = ...,
|
||||
load_on_pending: bool = ..., bake_queries: bool = ...,
|
||||
_local_remote_pairs: Optional[Any] = ..., query_class: Optional[Any] = ...,
|
||||
info: Optional[Any] = ...) -> None: ...
|
||||
def instrument_class(self, mapper): ...
|
||||
class Comparator(PropComparator):
|
||||
prop: Any = ...
|
||||
def __init__(self, prop, parentmapper, adapt_to_entity: Optional[Any] = ...,
|
||||
of_type: Optional[Any] = ...) -> None: ...
|
||||
def adapt_to_entity(self, adapt_to_entity): ...
|
||||
def mapper(self): ...
|
||||
def __clause_element__(self): ...
|
||||
def of_type(self, cls): ...
|
||||
def in_(self, other): ...
|
||||
__hash__: Any = ...
|
||||
def __eq__(self, other): ...
|
||||
def any(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
def has(self, criterion: Optional[Any] = ..., **kwargs): ...
|
||||
def contains(self, other, **kwargs): ...
|
||||
def __ne__(self, other): ...
|
||||
@property
|
||||
def property(self): ...
|
||||
# This doesn't exist at runtime, and Comparator is used instead, but it is hard to explain to mypy.
|
||||
def __eq__(self, other: Any) -> Any: ...
|
||||
def merge(self, session, source_state, source_dict, dest_state, dest_dict,
|
||||
load, _recursive, _resolve_conflict_map): ...
|
||||
def cascade_iterator(self, *args, **kwargs): ...
|
||||
@property
|
||||
def mapper(self): ...
|
||||
def table(self): ...
|
||||
def do_init(self): ...
|
||||
# This doesn't exist at runtime, but is present here for better typing.
|
||||
@overload
|
||||
def __get__(self, instance: None, owner: Any) -> RelationshipProperty[_T_co]: ...
|
||||
@overload
|
||||
def __get__(self, instance: object, owner: Any) -> _T_co: ...
|
||||
|
||||
class JoinCondition(object):
|
||||
parent_selectable: Any = ...
|
||||
parent_local_selectable: Any = ...
|
||||
child_selectable: Any = ...
|
||||
child_local_selectable: Any = ...
|
||||
parent_equivalents: Any = ...
|
||||
child_equivalents: Any = ...
|
||||
primaryjoin: Any = ...
|
||||
secondaryjoin: Any = ...
|
||||
secondary: Any = ...
|
||||
consider_as_foreign_keys: Any = ...
|
||||
prop: Any = ...
|
||||
self_referential: Any = ...
|
||||
support_sync: Any = ...
|
||||
can_be_synced_fn: Any = ...
|
||||
def __init__(self, parent_selectable, child_selectable, parent_local_selectable,
|
||||
child_local_selectable, primaryjoin: Optional[Any] = ...,
|
||||
secondary: Optional[Any] = ..., secondaryjoin: Optional[Any] = ...,
|
||||
parent_equivalents: Optional[Any] = ..., child_equivalents: Optional[Any] = ...,
|
||||
consider_as_foreign_keys: Optional[Any] = ..., local_remote_pairs: Optional[Any] = ...,
|
||||
remote_side: Optional[Any] = ..., self_referential: bool = ..., prop: Optional[Any] = ...,
|
||||
support_sync: bool = ..., can_be_synced_fn: Any = ...) -> None: ...
|
||||
@property
|
||||
def primaryjoin_minus_local(self): ...
|
||||
@property
|
||||
def secondaryjoin_minus_local(self): ...
|
||||
@property
|
||||
def primaryjoin_reverse_remote(self): ...
|
||||
@property
|
||||
def remote_columns(self): ...
|
||||
@property
|
||||
def local_columns(self): ...
|
||||
@property
|
||||
def foreign_key_columns(self): ...
|
||||
def deannotated_primaryjoin(self): ...
|
||||
def deannotated_secondaryjoin(self): ...
|
||||
def join_targets(self, source_selectable, dest_selectable, aliased, single_crit: Optional[Any] = ...): ...
|
||||
def create_lazy_clause(self, reverse_direction: bool = ...): ...
|
|
@ -1,14 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
from .session import Session
|
||||
|
||||
class scoped_session(Session): # not true at runtime, methods are set dynamically and wrapped
|
||||
session_factory: Any = ...
|
||||
registry: Any = ...
|
||||
def __init__(self, session_factory, scopefunc: Optional[Any] = ...) -> None: ...
|
||||
def __call__(self, **kw): ...
|
||||
def remove(self): ...
|
||||
def configure(self, **kwargs): ...
|
||||
def query_property(self, query_cls: Optional[Any] = ...): ...
|
||||
|
||||
ScopedSession = scoped_session
|
|
@ -1,114 +0,0 @@
|
|||
from typing import Any, Optional, Tuple, Type, TypeVar, overload
|
||||
|
||||
from sqlalchemy import Column
|
||||
from sqlalchemy.orm.query import Query
|
||||
|
||||
class _SessionClassMethods(object):
|
||||
@classmethod
|
||||
def close_all(cls): ...
|
||||
@classmethod
|
||||
def identity_key(cls, *args, **kwargs): ...
|
||||
@classmethod
|
||||
def object_session(cls, instance): ...
|
||||
|
||||
class SessionTransaction(object):
|
||||
session: Any = ...
|
||||
nested: Any = ...
|
||||
def __init__(self, session, parent: Optional[Any] = ..., nested: bool = ...) -> None: ...
|
||||
@property
|
||||
def parent(self): ...
|
||||
@property
|
||||
def is_active(self): ...
|
||||
def connection(self, bindkey, execution_options: Optional[Any] = ..., **kwargs): ...
|
||||
def prepare(self): ...
|
||||
def commit(self): ...
|
||||
def rollback(self, _capture_exception: bool = ...): ...
|
||||
def close(self, invalidate: bool = ...): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type, value, traceback): ...
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class Session(_SessionClassMethods):
|
||||
public_methods: Any = ...
|
||||
identity_map: Any = ...
|
||||
bind: Any = ...
|
||||
transaction: Any = ...
|
||||
hash_key: Any = ...
|
||||
autoflush: Any = ...
|
||||
autocommit: Any = ...
|
||||
expire_on_commit: Any = ...
|
||||
twophase: Any = ...
|
||||
def __init__(self, bind: Optional[Any] = ..., autoflush: bool = ..., expire_on_commit: bool = ...,
|
||||
_enable_transaction_accounting: bool = ..., autocommit: bool = ...,
|
||||
twophase: bool = ..., weak_identity_map: bool = ...,
|
||||
binds: Optional[Any] = ..., extension: Optional[Any] = ...,
|
||||
info: Optional[Any] = ..., query_cls: Any = ...) -> None: ...
|
||||
connection_callable: Any = ...
|
||||
@property
|
||||
def info(self): ...
|
||||
def begin(self, subtransactions: bool = ..., nested: bool = ...) -> SessionTransaction: ...
|
||||
def begin_nested(self) -> SessionTransaction: ...
|
||||
def rollback(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
def prepare(self): ...
|
||||
def connection(self, mapper: Optional[Any] = ..., clause: Optional[Any] = ...,
|
||||
bind: Optional[Any] = ..., close_with_result: bool = ...,
|
||||
execution_options: Optional[Any] = ..., **kw): ...
|
||||
def execute(self, clause, params: Optional[Any] = ...,
|
||||
mapper: Optional[Any] = ..., bind: Optional[Any] = ..., **kw): ...
|
||||
def scalar(self, clause, params: Optional[Any] = ...,
|
||||
mapper: Optional[Any] = ..., bind: Optional[Any] = ..., **kw): ...
|
||||
def close(self) -> None: ...
|
||||
def invalidate(self) -> None: ...
|
||||
def expunge_all(self) -> None: ...
|
||||
def bind_mapper(self, mapper, bind): ...
|
||||
def bind_table(self, table, bind): ...
|
||||
def get_bind(self, mapper: Optional[Any] = ..., clause: Optional[Any] = ...): ...
|
||||
@overload
|
||||
def query(self, entity: Type[_T], **kwargs) -> Query[_T]: ...
|
||||
@overload
|
||||
def query(self, entity: Column[_T], **kwargs) -> Query[Tuple[_T]]: ...
|
||||
@overload
|
||||
def query(self, *entities, **kwargs) -> Query[Any]: ... # plugin is needed for precise type
|
||||
@property
|
||||
def no_autoflush(self): ...
|
||||
def refresh(self, instance, attribute_names: Optional[Any] = ..., lockmode: Optional[Any] = ...): ...
|
||||
def expire_all(self) -> None: ...
|
||||
def expire(self, instance, attribute_names: Optional[Any] = ...) -> None: ...
|
||||
def prune(self): ...
|
||||
def expunge(self, instance) -> None: ...
|
||||
def add(self, instance, _warn: bool = ...) -> None: ...
|
||||
def add_all(self, instances) -> None: ...
|
||||
def delete(self, instance): ...
|
||||
def merge(self, instance: _T, load: bool = ...) -> _T: ...
|
||||
def enable_relationship_loading(self, obj): ...
|
||||
def __contains__(self, instance): ...
|
||||
def __iter__(self): ...
|
||||
def flush(self, objects: Optional[Any] = ...) -> None: ...
|
||||
def bulk_save_objects(self, objects, return_defaults: bool = ..., update_changed_only: bool = ...): ...
|
||||
def bulk_insert_mappings(self, mapper, mappings, return_defaults: bool = ..., render_nulls: bool = ...): ...
|
||||
def bulk_update_mappings(self, mapper, mappings): ...
|
||||
def is_modified(self, instance, include_collections: bool = ..., passive: bool = ...): ...
|
||||
@property
|
||||
def is_active(self) -> bool: ...
|
||||
@property
|
||||
def dirty(self): ...
|
||||
@property
|
||||
def deleted(self): ...
|
||||
@property
|
||||
def new(self): ...
|
||||
|
||||
class sessionmaker(_SessionClassMethods):
|
||||
kw: Any = ...
|
||||
class_: Any = ...
|
||||
def __init__(self, bind: Optional[Any] = ..., class_: Any = ..., autoflush: bool = ...,
|
||||
autocommit: bool = ..., expire_on_commit: bool = ...,
|
||||
info: Optional[Any] = ..., **kw) -> None: ...
|
||||
def __call__(self, **local_kw): ...
|
||||
def configure(self, **new_kw): ...
|
||||
|
||||
def make_transient(instance) -> None: ...
|
||||
def make_transient_to_detached(instance) -> None: ...
|
||||
def object_session(instance): ...
|
||||
def close_all_sessions() -> None: ...
|
|
@ -1,86 +0,0 @@
|
|||
from typing import Any
|
||||
from . import interfaces
|
||||
from .base import (
|
||||
PASSIVE_NO_RESULT as PASSIVE_NO_RESULT,
|
||||
SQL_OK as SQL_OK,
|
||||
NEVER_SET as NEVER_SET,
|
||||
ATTR_WAS_SET as ATTR_WAS_SET,
|
||||
NO_VALUE as NO_VALUE,
|
||||
PASSIVE_NO_INITIALIZE as PASSIVE_NO_INITIALIZE,
|
||||
INIT_OK as INIT_OK,
|
||||
PASSIVE_OFF as PASSIVE_OFF
|
||||
)
|
||||
|
||||
class InstanceState(interfaces.InspectionAttr):
|
||||
session_id: Any = ...
|
||||
key: Any = ...
|
||||
runid: Any = ...
|
||||
load_options: Any = ...
|
||||
load_path: Any = ...
|
||||
insert_order: Any = ...
|
||||
modified: bool = ...
|
||||
expired: bool = ...
|
||||
is_instance: bool = ...
|
||||
callables: Any = ...
|
||||
class_: Any = ...
|
||||
manager: Any = ...
|
||||
obj: Any = ...
|
||||
committed_state: Any = ...
|
||||
expired_attributes: Any = ...
|
||||
def __init__(self, obj, manager) -> None: ...
|
||||
@property
|
||||
def attrs(self): ...
|
||||
@property
|
||||
def transient(self): ...
|
||||
@property
|
||||
def pending(self): ...
|
||||
@property
|
||||
def deleted(self): ...
|
||||
@property
|
||||
def was_deleted(self): ...
|
||||
@property
|
||||
def persistent(self): ...
|
||||
@property
|
||||
def detached(self): ...
|
||||
@property
|
||||
def session(self): ...
|
||||
@property
|
||||
def object(self): ...
|
||||
@property
|
||||
def identity(self): ...
|
||||
@property
|
||||
def identity_key(self): ...
|
||||
@property
|
||||
def parents(self): ...
|
||||
@property
|
||||
def mapper(self): ...
|
||||
@property
|
||||
def has_identity(self) -> bool: ...
|
||||
@property
|
||||
def dict(self): ...
|
||||
def get_history(self, key, passive): ...
|
||||
def get_impl(self, key): ...
|
||||
@property
|
||||
def unmodified(self): ...
|
||||
def unmodified_intersection(self, keys): ...
|
||||
@property
|
||||
def unloaded(self): ...
|
||||
|
||||
class AttributeState(object):
|
||||
state: Any = ...
|
||||
key: Any = ...
|
||||
def __init__(self, state, key) -> None: ...
|
||||
@property
|
||||
def loaded_value(self): ...
|
||||
@property
|
||||
def value(self): ...
|
||||
@property
|
||||
def history(self): ...
|
||||
def load_history(self): ...
|
||||
|
||||
class PendingCollection(object):
|
||||
deleted_items: Any = ...
|
||||
added_items: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
def append(self, value): ...
|
||||
def remove(self, value): ...
|
|
@ -1,87 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .. import util
|
||||
from .interfaces import LoaderStrategy as LoaderStrategy
|
||||
|
||||
class UninstrumentedColumnLoader(LoaderStrategy):
|
||||
columns: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def setup_query(self, context, entity, path, loadopt, adapter,
|
||||
column_collection: Optional[Any] = ..., **kwargs): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class ColumnLoader(LoaderStrategy):
|
||||
columns: Any = ...
|
||||
is_composite: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def setup_query(self, context, entity, path, loadopt,
|
||||
adapter, column_collection, memoized_populators, **kwargs): ...
|
||||
is_class_level: bool = ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class DeferredColumnLoader(LoaderStrategy):
|
||||
columns: Any = ...
|
||||
group: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
is_class_level: bool = ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def setup_query(self, *args, **kw): ...
|
||||
|
||||
class LoadDeferredColumns(object):
|
||||
key: Any = ...
|
||||
def __init__(self, key) -> None: ...
|
||||
def __call__(self, state, passive: Any = ...): ...
|
||||
|
||||
class AbstractRelationshipLoader(LoaderStrategy):
|
||||
mapper: Any = ...
|
||||
target: Any = ...
|
||||
uselist: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
|
||||
class NoLoader(AbstractRelationshipLoader):
|
||||
is_class_level: bool = ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
|
||||
use_get: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
is_class_level: bool = ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class LoadLazyAttribute(object):
|
||||
key: Any = ...
|
||||
strategy_key: Any = ...
|
||||
def __init__(self, key, initiating_strategy) -> None: ...
|
||||
def __call__(self, state, passive: Any = ...): ...
|
||||
|
||||
class ImmediateLoader(AbstractRelationshipLoader):
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def setup_query(self, context, entity, path, loadopt, adapter, column_collection: Optional[Any] = ...,
|
||||
parentmapper: Optional[Any] = ..., **kwargs): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class SubqueryLoader(AbstractRelationshipLoader):
|
||||
join_depth: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def setup_query(self, context, entity, path, loadopt, adapter, column_collection: Optional[Any] = ...,
|
||||
parentmapper: Optional[Any] = ..., **kwargs): ...
|
||||
class _SubqCollections(object):
|
||||
subq: Any = ...
|
||||
def __init__(self, subq) -> None: ...
|
||||
def get(self, key, default): ...
|
||||
def loader(self, state, dict_, row): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class JoinedLoader(AbstractRelationshipLoader):
|
||||
join_depth: Any = ...
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def init_class_attribute(self, mapper): ...
|
||||
def setup_query(self, context, entity, path, loadopt, adapter, column_collection: Optional[Any] = ...,
|
||||
parentmapper: Optional[Any] = ..., chained_from_outerjoin: bool = ..., **kwargs): ...
|
||||
def create_row_processor(self, context, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
def single_parent_validator(desc, prop): ...
|
|
@ -1,45 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
from .interfaces import MapperOption
|
||||
from ..sql.base import Generative
|
||||
|
||||
class Load(Generative, MapperOption):
|
||||
path: Any = ...
|
||||
context: Any = ...
|
||||
local_opts: Any = ...
|
||||
def __init__(self, entity) -> None: ...
|
||||
@classmethod
|
||||
def for_existing_path(cls, path): ...
|
||||
is_opts_only: bool = ...
|
||||
strategy: Any = ...
|
||||
propagate_to_loaders: bool = ...
|
||||
def process_query(self, query): ...
|
||||
def process_query_conditionally(self, query): ...
|
||||
def set_relationship_strategy(self, attr, strategy, propagate_to_loaders: bool = ...): ...
|
||||
def set_column_strategy(self, attrs, strategy, opts: Optional[Any] = ..., opts_only: bool = ...): ...
|
||||
|
||||
class _UnboundLoad(Load):
|
||||
path: Any = ...
|
||||
local_opts: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class loader_option(object):
|
||||
def __init__(self) -> None: ...
|
||||
name: str = ...
|
||||
fn: Any = ...
|
||||
def __call__(self, fn): ...
|
||||
|
||||
def contains_eager(loadopt, attr, alias: Optional[Any] = ...): ...
|
||||
def load_only(loadopt, *attrs): ...
|
||||
def joinedload(loadopt, attr, innerjoin: Optional[Any] = ...): ...
|
||||
def joinedload_all(*keys, **kw): ...
|
||||
def subqueryload(loadopt, attr): ...
|
||||
def subqueryload_all(*keys): ...
|
||||
def lazyload(loadopt, attr): ...
|
||||
def lazyload_all(*keys): ...
|
||||
def immediateload(loadopt, attr): ...
|
||||
def noload(loadopt, attr): ...
|
||||
def raiseload(loadopt, attr, sql_only: bool = ...): ...
|
||||
def defaultload(loadopt, attr): ...
|
||||
def defer(loadopt, key): ...
|
||||
def undefer(loadopt, key): ...
|
||||
def undefer_group(loadopt, name): ...
|
|
@ -1,6 +0,0 @@
|
|||
def populate(source, source_mapper, dest, dest_mapper, synchronize_pairs, uowcommit, flag_cascaded_pks): ...
|
||||
def bulk_populate_inherit_keys(source_dict, source_mapper, synchronize_pairs): ...
|
||||
def clear(dest, dest_mapper, synchronize_pairs): ...
|
||||
def update(source, source_mapper, dest, old_prefix, synchronize_pairs): ...
|
||||
def populate_dict(source, source_mapper, dict_, synchronize_pairs): ...
|
||||
def source_modified(uowcommit, source, source_mapper, synchronize_pairs): ...
|
|
@ -1,92 +0,0 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def track_cascade_events(descriptor, prop): ...
|
||||
|
||||
class UOWTransaction(object):
|
||||
session: Any = ...
|
||||
attributes: Any = ...
|
||||
deps: Any = ...
|
||||
mappers: Any = ...
|
||||
presort_actions: Any = ...
|
||||
postsort_actions: Any = ...
|
||||
dependencies: Any = ...
|
||||
states: Any = ...
|
||||
post_update_states: Any = ...
|
||||
def __init__(self, session) -> None: ...
|
||||
@property
|
||||
def has_work(self): ...
|
||||
def was_already_deleted(self, state): ...
|
||||
def is_deleted(self, state): ...
|
||||
def memo(self, key, callable_): ...
|
||||
def remove_state_actions(self, state): ...
|
||||
def get_attribute_history(self, state, key, passive: Any = ...): ...
|
||||
def has_dep(self, processor): ...
|
||||
def register_preprocessor(self, processor, fromparent): ...
|
||||
def register_object(self, state, isdelete: bool = ..., listonly: bool = ...,
|
||||
cancel_delete: bool = ..., operation: Optional[Any] = ...,
|
||||
prop: Optional[Any] = ...): ...
|
||||
def issue_post_update(self, state, post_update_cols): ...
|
||||
def filter_states_for_dep(self, dep, states): ...
|
||||
def states_for_mapper_hierarchy(self, mapper, isdelete, listonly): ...
|
||||
def execute(self): ...
|
||||
def finalize_flush_changes(self): ...
|
||||
|
||||
class IterateMappersMixin(object): ...
|
||||
|
||||
class Preprocess(IterateMappersMixin):
|
||||
dependency_processor: Any = ...
|
||||
fromparent: Any = ...
|
||||
processed: Any = ...
|
||||
setup_flush_actions: bool = ...
|
||||
def __init__(self, dependency_processor, fromparent) -> None: ...
|
||||
def execute(self, uow): ...
|
||||
|
||||
class PostSortRec(object):
|
||||
disabled: bool = ...
|
||||
def __new__(cls, uow, *args): ...
|
||||
def execute_aggregate(self, uow, recs): ...
|
||||
|
||||
class ProcessAll(IterateMappersMixin, PostSortRec):
|
||||
dependency_processor: Any = ...
|
||||
delete: Any = ...
|
||||
fromparent: Any = ...
|
||||
def __init__(self, uow, dependency_processor, delete, fromparent) -> None: ...
|
||||
def execute(self, uow): ...
|
||||
def per_state_flush_actions(self, uow): ...
|
||||
|
||||
class IssuePostUpdate(PostSortRec):
|
||||
mapper: Any = ...
|
||||
isdelete: Any = ...
|
||||
def __init__(self, uow, mapper, isdelete) -> None: ...
|
||||
def execute(self, uow): ...
|
||||
|
||||
class SaveUpdateAll(PostSortRec):
|
||||
mapper: Any = ...
|
||||
def __init__(self, uow, mapper) -> None: ...
|
||||
def execute(self, uow): ...
|
||||
def per_state_flush_actions(self, uow): ...
|
||||
|
||||
class DeleteAll(PostSortRec):
|
||||
mapper: Any = ...
|
||||
def __init__(self, uow, mapper) -> None: ...
|
||||
def execute(self, uow): ...
|
||||
def per_state_flush_actions(self, uow): ...
|
||||
|
||||
class ProcessState(PostSortRec):
|
||||
dependency_processor: Any = ...
|
||||
delete: Any = ...
|
||||
state: Any = ...
|
||||
def __init__(self, uow, dependency_processor, delete, state) -> None: ...
|
||||
def execute_aggregate(self, uow, recs): ...
|
||||
|
||||
class SaveUpdateState(PostSortRec):
|
||||
state: Any = ...
|
||||
mapper: Any = ...
|
||||
def __init__(self, uow, state, mapper) -> None: ...
|
||||
def execute_aggregate(self, uow, recs): ...
|
||||
|
||||
class DeleteState(PostSortRec):
|
||||
state: Any = ...
|
||||
mapper: Any = ...
|
||||
def __init__(self, uow, state, mapper) -> None: ...
|
||||
def execute_aggregate(self, uow, recs): ...
|
|
@ -1,78 +0,0 @@
|
|||
from typing import Any, Optional, Text
|
||||
from ..sql.selectable import FromClause
|
||||
|
||||
from ..sql import expression
|
||||
from ..sql import util as sql_util
|
||||
from .base import InspectionAttr as InspectionAttr, object_mapper as object_mapper
|
||||
|
||||
all_cascades: Any = ...
|
||||
|
||||
class CascadeOptions(frozenset):
|
||||
save_update: Any = ...
|
||||
delete: Any = ...
|
||||
refresh_expire: Any = ...
|
||||
merge: Any = ...
|
||||
expunge: Any = ...
|
||||
delete_orphan: Any = ...
|
||||
def __new__(cls, value_list): ...
|
||||
@classmethod
|
||||
def from_string(cls, arg): ...
|
||||
|
||||
def polymorphic_union(table_map, typecolname, aliasname: str = ..., cast_nulls: bool = ...): ...
|
||||
def identity_key(*args, **kwargs): ...
|
||||
|
||||
class ORMAdapter(sql_util.ColumnAdapter):
|
||||
mapper: Any = ...
|
||||
aliased_class: Any = ...
|
||||
def __init__(self, entity, equivalents: Optional[Any] = ...,
|
||||
adapt_required: bool = ..., chain_to: Optional[Any] = ...,
|
||||
allow_label_resolve: bool = ..., anonymize_labels: bool = ...) -> None: ...
|
||||
|
||||
class AliasedClass(object):
|
||||
__name__: Any = ...
|
||||
def __init__(self, cls: Any, alias: Optional[FromClause] = ..., name: Optional[Text] = ...,
|
||||
flat: bool = ..., adapt_on_names: bool = ..., with_polymorphic_mappers: Any = ...,
|
||||
with_polymorphic_discriminator: Optional[Any] = ..., base_alias: Optional[Any] = ...,
|
||||
use_mapper_path: bool = ...) -> None: ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
class AliasedInsp(InspectionAttr):
|
||||
entity: Any = ...
|
||||
mapper: Any = ...
|
||||
selectable: Any = ...
|
||||
name: str = ...
|
||||
with_polymorphic_mappers: Any = ...
|
||||
polymorphic_on: Any = ...
|
||||
def __init__(self, entity, mapper, selectable, name,
|
||||
with_polymorphic_mappers, polymorphic_on, _base_alias, _use_mapper_path,
|
||||
adapt_on_names) -> None: ...
|
||||
is_aliased_class: bool = ...
|
||||
@property
|
||||
def class_(self): ...
|
||||
|
||||
def aliased(element: Any, alias: Optional[FromClause] = ..., name: Optional[Text] = ...,
|
||||
flat: bool = ..., adapt_on_names: bool = ...) -> AliasedClass: ...
|
||||
def with_polymorphic(base, classes, selectable: bool = ..., flat: bool = ...,
|
||||
polymorphic_on: Optional[Any] = ..., aliased: bool = ...,
|
||||
innerjoin: bool = ..., _use_mapper_path: bool = ...,
|
||||
_existing_alias: Optional[Any] = ...): ...
|
||||
|
||||
class _ORMJoin(expression.Join):
|
||||
__visit_name__: Any = ...
|
||||
onclause: Any = ...
|
||||
def __init__(self, left, right, onclause: Optional[Any] = ...,
|
||||
isouter: bool = ..., full: bool = ...,
|
||||
_left_memo: Optional[Any] = ..., _right_memo: Optional[Any] = ...) -> None: ...
|
||||
def join(self, right, onclause: Optional[Any] = ...,
|
||||
isouter: bool = ..., full: bool = ..., join_to_left: Optional[Any] = ...): ...
|
||||
def outerjoin(self, right, onclause: Optional[Any] = ...,
|
||||
full: bool = ..., join_to_left: Optional[Any] = ...): ...
|
||||
|
||||
def join(left, right, onclause: Optional[Any] = ..., isouter: bool = ...,
|
||||
full: bool = ..., join_to_left: Optional[Any] = ...): ...
|
||||
def outerjoin(left, right, onclause: Optional[Any] = ...,
|
||||
full: bool = ..., join_to_left: Optional[Any] = ...): ...
|
||||
def with_parent(instance, prop): ...
|
||||
def has_identity(object) -> bool: ...
|
||||
def was_deleted(object) -> bool: ...
|
||||
def randomize_unitofwork(): ...
|
|
@ -1,60 +0,0 @@
|
|||
from typing import Any, Optional, Deque
|
||||
from . import log
|
||||
|
||||
proxies: Any = ...
|
||||
|
||||
def manage(module, **params): ...
|
||||
def clear_managers(): ...
|
||||
|
||||
reset_rollback: Any = ...
|
||||
reset_commit: Any = ...
|
||||
reset_none: Any = ...
|
||||
|
||||
class Pool(log.Identified):
|
||||
logging_name: str = ...
|
||||
echo: Any
|
||||
def __init__(self, creator, recycle: int = ..., echo: Optional[Any] = ..., use_threadlocal: bool = ...,
|
||||
logging_name: Optional[Any] = ..., reset_on_return: bool = ..., listeners: Optional[Any] = ...,
|
||||
events: Optional[Any] = ..., dialect: Optional[Any] = ...,
|
||||
_dispatch: Optional[Any] = ...) -> None: ...
|
||||
def add_listener(self, listener): ...
|
||||
def unique_connection(self): ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def connect(self): ...
|
||||
def status(self): ...
|
||||
|
||||
class SingletonThreadPool(Pool):
|
||||
size: int = ...
|
||||
def __init__(self, creator, pool_size: int = ..., **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
|
||||
class QueuePool(Pool):
|
||||
def __init__(self, creator, pool_size: int = ..., max_overflow: int = ...,
|
||||
timeout: int = ..., **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
def size(self): ...
|
||||
def checkedin(self): ...
|
||||
def overflow(self): ...
|
||||
def checkedout(self): ...
|
||||
|
||||
class NullPool(Pool):
|
||||
def status(self): ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
|
||||
class StaticPool(Pool):
|
||||
def connection(self): ...
|
||||
def status(self): ...
|
||||
def dispose(self): ...
|
||||
def recreate(self): ...
|
||||
|
||||
class AssertionPool(Pool):
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
def status(self): ...
|
||||
def dispose(self): ...
|
||||
def recreate(self): ...
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче