@@ -8,6 +8,7 @@ from typing import List
88from typing import Mapping
99from typing import Optional
1010from typing import overload
11+ from typing import Sequence
1112from typing import Set
1213from typing import Type
1314from typing import TypeVar
@@ -22,11 +23,13 @@ from . import type_api
2223from . import visitors
2324from .base import DedupeColumnCollection
2425from .base import DialectKWArgs
26+ from .base import ImmutableColumnCollection
2527from .base import SchemaEventTarget
2628from .elements import ClauseElement
2729from .elements import ColumnClause
2830from .elements import ColumnElement
2931from .elements import TextClause
32+ from .events import DDLEvents
3033from .selectable import TableClause
3134from .. import util
3235from ..engine import Connection
@@ -54,6 +57,7 @@ _ID = TypeVar("_ID", bound=Identity)
5457class SchemaItem (SchemaEventTarget , visitors .Visitable ):
5558 __visit_name__ : str = ...
5659 create_drop_stringify_dialect : str = ...
60+ dispatch : DDLEvents
5761 @util .memoized_property
5862 def info (self ) -> Dict [Any , Any ]: ...
5963
@@ -67,7 +71,8 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
6771 primary_key : PrimaryKeyConstraint = ...
6872 fullname : str = ...
6973 implicit_returning : bool = ...
70- comment : Optional [Any ] = ...
74+ comment : Optional [str ] = ...
75+ _prefixes : Sequence [str ] = ...
7176 def __new__ (cls : Type [_TAB ], * args : Any , ** kw : Any ) -> _TAB : ...
7277 def __init__ (self , * args : Any , ** kw : Any ) -> None : ...
7378 @property
@@ -118,9 +123,18 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
118123 ] = ...,
119124 name : Optional [util .text_type ] = ...,
120125 ) -> Table : ...
126+ @util .memoized_property
127+ def columns (self ) -> ImmutableColumnCollection [Column [Any ]]: ...
128+ @util .memoized_property
129+ def c (self ) -> ImmutableColumnCollection [Column [Any ]]: ...
130+ @property
131+ def _autoincrement_column (self ) -> Optional [Column [Any ]]: ...
132+ @_autoincrement_column .setter
133+ def _autoincrement_column (self , value : Optional [Column [Any ]]) -> None : ...
121134
122135class Column (DialectKWArgs , SchemaItem , ColumnClause [_TE ]):
123136 __visit_name__ : str = ...
137+ name : str = ...
124138 inherit_cache : bool = ...
125139 key : Optional [str ] = ...
126140 primary_key : bool = ...
@@ -438,6 +452,7 @@ class Constraint(DialectKWArgs, SchemaItem):
438452 name : Optional [str ] = ...
439453 deferrable : Optional [bool ] = ...
440454 initially : Optional [str ] = ...
455+ parent : Optional [Table ] = ...
441456 def __init__ (
442457 self ,
443458 name : Optional [str ] = ...,
@@ -502,7 +517,7 @@ class ForeignKeyConstraint(ColumnCollectionConstraint):
502517 elements : List [ForeignKey ] = ...
503518 def __init__ (
504519 self ,
505- columns : Iterable [str ],
520+ columns : Iterable [Union [ str , Column [ Any ]] ],
506521 refcolumns : Iterable [Union [str , Column [Any ]]],
507522 name : Optional [str ] = ...,
508523 onupdate : Optional [str ] = ...,
@@ -651,3 +666,5 @@ class Identity(IdentityOptions, FetchedValue, SchemaItem):
651666 order : Optional [bool ] = ...,
652667 ) -> None : ...
653668 def copy (self : _ID , ** kw : Any ) -> _ID : ...
669+
670+ def _get_table_key (name : str , schema : Optional [str ]) -> str : ...
0 commit comments