
    ,h             	      (	   % S r SSKJr  SSKJr  SSKrSSKJr  SSKrSSK	r	SSK	J
r
  SSK	Jr  SSK	Jr  SS	K	Jr  SS
K	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSK	Jr  SSKJr  SSKJr  SSKJ r   SSKJ!r!  SSKJ"r"  SSK#J$r$  SSK#J%r%  SS K#J&r&  SS!K#J'r'  SS"K#J(r(  SS#K#J)r)  SS$K#J*r*  SS%K#J+r+  SS&K#J,r,  SS'K#J-r-  SS(KJ.r.  SS)K/J0r0  SS*K/J1r1  SS+K/J2r2  SS,K/J3r3  SS-K/J4r4  SS.K5J6r6  SS/K!J7r7  SS0K"J8r8  S1S2KJ9r9  S1S3KJ:r:  S1S4KJ;r;  S1S5KJ<r<  S1S6K<J=r=  S1S7K>J?r?  S1S8K>J@r@  S1S9K>JArA  S1S:K>JBrB  S1S;K>JCrC  S1S<K>JDrD  \	R4                  (       a~  SS=KEJFrF  SS>KEJGrG  SS?KEJHrH  SS@KEJIrI  SSAKEJJrJ  SSBKEJKrK  SSCK#JLrL  SSDK#JMrM  SSEKNJOrO  SSFK/JPrP  SSGK/JQrQ  SSHKRJSrS  SSIK!JTrT  SSJK"JUrU  S1SKKVJWrW  S1SLKVJXrX  S1SMKYJZrZ  S1SNKYJ[r[  S1SOKYJ\r\  S1SPK]J^r^  S1SQK_J`r`  \" SRSSST9ra\" SUSVST9rb\" SWSXST9rc\\\d\&4      re\SY\d\4\2\
   4   rf\frg " SZ S[\5      rh\hR                  riS\\jS]'   \hR                  rkS^\jS_'   \hR                  rlS`\jSa'   SSb jrm        SSc jrn\;R                   " Sd SV\-5      5       rp " Se Sf5      rq " Sg Sh\p5      rr " Si SX\*\r\6\;R                  SX   5      rt " Sj Sk\*\p\1\a   5      ru  SSSlSm.         SSn jjjrv " So Sp\*\p5      rw\(       a      SSq jrx    SSr jry    SSs jrzO6\R                  " St5      rx\R                  " Su5      ry\R                  " Sv5      rz " Sw Sx\+\p5      r| " Sy Sz\|\5      r} " S{ S|\}5      r~ " S} S~\}5      r\S   r " S S\}5      r " S S\A5      r " S S\}5      r " S S5      r " S S\r\\|5      r\;R                   " S SY\,5      5       r " S S\5      r " S S\*\q\p5      r " S S5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\*\\q\p5      r\\\t/\d4   r\\d\4   r " S S\CSS9r\\\\
\4   4   r\<GR&                  " SS05      rS\jS'    " S S\r5      r " S S\\p5      r " S S\\\p5      rg)a/  The schema module provides the building blocks for database metadata.

Each element within this module describes a database entity which can be
created and dropped, or is otherwise part of such an entity.  Examples include
tables, columns, sequences, and indexes.

All entities are subclasses of :class:`~sqlalchemy.schema.SchemaItem`, and as
defined in this module they are intended to be agnostic of any vendor-specific
constructs.

A collection of entities are grouped into a unit called
:class:`~sqlalchemy.schema.MetaData`. MetaData serves as a logical grouping of
schema elements, and can also be associated with an actual database connection
such that operations involving the contained elements can contact the database
as needed.

Two of the elements here also build upon their "syntactic" counterparts, which
are defined in :class:`~sqlalchemy.sql.expression.`, specifically
:class:`~sqlalchemy.schema.Table` and :class:`~sqlalchemy.schema.Column`.
Since these objects are part of the SQL expression language, they are usable
as components in SQL expressions.

    )annotations)ABCN)Enum)Any)Callable)cast)
Collection)Dict)Iterable)Iterator)List)Mapping)NoReturn)Optional)overload)Sequence)Set)Tuple)TYPE_CHECKING)TypeVar)Union   )	coercions)ddl)roles)type_api)visitors)_DefaultDescriptionTuple)_NoArg)	_NoneName)_SentinelColumnCharacterization) _SentinelDefaultCharacterization)DedupeColumnCollection)DialectKWArgs)
Executable)SchemaEventTarget)SchemaVisitable)_document_text_coercion)ClauseElement)ColumnClause)ColumnElement)quoted_name)
TextClause)TableClause)to_instance)ExternallyTraversible   )event)exc)
inspection)util)HasMemoized)Final)Literal)Protocol)Self)	TypedDict)	TypeGuard)_AutoIncrementType)_CreateDropBind)_DDLColumnArgument)	_InfoType)_TextCoercedExpressionArgument)_TypeEngineArgument)	ColumnSet)ReadOnlyColumnCollection)DDLCompiler)BindParameter)KeyedColumnElement)Function)
TypeEngine)anon_map)
Connection)Engine)_CoreMultiExecuteParams)CoreExecuteOptionsParameter)ExecutionContext)_ReflectionInfo)
FromClause_Tr   )bound_SI
SchemaItem_TABTableFetchedValuec                  $    \ rS rSrSr Sr SrSrg)SchemaConst   r   r1       N)__name__
__module____qualname____firstlineno__RETAIN_SCHEMABLANK_SCHEMANULL_UNSPECIFIED__static_attributes__r]       M/var/www/auris/envauris/lib/python3.13/site-packages/sqlalchemy/sql/schema.pyrZ   rZ      s%    M L rf   rZ   z)Final[Literal[SchemaConst.RETAIN_SCHEMA]]rb   z(Final[Literal[SchemaConst.BLANK_SCHEMA]]rc   z,Final[Literal[SchemaConst.NULL_UNSPECIFIED]]rd   c                    Uc  U $ US-   U -   $ )N.r]   )nameschemas     rg   _get_table_keyrl      s    ~|d""rf   c                   ^^ Ub  Uc  U $ UmUm      SUU4S jjn[        [        [           [        R                  " U 0 U5      5      $ )Nc                   > [        U [        5      (       aB  U R                  TL a3  U R                  TR                  ;   a  TR                  U R                     $ g N)
isinstanceColumntablekeyc)elementkwfixed_source_tablefixed_target_tables     rg   replace!_copy_expression.<locals>.replace   sJ     w''!331333%''44rf   )ru   r0   rv   r   returnzOptional[ExternallyTraversible])r   r+   r   r   replacement_traverse)
expressionsource_tabletarget_tablery   rw   rx   s       @@rg   _copy_expressionr      sm    
 |3%%
&
.1
	(
 
 c%%j"g> rf   c                  j    \ rS rSrSrSrSrSS jrSS jr\	R                  SS j5       rSS jrS	rS
rg)rU      z3Base class for items that define a database schema.schema_itemdefaultc                    U H  nUc  M   UR                   nU" U 40 UD6  M      g! [         a   n[        R                  " SU< 35      UeSnAff = f)z7Initialize the list of child items for this SchemaItem.NzH'SchemaItem' object, such as a 'Column' or a 'Constraint' expected, got )_set_parent_with_dispatchAttributeErrorr3   ArgumentError)selfargsrv   itemspwderrs         rg   _init_itemsSchemaItem._init_items   sj    D%99D $$  & ++66:X? s   &
AAAc                .    [         R                  " U S/S9$ )Ninfo)
omit_kwargr5   generic_reprr   s    rg   __repr__SchemaItem.__repr__   s      6(;;rf   c                    0 $ )a2  Info dictionary associated with the object, allowing user-defined
data to be associated with this :class:`.SchemaItem`.

The dictionary is automatically generated when first accessed.
It can also be specified in the constructor of some objects,
such as :class:`_schema.Table` and :class:`_schema.Column`.

r]   r   s    rg   r   SchemaItem.info   s	     	rf   c                    SU R                   ;   a  U R                  R                  5       Ul        UR                  R	                  U R                  5        U$ )Nr   )__dict__r   copydispatch_update)r   r   s     rg   _schema_item_copySchemaItem._schema_item_copy   s?    T]]"#yy~~/K$$T]]3rf   Tr]   N)r   rU   rv   r   r{   Noner{   str)r{   r@   )r   rT   r{   rT   )r^   r_   r`   ra   __doc____visit_name__create_drop_stringify_dialectr   r   r5   memoized_propertyr   r   _use_schema_mapre   r]   rf   rg   rU   rU      s@    ="N$-!%< 
	 	 Orf   c                  J    \ rS rSr% SrSrS\S'      S       S	S jjrSrg)
HasConditionalDDLi  zdefine a class that includes the :meth:`.HasConditionalDDL.ddl_if`
method, allowing for conditional rendering of DDL.

Currently applies to constraints and indexes.

.. versionadded:: 2.0


NzOptional[ddl.DDLIf]_ddl_ifc                >    [         R                  " XU5      U l        U $ )a`  apply a conditional DDL rule to this schema item.

These rules work in a similar manner to the
:meth:`.ExecutableDDLElement.execute_if` callable, with the added
feature that the criteria may be checked within the DDL compilation
phase for a construct such as :class:`.CreateTable`.
:meth:`.HasConditionalDDL.ddl_if` currently applies towards the
:class:`.Index` construct as well as all :class:`.Constraint`
constructs.

:param dialect: string name of a dialect, or a tuple of string names
 to indicate multiple dialect types.

:param callable\_: a callable that is constructed using the same form
 as that described in
 :paramref:`.ExecutableDDLElement.execute_if.callable_`.

:param state: any arbitrary object that will be passed to the
 callable, if present.

.. versionadded:: 2.0

.. seealso::

    :ref:`schema_ddl_ddl_if` - background and usage examples


)r   DDLIfr   )r   dialect	callable_states       rg   ddl_ifHasConditionalDDL.ddl_if  s    D yyU;rf   )r   )NNN)r   Optional[str]r   zOptional[ddl.DDLIfCallable]r   Optional[Any]r{   r:   )	r^   r_   r`   ra   r   r   __annotations__r   re   r]   rf   rg   r   r     sO     $(G ' "&15#	## /# 	#
 
# #rf   r   c                  $    \ rS rSr% SrS\S'   Srg)HasSchemaAttri6  z1schema item that includes a top-level schema namer   rk   r]   N)r^   r_   r`   ra   r   r   re   r]   rf   rg   r   r   6  s    ;rf   r   c                    ^  \ rS rSr% SrSr\(       a(  \R                  S3S j5       r	\R                  S4S j5       r
S\S'   S\S	'   S
\S'    S\S'    \(       a>  \R                  S5S j5       r\R                    S5S j5       r\R                  S5S j5       r      S6S jr\R                  (       d  \R"                  " SS9S7S j5       r\S7S j5       rSSSSSSSSSSSSSSSSS.                                         S8U 4S jjjr    S9               S:S jjr\S;S j5       r\S<S j5       rS=S jrS>S jrS?S  jrS?S! jr\R                  S@S" j5       r\R>                    SAS# j5       r \S@S$ j5       r!\SBS% j5       r"SBS& jr#SBS' jr$SCS( jr% SD     SES) jjr&SFS* jr'SGS+ jr(SDSHS, jjr)SDSHS- jjr*\RV                  " S.S/5      \,SS4         SIS0 jj5       r-\,SS4         SIS1 jjr.S2r/U =r0$ )JrW   i<  a  Represent a table in a database.

e.g.::

    mytable = Table(
        "mytable",
        metadata,
        Column("mytable_id", Integer, primary_key=True),
        Column("value", String(50)),
    )

The :class:`_schema.Table`
object constructs a unique instance of itself based
on its name and optional schema name within the given
:class:`_schema.MetaData` object. Calling the :class:`_schema.Table`
constructor with the same name and same :class:`_schema.MetaData` argument
a second time will return the *same* :class:`_schema.Table`
object - in this way
the :class:`_schema.Table` constructor acts as a registry function.

.. seealso::

    :ref:`metadata_describing` - Introduction to database metadata

rr   c                    g ro   r]   r   s    rg   primary_keyTable.primary_key]  s    7:rf   c                    g ro   r]   r   s    rg   foreign_keysTable.foreign_keys`  s    36rf   #DedupeColumnCollection[Column[Any]]_columnsOptional[Column[Any]]_sentinel_columnSet[Constraint]constraintsz
Set[Index]indexesc                    g ro   r]   r   s    rg   columnsTable.columns  s    ILrf   c                    g ro   r]   r   s    rg   exported_columnsTable.exported_columns  s     :=rf   c                    g ro   r]   r   s    rg   rt   Table.c  s    CFrf   c                J    U R                   (       a  U 4U R                  -   $ U 4$ ro   )_annotations_annotations_cache_key)r   rJ   
bindparamss      rg   _gen_cache_keyTable._gen_cache_key  s'     7T88887Nrf   )1.4z8Deprecated alias of :paramref:`_schema.Table.must_exist`)	mustexistc                &    U R                   " U0 UD6$ ro   )_new)clsr   rv   s      rg   __new__Table.__new__  s     88T(R((rf   c                   U(       d  U(       d  [         R                  U 5      $  US   US   USS  pnUR	                  SS 5      nUc  UR
                  nOU[        L a  S nUR	                  SS5      nUR	                  SS5      nU(       a  U(       a  S	n[        R                  " U5      eUR                  S
UR                  SS5      5      n	[        X55      n
XR                  ;   ab  U(       d1  U(       d*  [        U5      (       a  [        R                  " SU
 S35      eUR                  U
   nU(       a  UR                  " U0 UD6  U$ U	(       a  [        R                  " SU
 S35      e[         R                  U 5      nUR                  R!                  X5        UR#                  X5U5         UR$                  " X4/UQ7SS0UD6  UR                  R'                  X5        U$ ! [         a    [        S5      ef = f! [(         aD    [*        R,                  " 5          UR/                  X55        S S S 5         g ! , (       d  f        g = ff = f)Nr   r   r1   zJTable() takes at least two positional-only arguments 'name' and 'metadata'rk   keep_existingFextend_existingz9keep_existing and extend_existing are mutually exclusive.
must_existr   Table 'z' is already defined for this MetaData instance.  Specify 'extend_existing=True' to redefine options and columns on an existing Table object.z' not defined_no_init)objectr   
IndexError	TypeErrorgetrk   rc   r3   r   poprl   tablesboolInvalidRequestError_init_existingr   before_parent_attach
_add_table__init__after_parent_attach	Exceptionr5   safe_reraise_remove_table)r   r   rv   rj   metadatark   r   r   msgr   rs   rr   s               rg   r   
Table._new  s
   B>>#&&	#'7DGT!"XDD $'>__F|#F6&&!2E:_MC##C((VVL"&&e*DE
T*//! T$ZZ--cU #- -  OOC(E$$d1b1L--uM.JKKNN3'ENN//@e49tKKuKK225CU  	2 	V  9&&(**48 )(((9s5   G! ,4G: !G7:IH5+I5
I	?IINTF)rk   quotequote_schemaautoload_withautoload_replacer   r   resolve_fksinclude_columnsimplicit_returningcommentr   	listenersprefixes
_extend_onr   c          	       > U(       a  g[         TU ]  [        X5      5        X l        Uc  UR                  U l        O:U[
        L a  SU l        O)Un[        U[        5      (       d   e[        X55      U l        SU l        [        5       U l
        [        5       U l        [        SS9R                  U 5        [        5       U l        [        5       U l        U R                  b#  U R                  < SU R                   < 3U l        OU R                   U l        Xl        UR'                  SS5      nXl        Ub  Xl        Ub$  U H  u  nn[,        R.                  " U UU5        M      U(       a  UO/ U l        U R2                  " S0 UD6  Ub  U R5                  UUUUUU
S9  U R6                  " UU	=(       d    U=(       d    U0 S.6  g)	a	/  Constructor for :class:`_schema.Table`.


:param name: The name of this table as represented in the database.

    The table name, along with the value of the ``schema`` parameter,
    forms a key which uniquely identifies this :class:`_schema.Table`
    within
    the owning :class:`_schema.MetaData` collection.
    Additional calls to :class:`_schema.Table` with the same name,
    metadata,
    and schema name will return the same :class:`_schema.Table` object.

    Names which contain no upper case characters
    will be treated as case insensitive names, and will not be quoted
    unless they are a reserved word or contain special characters.
    A name with any number of upper case characters is considered
    to be case sensitive, and will be sent as quoted.

    To enable unconditional quoting for the table name, specify the flag
    ``quote=True`` to the constructor, or use the :class:`.quoted_name`
    construct to specify the name.

:param metadata: a :class:`_schema.MetaData`
    object which will contain this
    table.  The metadata is used as a point of association of this table
    with other tables which are referenced via foreign key.  It also
    may be used to associate this table with a particular
    :class:`.Connection` or :class:`.Engine`.

:param \*args: Additional positional arguments are used primarily
    to add the list of :class:`_schema.Column`
    objects contained within this
    table. Similar to the style of a CREATE TABLE statement, other
    :class:`.SchemaItem` constructs may be added here, including
    :class:`.PrimaryKeyConstraint`, and
    :class:`_schema.ForeignKeyConstraint`.

:param autoload_replace: Defaults to ``True``; when using
    :paramref:`_schema.Table.autoload_with`
    in conjunction with :paramref:`_schema.Table.extend_existing`,
    indicates
    that :class:`_schema.Column` objects present in the already-existing
    :class:`_schema.Table`
    object should be replaced with columns of the same
    name retrieved from the autoload process.   When ``False``, columns
    already present under existing names will be omitted from the
    reflection process.

    Note that this setting does not impact :class:`_schema.Column` objects
    specified programmatically within the call to :class:`_schema.Table`
    that
    also is autoloading; those :class:`_schema.Column` objects will always
    replace existing columns of the same name when
    :paramref:`_schema.Table.extend_existing` is ``True``.

    .. seealso::

        :paramref:`_schema.Table.autoload_with`

        :paramref:`_schema.Table.extend_existing`

:param autoload_with: An :class:`_engine.Engine` or
    :class:`_engine.Connection` object,
    or a :class:`_reflection.Inspector` object as returned by
    :func:`_sa.inspect`
    against one, with which this :class:`_schema.Table`
    object will be reflected.
    When set to a non-None value, the autoload process will take place
    for this table against the given engine or connection.

    .. seealso::

        :ref:`metadata_reflection_toplevel`

        :meth:`_events.DDLEvents.column_reflect`

        :ref:`metadata_reflection_dbagnostic_types`

:param extend_existing: When ``True``, indicates that if this
    :class:`_schema.Table` is already present in the given
    :class:`_schema.MetaData`,
    apply further arguments within the constructor to the existing
    :class:`_schema.Table`.

    If :paramref:`_schema.Table.extend_existing` or
    :paramref:`_schema.Table.keep_existing` are not set,
    and the given name
    of the new :class:`_schema.Table` refers to a :class:`_schema.Table`
    that is
    already present in the target :class:`_schema.MetaData` collection,
    and
    this :class:`_schema.Table`
    specifies additional columns or other constructs
    or flags that modify the table's state, an
    error is raised.  The purpose of these two mutually-exclusive flags
    is to specify what action should be taken when a
    :class:`_schema.Table`
    is specified that matches an existing :class:`_schema.Table`,
    yet specifies
    additional constructs.

    :paramref:`_schema.Table.extend_existing`
    will also work in conjunction
    with :paramref:`_schema.Table.autoload_with` to run a new reflection
    operation against the database, even if a :class:`_schema.Table`
    of the same name is already present in the target
    :class:`_schema.MetaData`; newly reflected :class:`_schema.Column`
    objects
    and other options will be added into the state of the
    :class:`_schema.Table`, potentially overwriting existing columns
    and options of the same name.

    As is always the case with :paramref:`_schema.Table.autoload_with`,
    :class:`_schema.Column` objects can be specified in the same
    :class:`_schema.Table`
    constructor, which will take precedence.  Below, the existing
    table ``mytable`` will be augmented with :class:`_schema.Column`
    objects
    both reflected from the database, as well as the given
    :class:`_schema.Column`
    named "y"::

        Table(
            "mytable",
            metadata,
            Column("y", Integer),
            extend_existing=True,
            autoload_with=engine,
        )

    .. seealso::

        :paramref:`_schema.Table.autoload_with`

        :paramref:`_schema.Table.autoload_replace`

        :paramref:`_schema.Table.keep_existing`


:param implicit_returning: True by default - indicates that
    RETURNING can be used, typically by the ORM, in order to fetch
    server-generated values such as primary key values and
    server side defaults, on those backends which support RETURNING.

    In modern SQLAlchemy there is generally no reason to alter this
    setting, except for some backend specific cases
    (see :ref:`mssql_triggers` in the SQL Server dialect documentation
    for one such example).

:param include_columns: A list of strings indicating a subset of
    columns to be loaded via the ``autoload`` operation; table columns who
    aren't present in this list will not be represented on the resulting
    ``Table`` object. Defaults to ``None`` which indicates all columns
    should be reflected.

:param resolve_fks: Whether or not to reflect :class:`_schema.Table`
    objects
    related to this one via :class:`_schema.ForeignKey` objects, when
    :paramref:`_schema.Table.autoload_with` is
    specified.   Defaults to True.  Set to False to disable reflection of
    related tables as :class:`_schema.ForeignKey`
    objects are encountered; may be
    used either to save on SQL calls or to avoid issues with related tables
    that can't be accessed. Note that if a related table is already present
    in the :class:`_schema.MetaData` collection, or becomes present later,
    a
    :class:`_schema.ForeignKey` object associated with this
    :class:`_schema.Table` will
    resolve to that table normally.

    .. versionadded:: 1.3

    .. seealso::

        :paramref:`.MetaData.reflect.resolve_fks`


:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param keep_existing: When ``True``, indicates that if this Table
    is already present in the given :class:`_schema.MetaData`, ignore
    further arguments within the constructor to the existing
    :class:`_schema.Table`, and return the :class:`_schema.Table`
    object as
    originally created. This is to allow a function that wishes
    to define a new :class:`_schema.Table` on first call, but on
    subsequent calls will return the same :class:`_schema.Table`,
    without any of the declarations (particularly constraints)
    being applied a second time.

    If :paramref:`_schema.Table.extend_existing` or
    :paramref:`_schema.Table.keep_existing` are not set,
    and the given name
    of the new :class:`_schema.Table` refers to a :class:`_schema.Table`
    that is
    already present in the target :class:`_schema.MetaData` collection,
    and
    this :class:`_schema.Table`
    specifies additional columns or other constructs
    or flags that modify the table's state, an
    error is raised.  The purpose of these two mutually-exclusive flags
    is to specify what action should be taken when a
    :class:`_schema.Table`
    is specified that matches an existing :class:`_schema.Table`,
    yet specifies
    additional constructs.

    .. seealso::

        :paramref:`_schema.Table.extend_existing`

:param listeners: A list of tuples of the form ``(<eventname>, <fn>)``
    which will be passed to :func:`.event.listen` upon construction.
    This alternate hook to :func:`.event.listen` allows the establishment
    of a listener function specific to this :class:`_schema.Table` before
    the "autoload" process begins.  Historically this has been intended
    for use with the :meth:`.DDLEvents.column_reflect` event, however
    note that this event hook may now be associated with the
    :class:`_schema.MetaData` object directly::

        def listen_for_reflect(table, column_info):
            "handle the column reflection event"
            # ...


        t = Table(
            "sometable",
            autoload_with=engine,
            listeners=[("column_reflect", listen_for_reflect)],
        )

    .. seealso::

        :meth:`_events.DDLEvents.column_reflect`

:param must_exist: When ``True``, indicates that this Table must already
    be present in the given :class:`_schema.MetaData` collection, else
    an exception is raised.

:param prefixes:
    A list of strings to insert after CREATE in the CREATE TABLE
    statement.  They will be separated by spaces.

:param quote: Force quoting of this table's name on or off, corresponding
    to ``True`` or ``False``.  When left at its default of ``None``,
    the column identifier will be quoted according to whether the name is
    case sensitive (identifiers with at least one upper case character are
    treated as case sensitive), or if it's a reserved word.  This flag
    is only needed to force quoting of a reserved word which is not known
    by the SQLAlchemy dialect.

    .. note:: setting this flag to ``False`` will not provide
      case-insensitive behavior for table reflection; table reflection
      will always search for a mixed-case name in a case sensitive
      fashion.  Case insensitive names are specified in SQLAlchemy only
      by stating the name with all lower case characters.

:param quote_schema: same as 'quote' but applies to the schema identifier.

:param schema: The schema name for this table, which is required if
    the table resides in a schema other than the default selected schema
    for the engine's database connection.  Defaults to ``None``.

    If the owning :class:`_schema.MetaData` of this :class:`_schema.Table`
    specifies its
    own :paramref:`_schema.MetaData.schema` parameter,
    then that schema name will
    be applied to this :class:`_schema.Table`
    if the schema parameter here is set
    to ``None``.  To set a blank schema name on a :class:`_schema.Table`
    that
    would otherwise use the schema set on the owning
    :class:`_schema.MetaData`,
    specify the special symbol :attr:`.BLANK_SCHEMA`.

    The quoting rules for the schema name are the same as those for the
    ``name`` parameter, in that quoting is applied for reserved words or
    case-sensitive names; to enable unconditional quoting for the schema
    name, specify the flag ``quote_schema=True`` to the constructor, or use
    the :class:`.quoted_name` construct to specify the name.

:param comment: Optional string that will render an SQL comment on table
    creation.

    .. versionadded:: 1.2 Added the :paramref:`_schema.Table.comment`
        parameter
        to :class:`_schema.Table`.

:param \**kw: Additional keyword arguments not mentioned above are
    dialect specific, and passed in the form ``<dialectname>_<argname>``.
    See the documentation regarding an individual dialect at
    :ref:`dialect_toplevel` for detail on documented arguments.

NT_implicit_generatedri   _reflect_info)r   r  r   allow_replacements	all_namesr]   )superr   r,   r   rk   rc   rp   r   r   setr   r   PrimaryKeyConstraintr   r   _extra_dependenciesrj   fullnamer   r   r   r   r2   listen	_prefixes_extra_kwargs	_autoloadr   )r   rj   r   rk   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rv   r  evtfn	__class__s                           rg   r   Table.__init__  s   H
  T12 >"//DK|#DK'Lfc****%f;DK $u5 $	

#
#D
)E/2u ;;"'+{{DII>DM IIDM"45I $RT3+ % &.2 R 
 $NN%+'   	.   	
rf   c           
         [         R                  " U5      nUR                  5        n	U	R                  U UUUUUS9  S S S 5        g ! , (       d  f       g = f)Nr   r  )r4   inspect_inspection_contextreflect_table)
r   r   r   r   exclude_columnsr   r   r  insp	conn_insps
             rg   r  Table._autoloadq  sS     !!-0%%'9##%+ $  (''s   A
Ac                ,    [        U R                  S S9$ )zDReturn the set of constraints as a list, sorted by creation
order.

c                    U R                   $ ro   )_creation_order)rt   s    rg   <lambda>+Table._sorted_constraints.<locals>.<lambda>  s
    a6G6Grf   rs   )sortedr   r   s    rg   _sorted_constraintsTable._sorted_constraints  s     d&&,GHHrf   c                x    U R                    Vs1 s H  nUR                  c  M  UR                  iM      sn$ s  snf )aD  :class:`_schema.ForeignKeyConstraint` objects referred to by this
:class:`_schema.Table`.

This list is produced from the collection of
:class:`_schema.ForeignKey`
objects currently associated.


.. seealso::

    :attr:`_schema.Table.constraints`

    :attr:`_schema.Table.foreign_keys`

    :attr:`_schema.Table.indexes`

)r   
constraint)r   fkcs     rg   foreign_key_constraintsTable.foreign_key_constraints  s<    * ((
(~~ CNN(
 	
 
s   77c           
        UR                  SS 5      nUR                  SUS L5      nUR                  SS5      nUR                  SS 5      nUR                  SS 5      nUR                  SS 5      nUR                  SS	5      n	UR                  S
S	5      n
U	(       d   eU
(       a   eU(       a6  X`R                  :w  a'  [        R                  " SU R                   SU S35      eUR                  SS 5      nUb@  U R                   H0  nUR
                  U;  d  M  U R                  R                  U5        M2     UR                  SS5      nS H  nX;   d  M
  [        R                  " S5      e   UR                  SU R                  5      U l        UR                  SU R                  5      U l	        UR                  SU R                  5      U l
        U(       aN  U(       d&  U R                   Vs/ s H  oR
                  PM     nnOSnU R                  U R                  UUUUUUS9  U R                   Vs0 s H  oR
                  U_M     nnU R                  " S0 UD6  U R                  " USUS.6  g s  snf s  snf )Nr   autoloadr   Trk   r   r  r   Fr   z,Can't change schema of existing table from 'z' to ''r   r   )r   r   z2Can't redefine 'quote' or 'quote_schema' argumentsr   r   r   r]   r  r  )r   rk   r3   r   rt   rj   r   remover   r   r   r  r   r  r   )r   r   kwargsr   r+  r   rk   r   r  r   r   r   rt   r   rs   r  r  s                    rg   r   Table._init_existing  sA   

?D9::j-t*CD!::&8$?Hd+ZZd3


?D9 !**%6>

?E:   f+##VF816 
 !**%6=&VV660MM((+  jj5,C}''H  - zz)T\\:"(** $"9"9#
 JJvtyy1	 # 4866":6a666":"$NN%+   )-/1VVQY	/$V$$49M #; 0s   ,I13I6c                &    U R                  U5        g ro   _validate_dialect_kwargsr   r.  s     rg   r  Table._extra_kwargs      %%f-rf   c                    g ro   r]   r   s    rg   _init_collectionsTable._init_collections      rf   c                    g ro   r]   r   s    rg   _reset_exportedTable._reset_exported  r9  rf   c                .    U R                   R                  $ ro   )r   _autoincrement_columnr   s    rg   r>  Table._autoincrement_column  s    555rf   c                   SnSnSnU R                   nUb  U4nSnU R                  nU(       a  XEL a  Uc   eSnOUc  Ub  U4nSn[        R                  nU(       Ga  US   nUR                  (       aY  UR                  R
                  (       a,  U(       a  [        R                  " S5      eU(       a  SnSnSnGO[        R                  nGOmUR                  cJ  UR                  c=  UR                  (       a  [        R                  " SU S35      e[        R                  nGOUR                  b  UR                  R                  (       a  [        R                  nO[        UR                  5      (       aV  UR                  R
                  (       a*  U(       a  [        R                  " S5      eU(       a  SnSnSn[        R                   nOmUR                  R"                  (       a  [        R$                  nOAUR                  b4  U(       a  [        R                  " SUS    S	35      e[        R&                  nUc  U R(                  (       az  Ub   eU R(                   H@  nUR                  c0  UR                  (       d  M#  UR                  R"                  (       a  M@    O'   [+        U R(                  5      n[        R$                  n[-        UUUU5      $ )
a  determine a candidate column (or columns, in case of a client
generated composite primary key) which can be used as an
"insert sentinel" for an INSERT statement.

The returned structure, :class:`_SentinelColumnCharacterization`,
includes all the details needed by :class:`.Dialect` and
:class:`.SQLCompiler` to determine if these column(s) can be used
as an INSERT..RETURNING sentinel for a particular database
dialect.

.. versionadded:: 2.0.10

FNTr   zQCan't use IDENTITY default with negative increment as an explicit sentinel columnzColumn z has been marked as a sentinel column with no default generation function; it at least needs to be marked nullable=False assuming user-populated sentinel values will be used.zQCan't use SEQUENCE default with negative increment as an explicit sentinel columnzn can't be a sentinel column because it uses an explicit server side default that's not the Identity() default.)r   r>  r"   UNKNOWNidentity_increment_is_negativer3   r   IDENTITYr   server_defaultnullableNONEis_sentinelSENTINEL_DEFAULTdefault_is_sequenceSEQUENCEis_callable
CLIENTSIDE
SERVERSIDEr   tupler!   )	r   sentinel_is_explicitsentinel_is_autoincthe_sentinelexplicit_sentinel_colautoinc_coldefault_characterizationthe_sentinel_zero_pkcs	            rg    _sentinel_column_characteristics&Table._sentinel_column_characteristics  s   $  %#@D !% 5 5 ,13L#' 00$9$H***"&"*{/F'>L"&#C#K#K  ,Q ))$--DD+!55G 
 /*.K27/'+ 9AA - "))1%44<$--11!"3!4 5G G  599 ) #**6$,,888II - )):)B)BCC(00GG/"%"9"9!K# 
  3.26; 3+/L 9AA - '..::8CC - #11='11!,q/!2 3= =  5?? ) D$4$4&&& ((&&2LLL)A)A)A	 )  %T%5%564?? ) / $	
 	
rf   c                    U R                   $ )am  Returns the :class:`.Column` object which currently represents
the "auto increment" column, if any, else returns None.

This is based on the rules for :class:`.Column` as defined by the
:paramref:`.Column.autoincrement` parameter, which generally means the
column within a single integer column primary key constraint that is
not constrained by a foreign key.   If the table does not have such
a primary key constraint, then there's no "autoincrement" column.
A :class:`.Table` may have only one column defined as the
"autoincrement" column.

.. versionadded:: 2.0.4

.. seealso::

    :paramref:`.Column.autoincrement`

)r>  r   s    rg   autoincrement_columnTable.autoincrement_column{  s    ( )))rf   c                B    [        U R                  U R                  5      $ )aK  Return the 'key' for this :class:`_schema.Table`.

This value is used as the dictionary key within the
:attr:`_schema.MetaData.tables` collection.   It is typically the same
as that of :attr:`_schema.Table.name` for a table with no
:attr:`_schema.Table.schema`
set; otherwise it is typically of the form
``schemaname.tablename``.

)rl   rj   rk   r   s    rg   rs   	Table.key  s     dii55rf   c                :   SSR                  [        U R                  5      /[        U R                  5      /-   U R                   Vs/ s H  n[        U5      PM     sn-   S Vs/ s H  o"< S[        [        X5      5      < 3PM     sn-   5      -  $ s  snf s  snf )Nz	Table(%s), rk   =)joinreprrj   r   r   getattr)r   xks      rg   r   Table.__repr__  s    TYY$))_DMM"#$ $-1tAw-. ?IIj!T'$"234jIJ
 
 	
 .Is   B$$Bc                B    [        U R                  U R                  5      $ ro   )rl   descriptionrk   r   s    rg   __str__Table.__str__  s    d..<<rf   c                :    U R                   R                  U5        g)aq  Add a 'dependency' for this Table.

This is another Table object which must be created
first before this one can, or dropped after this one.

Usually, dependencies between tables are determined via
ForeignKey objects.   However, for other situations that
create dependencies outside of foreign keys (rules, inheriting),
this method can manually establish such a link.

N)r	  addr   rr   s     rg   add_is_dependent_onTable.add_is_dependent_on  s     	  $$U+rf   c           	         UR                  U UU R                   Vs0 s H  o3R                  U_M     snS9  gs  snf ! [        R                   a,  n[        R                  " UR
                  S    S35      UeSnAff = f)a  Append a :class:`_schema.Column` to this :class:`_schema.Table`.

The "key" of the newly added :class:`_schema.Column`, i.e. the
value of its ``.key`` attribute, will then be available
in the ``.c`` collection of this :class:`_schema.Table`, and the
column definition will be included in any CREATE TABLE, SELECT,
UPDATE, etc. statements generated from this :class:`_schema.Table`
construct.

Note that this does **not** change the definition of the table
as it exists within any underlying database, assuming that
table has already been created in the database.   Relational
databases support the addition of columns to existing tables
using the SQL ALTER command, which would need to be
emitted for an already-existing table that doesn't contain
the newly added column.

:param replace_existing: When ``True``, allows replacing existing
    columns. When ``False``, the default, an warning will be raised
    if a column with the same ``.key`` already exists. A future
    version of sqlalchemy will instead rise a warning.

    .. versionadded:: 1.4.0
r  r   zV Specify replace_existing=True to Table.append_column() to replace an existing column.N)r   rt   rj   r3   DuplicateColumnErrorr   )r   columnreplace_existingrt   des        rg   append_columnTable.append_column  s    8	,,#3.2ff5f6619f5 -  6'' 	**771:, # # 		s!   > 9> > A>'A99A>c                &    UR                  U 5        g)a  Append a :class:`_schema.Constraint` to this
:class:`_schema.Table`.

This has the effect of the constraint being included in any
future CREATE TABLE statement, assuming specific DDL creation
events have not been associated with the given
:class:`_schema.Constraint` object.

Note that this does **not** produce the constraint within the
relational database automatically, for a table that already exists
in the database.   To add a constraint to an
existing relational database table, the SQL ALTER command must
be used.  SQLAlchemy also provides the
:class:`.AddConstraint` construct which can produce this SQL when
invoked as an executable clause.

Nr   )r   r&  s     rg   append_constraintTable.append_constraint  s    & 	,,T2rf   c                    Un[        U[        5      (       d   eUR                  U R                  U R                  U 5        X0l        g ro   )rp   MetaDatar   rj   rk   r   )r   parentrv   r   s       rg   _set_parentTable._set_parent  s9    (H----DIIt{{D9 rf   c                @    UR                  [        R                  XS9  g)zIssue a ``CREATE`` statement for this
:class:`_schema.Table`, using the given
:class:`.Connection` or :class:`.Engine`
for connectivity.

.. seealso::

    :meth:`_schema.MetaData.create_all`.


checkfirstN_run_ddl_visitorr   SchemaGeneratorr   bindr  s      rg   createTable.create  s     	c114Orf   c                @    UR                  [        R                  XS9  g)zIssue a ``DROP`` statement for this
:class:`_schema.Table`, using the given
:class:`.Connection` or :class:`.Engine` for connectivity.

.. seealso::

    :meth:`_schema.MetaData.drop_all`.

r  Nr  r   SchemaDropperr  s      rg   drop
Table.drop
       	c//Mrf   r   zP:meth:`_schema.Table.tometadata` is renamed to :meth:`_schema.Table.to_metadata`c                &    U R                  UUUUS9$ )zReturn a copy of this :class:`_schema.Table`
associated with a different
:class:`_schema.MetaData`.

See :meth:`_schema.Table.to_metadata` for a full description.

)rk   referred_schema_fnrj   )to_metadata)r   r   rk   r  rj   s        rg   
tometadataTable.tometadata  s(    0 1	   
 	
rf   c                X   Uc  U R                   nU[        L a  U R                  nOUc  UR                  nOUn[        XE5      nXaR                  ;   a3  [
        R                  " SU R                   S35        UR                  U   $ / nU R                   H!  nUR                  UR                  XQS95        M#     [        UU/UQ7UU R                  S.U R                  D6n	U R                   H  n
[        U
[         5      (       aP  U
R"                  nU(       a
  U" XX5      nOXR                  :X  a  UOSnU	R%                  U
R                  XS95        Mh  U
R&                  (       a  M{  U
R(                  (       a  M  U	R%                  U
R                  XYS95        M     U R*                   Hk  nUR(                  (       a  M  [-        UR                   /UR.                   Vs/ s H  n[1        XU	5      PM     snQ7UR2                  U	S.UR                  D6  Mm     U R5                  U	5      $ s  snf )a
  Return a copy of this :class:`_schema.Table` associated with a
different :class:`_schema.MetaData`.

E.g.::

    m1 = MetaData()

    user = Table("user", m1, Column("id", Integer, primary_key=True))

    m2 = MetaData()
    user_copy = user.to_metadata(m2)

.. versionchanged:: 1.4  The :meth:`_schema.Table.to_metadata` function
   was renamed from :meth:`_schema.Table.tometadata`.


:param metadata: Target :class:`_schema.MetaData` object,
 into which the
 new :class:`_schema.Table` object will be created.

:param schema: optional string name indicating the target schema.
 Defaults to the special symbol :attr:`.RETAIN_SCHEMA` which indicates
 that no change to the schema name should be made in the new
 :class:`_schema.Table`.  If set to a string name, the new
 :class:`_schema.Table`
 will have this new name as the ``.schema``.  If set to ``None``, the
 schema will be set to that of the schema set on the target
 :class:`_schema.MetaData`, which is typically ``None`` as well,
 unless
 set explicitly::

    m2 = MetaData(schema="newschema")

    # user_copy_one will have "newschema" as the schema name
    user_copy_one = user.to_metadata(m2, schema=None)

    m3 = MetaData()  # schema defaults to None

    # user_copy_two will have None as the schema name
    user_copy_two = user.to_metadata(m3, schema=None)

:param referred_schema_fn: optional callable which can be supplied
 in order to provide for the schema name that should be assigned
 to the referenced table of a :class:`_schema.ForeignKeyConstraint`.
 The callable accepts this parent :class:`_schema.Table`, the
 target schema that we are changing to, the
 :class:`_schema.ForeignKeyConstraint` object, and the existing
 "target schema" of that constraint.  The function should return the
 string schema name that should be applied.    To reset the schema
 to "none", return the symbol :data:`.BLANK_SCHEMA`.  To effect no
 change, return ``None`` or :data:`.RETAIN_SCHEMA`.

 .. versionchanged:: 1.4.33  The ``referred_schema_fn`` function
    may return the :data:`.BLANK_SCHEMA` or :data:`.RETAIN_SCHEMA`
    symbols.

 E.g.::

        def referred_schema_fn(table, to_schema, constraint, referred_schema):
            if referred_schema == "base_tables":
                return referred_schema
            else:
                return to_schema


        new_table = table.to_metadata(
            m2, schema="alt_schema", referred_schema_fn=referred_schema_fn
        )

:param name: optional string name indicating the target table name.
 If not specified or None, the table name is retained.  This allows
 a :class:`_schema.Table` to be copied to the same
 :class:`_schema.MetaData` target
 with a new name.

Nr   z9' already exists within the given MetaData - not copying.)rk   _to_metadata)rk   r   rk   r   )unique_table)rj   rb   rk   rl   r   r5   warnrj  r   append_copyrW   r   r.  r   rp   ForeignKeyConstraint_referred_schemar{  _type_bound_column_flagr   Index_table_bound_expressionsr   r  r   )r   r   rk   r  rj   actual_schemars   r   colrr   constreferred_schemafk_constraint_schemaindexexprs                  rg   r  Table.to_metadata5  s+   p <99D ]" KKM^$OOM"MT1//!II$**+ ,* * ??3''<<CKK			NO  

 
 !LL	
 kk
 %%E%!566"'"8"8%+=U,( +kk9 &! )
 ''KK3   
 &&& %%''KK}KI1 &6 \\E !!

	
 !& > > > %T7 >	||
 	 ,,	 " %%e,,s   H')r	  r  r   r   r   r   r
  r   r   r   r   rk   )r{   r  )r{   Set[ForeignKey]r{   *ReadOnlyColumnCollection[str, Column[Any]])rJ   rJ   r   zList[BindParameter[Any]]r{   zTuple[Any, ...])r   r   rv   r   r{   r   )*rj   r   r   r~  r   rU   rk   7Optional[Union[str, Literal[SchemaConst.BLANK_SCHEMA]]]r   Optional[bool]r   r  r   z#Optional[Union[Engine, Connection]]r   r   r   r   r   r   r   r   r   Optional[Collection[str]]r   r   r   r   r   zOptional[Dict[Any, Any]]r   z:Optional[_typing_Sequence[Tuple[str, Callable[..., Any]]]]r   zOptional[_typing_Sequence[str]]r   Optional[Set[Table]]r   r   rv   r   r{   r   )r]   TNN)r   r~  r   Union[Engine, Connection]r   r  r  zCollection[str]r   r   r   r  r  z_ReflectionInfo | Noner{   r   )r{   zList[Constraint])r{   zSet[ForeignKeyConstraint])r   r   r.  r   r{   r   r.  r   r{   r   r{   r   r{   zOptional[Column[int]])r{   r!   r   rr   rW   r{   r   F)rt  zColumnClause[Any]ru  r   r{   r   )r&  zUnion[Index, Constraint]r{   r   r  r&   rv   r   r{   r   r  r>   r  r   r{   r   )
r   r~  rk   z.Union[str, Literal[SchemaConst.RETAIN_SCHEMA]]r  z^Optional[Callable[[Table, Optional[str], ForeignKeyConstraint, Optional[str]], Optional[str]]]rj   r   r{   rW   )1r^   r_   r`   ra   r   r   r   r5   ro_non_memoized_propertyr   r   r   r   r   rt   r   typingdeprecated_paramsr   classmethodr   r   r  propertyr#  r(  r   r  r7  r;  r>  ro_memoized_propertyrX  r[  rs   r   rk  rp  rw  r{  r  r  r  
deprecatedrb   r  r  re   __classcell__r  s   @rg   rW   rW   <  s?   4 N		&	&: 
':		&	&6 
'611++  6  		&	&L 
'L		&	&	=7	= 
'	= 
	&	&F 
'F .F	  
		

	)

	) 49 49v KO $'+=A!%# % 59#'!%)- 48+/1I
I
 I
 	I

 HI
 I
 %I
 ;I
 I
 I
 I
 I
 3I
 !I
 I
  '!I
"
#I
( 2)I
, )-I
0 1I
4 5I
6 
7I
 I
` ,. +/04 1 3	
 )  ) . 
* I I 
 
0@ND. 
""6 #6 
A
	(A
 A
F * ** 6 6
=, CH''';?'	'R3*!P
N 
__	, BO "

 ?

	
 
 



: BO "`-`- ?`-
	`- `- 
`- `-rf   c                    ^  \ rS rSr% SrSrSrS\S'   S\S'     S.S	S	S
\R                  \R                  S	S	S	S	S	\
R                  S	SS	S	S	SS	SSS	S.                                                 S/U 4S jjjjrS\S'   S\S'   S\S'    S\S'    S\S'    S\S'   S\S'   S0S jr\R                  S1S j5       r\R                  S1S j5       r\R&                  S2S j5       rS3S jrS4S  jrS5S! jrS6S" jrS4S# jr          S7S$ jrS8S% jrS8S& jr\R:                  " S'S(5      S9S) j5       rS9S* jrS:S+ jr     S;                 S<S, jjr!S-r"U =r#$ )=rq   i  z(Represents a column in a database table.rt  Tr   rs   zOptional[FetchedValue]rE  NautoF)rj   type_autoincrementr   insert_defaultdocrs   r  r  r   rF  onupdater   rE  server_onupdater   systemr   insert_sentinel_omit_from_statements_proxiesr  r  r  c               .  > X/[        U5      -   nAU(       aZ  [        US   [        5      (       a+  Ub  [        R                  " S5      eUR                  S5      nOUS   c  UR                  S5        U(       aX  US   n[        US5      (       a+  Ub  [        R                  " S5      eUR                  S5      nOUS   c  UR                  S5        Ub  [        UU5      nOUb  [        R                  " S5      e[        TU ]%  X45        U	b  U	OUU l
        Xl        UU l        UU l        U=U l        nU[        La  UU l        OU(       + U l        Xl        Xl        UU l        Xl        XPl        [-        5       U l        [-        5       U l        UU l        SU l        SU l        Ub  UU l        OU R;                  U R<                  5        U[>        R@                  La  UnOU[>        R@                  La  UnOSnUb?  [        U[B        [D        45      (       d  [C        U5      nUU l#        URI                  U5        OSU l#        Ub=  [        U[B        [D        45      (       d
  [C        USS9nXl%        URI                  U5        OSU l%        UbT  [        U[L        5      (       a#  URO                  S	5      nURI                  U5        O[Q        U5      nURI                  U5        UU l)        UbS  [        U[L        5      (       a#  URO                  S5      nURI                  U5        O[Q        USS9nURI                  U5        UU l*        U RV                  " [Y        [Z        [\           U5      6   [^        R`                  " U 5        Ub  Xl1        U Rd                  " S
0 UD6  g)aU  
Construct a new ``Column`` object.

:param name: The name of this column as represented in the database.
  This argument may be the first positional argument, or specified
  via keyword.

  Names which contain no upper case characters
  will be treated as case insensitive names, and will not be quoted
  unless they are a reserved word.  Names with any number of upper
  case characters will be quoted and sent exactly.  Note that this
  behavior applies even for databases which standardize upper
  case names as case insensitive such as Oracle Database.

  The name field may be omitted at construction time and applied
  later, at any time before the Column is associated with a
  :class:`_schema.Table`.  This is to support convenient
  usage within the :mod:`~sqlalchemy.ext.declarative` extension.

:param type\_: The column's type, indicated using an instance which
  subclasses :class:`~sqlalchemy.types.TypeEngine`.  If no arguments
  are required for the type, the class of the type can be sent
  as well, e.g.::

    # use a type with arguments
    Column("data", String(50))

    # use no arguments
    Column("level", Integer)

  The ``type`` argument may be the second positional argument
  or specified by keyword.

  If the ``type`` is ``None`` or is omitted, it will first default to
  the special type :class:`.NullType`.  If and when this
  :class:`_schema.Column` is made to refer to another column using
  :class:`_schema.ForeignKey` and/or
  :class:`_schema.ForeignKeyConstraint`, the type
  of the remote-referenced column will be copied to this column as
  well, at the moment that the foreign key is resolved against that
  remote :class:`_schema.Column` object.

:param \*args: Additional positional arguments include various
  :class:`.SchemaItem` derived constructs which will be applied
  as options to the column.  These include instances of
  :class:`.Constraint`, :class:`_schema.ForeignKey`,
  :class:`.ColumnDefault`, :class:`.Sequence`, :class:`.Computed`
  :class:`.Identity`.  In some cases an
  equivalent keyword argument is available such as ``server_default``,
  ``default`` and ``unique``.

:param autoincrement: Set up "auto increment" semantics for an
  **integer primary key column with no foreign key dependencies**
  (see later in this docstring for a more specific definition).
  This may influence the :term:`DDL` that will be emitted for
  this column during a table create, as well as how the column
  will be considered when INSERT statements are compiled and
  executed.

  The default value is the string ``"auto"``,
  which indicates that a single-column (i.e. non-composite) primary key
  that is of an INTEGER type with no other client-side or server-side
  default constructs indicated should receive auto increment semantics
  automatically. Other values include ``True`` (force this column to
  have auto-increment semantics for a :term:`composite primary key` as
  well), ``False`` (this column should never have auto-increment
  semantics), and the string ``"ignore_fk"`` (special-case for foreign
  key columns, see below).

  The term "auto increment semantics" refers both to the kind of DDL
  that will be emitted for the column within a CREATE TABLE statement,
  when methods such as :meth:`.MetaData.create_all` and
  :meth:`.Table.create` are invoked, as well as how the column will be
  considered when an INSERT statement is compiled and emitted to the
  database:

  * **DDL rendering** (i.e. :meth:`.MetaData.create_all`,
    :meth:`.Table.create`): When used on a :class:`.Column` that has
    no other
    default-generating construct associated with it (such as a
    :class:`.Sequence` or :class:`.Identity` construct), the parameter
    will imply that database-specific keywords such as PostgreSQL
    ``SERIAL``, MySQL ``AUTO_INCREMENT``, or ``IDENTITY`` on SQL Server
    should also be rendered.  Not every database backend has an
    "implied" default generator available; for example the Oracle Database
    backends alway needs an explicit construct such as
    :class:`.Identity` to be included with a :class:`.Column` in order
    for the DDL rendered to include auto-generating constructs to also
    be produced in the database.

  * **INSERT semantics** (i.e. when a :func:`_sql.insert` construct is
    compiled into a SQL string and is then executed on a database using
    :meth:`_engine.Connection.execute` or equivalent): A single-row
    INSERT statement will be known to produce a new integer primary key
    value automatically for this column, which will be accessible
    after the statement is invoked via the
    :attr:`.CursorResult.inserted_primary_key` attribute upon the
    :class:`_result.Result` object.   This also applies towards use of the
    ORM when ORM-mapped objects are persisted to the database,
    indicating that a new integer primary key will be available to
    become part of the :term:`identity key` for that object.  This
    behavior takes place regardless of what DDL constructs are
    associated with the :class:`_schema.Column` and is independent
    of the "DDL Rendering" behavior discussed in the previous note
    above.

  The parameter may be set to ``True`` to indicate that a column which
  is part of a composite (i.e. multi-column) primary key should
  have autoincrement semantics, though note that only one column
  within a primary key may have this setting.    It can also
  be set to ``True`` to indicate autoincrement semantics on a
  column that has a client-side or server-side default configured,
  however note that not all dialects can accommodate all styles
  of default as an "autoincrement".  It can also be
  set to ``False`` on a single-column primary key that has a
  datatype of INTEGER in order to disable auto increment semantics
  for that column.

  The setting *only* has an effect for columns which are:

  * Integer derived (i.e. INT, SMALLINT, BIGINT).

  * Part of the primary key

  * Not referring to another column via :class:`_schema.ForeignKey`,
    unless
    the value is specified as ``'ignore_fk'``::

        # turn on autoincrement for this column despite
        # the ForeignKey()
        Column(
            "id",
            ForeignKey("other.id"),
            primary_key=True,
            autoincrement="ignore_fk",
        )

  It is typically not desirable to have "autoincrement" enabled on a
  column that refers to another via foreign key, as such a column is
  required to refer to a value that originates from elsewhere.

  The setting has these effects on columns that meet the
  above criteria:

  * DDL issued for the column, if the column does not already include
    a default generating construct supported by the backend such as
    :class:`.Identity`, will include database-specific
    keywords intended to signify this column as an
    "autoincrement" column for specific backends.   Behavior for
    primary SQLAlchemy dialects includes:

    * AUTO INCREMENT on MySQL and MariaDB
    * SERIAL on PostgreSQL
    * IDENTITY on MS-SQL - this occurs even without the
      :class:`.Identity` construct as the
      :paramref:`.Column.autoincrement` parameter pre-dates this
      construct.
    * SQLite - SQLite integer primary key columns are implicitly
      "auto incrementing" and no additional keywords are rendered;
      to render the special SQLite keyword ``AUTOINCREMENT``
      is not included as this is unnecessary and not recommended
      by the database vendor.  See the section
      :ref:`sqlite_autoincrement` for more background.
    * Oracle Database - The Oracle Database dialects have no default "autoincrement"
      feature available at this time, instead the :class:`.Identity`
      construct is recommended to achieve this (the :class:`.Sequence`
      construct may also be used).
    * Third-party dialects - consult those dialects' documentation
      for details on their specific behaviors.

  * When a single-row :func:`_sql.insert` construct is compiled and
    executed, which does not set the :meth:`_sql.Insert.inline`
    modifier, newly generated primary key values for this column
    will be automatically retrieved upon statement execution
    using a method specific to the database driver in use:

    * MySQL, SQLite - calling upon ``cursor.lastrowid()``
      (see
      `https://www.python.org/dev/peps/pep-0249/#lastrowid
      <https://www.python.org/dev/peps/pep-0249/#lastrowid>`_)
    * PostgreSQL, SQL Server, Oracle Database - use RETURNING or an equivalent
      construct when rendering an INSERT statement, and then retrieving
      the newly generated primary key values after execution
    * PostgreSQL, Oracle Database for :class:`_schema.Table` objects that
      set :paramref:`_schema.Table.implicit_returning` to False -
      for a :class:`.Sequence` only, the :class:`.Sequence` is invoked
      explicitly before the INSERT statement takes place so that the
      newly generated primary key value is available to the client
    * SQL Server for :class:`_schema.Table` objects that
      set :paramref:`_schema.Table.implicit_returning` to False -
      the ``SELECT scope_identity()`` construct is used after the
      INSERT statement is invoked to retrieve the newly generated
      primary key value.
    * Third-party dialects - consult those dialects' documentation
      for details on their specific behaviors.

  * For multiple-row :func:`_sql.insert` constructs invoked with
    a list of parameters (i.e. "executemany" semantics), primary-key
    retrieving behaviors are generally disabled, however there may
    be special APIs that may be used to retrieve lists of new
    primary key values for an "executemany", such as the psycopg2
    "fast insertmany" feature.  Such features are very new and
    may not yet be well covered in documentation.

:param default: A scalar, Python callable, or
    :class:`_expression.ColumnElement` expression representing the
    *default value* for this column, which will be invoked upon insert
    if this column is otherwise not specified in the VALUES clause of
    the insert. This is a shortcut to using :class:`.ColumnDefault` as
    a positional argument; see that class for full detail on the
    structure of the argument.

    Contrast this argument to
    :paramref:`_schema.Column.server_default`
    which creates a default generator on the database side.

    .. seealso::

        :ref:`metadata_defaults_toplevel`

:param insert_default: An alias of :paramref:`.Column.default`
    for compatibility with :func:`_orm.mapped_column`.

    .. versionadded: 2.0.31

:param doc: optional String that can be used by the ORM or similar
    to document attributes on the Python side.   This attribute does
    **not** render SQL comments; use the
    :paramref:`_schema.Column.comment`
    parameter for this purpose.

:param key: An optional string identifier which will identify this
    ``Column`` object on the :class:`_schema.Table`.
    When a key is provided,
    this is the only identifier referencing the ``Column`` within the
    application, including ORM attribute mapping; the ``name`` field
    is used only when rendering SQL.

:param index: When ``True``, indicates that a :class:`_schema.Index`
    construct will be automatically generated for this
    :class:`_schema.Column`, which will result in a "CREATE INDEX"
    statement being emitted for the :class:`_schema.Table` when the DDL
    create operation is invoked.

    Using this flag is equivalent to making use of the
    :class:`_schema.Index` construct explicitly at the level of the
    :class:`_schema.Table` construct itself::

        Table(
            "some_table",
            metadata,
            Column("x", Integer),
            Index("ix_some_table_x", "x"),
        )

    To add the :paramref:`_schema.Index.unique` flag to the
    :class:`_schema.Index`, set both the
    :paramref:`_schema.Column.unique` and
    :paramref:`_schema.Column.index` flags to True simultaneously,
    which will have the effect of rendering the "CREATE UNIQUE INDEX"
    DDL instruction instead of "CREATE INDEX".

    The name of the index is generated using the
    :ref:`default naming convention <constraint_default_naming_convention>`
    which for the :class:`_schema.Index` construct is of the form
    ``ix_<tablename>_<columnname>``.

    As this flag is intended only as a convenience for the common case
    of adding a single-column, default configured index to a table
    definition, explicit use of the :class:`_schema.Index` construct
    should be preferred for most use cases, including composite indexes
    that encompass more than one column, indexes with SQL expressions
    or ordering, backend-specific index configuration options, and
    indexes that use a specific name.

    .. note:: the :attr:`_schema.Column.index` attribute on
       :class:`_schema.Column`
       **does not indicate** if this column is indexed or not, only
       if this flag was explicitly set here.  To view indexes on
       a column, view the :attr:`_schema.Table.indexes` collection
       or use :meth:`_reflection.Inspector.get_indexes`.

    .. seealso::

        :ref:`schema_indexes`

        :ref:`constraint_naming_conventions`

        :paramref:`_schema.Column.unique`

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param nullable: When set to ``False``, will cause the "NOT NULL"
    phrase to be added when generating DDL for the column.   When
    ``True``, will normally generate nothing (in SQL this defaults to
    "NULL"), except in some very specific backend-specific edge cases
    where "NULL" may render explicitly.
    Defaults to ``True`` unless :paramref:`_schema.Column.primary_key`
    is also ``True`` or the column specifies a :class:`_sql.Identity`,
    in which case it defaults to ``False``.
    This parameter is only used when issuing CREATE TABLE statements.

    .. note::

        When the column specifies a :class:`_sql.Identity` this
        parameter is in general ignored by the DDL compiler. The
        PostgreSQL database allows nullable identity column by
        setting this parameter to ``True`` explicitly.

:param onupdate: A scalar, Python callable, or
    :class:`~sqlalchemy.sql.expression.ClauseElement` representing a
    default value to be applied to the column within UPDATE
    statements, which will be invoked upon update if this column is not
    present in the SET clause of the update. This is a shortcut to
    using :class:`.ColumnDefault` as a positional argument with
    ``for_update=True``.

    .. seealso::

        :ref:`metadata_defaults` - complete discussion of onupdate

:param primary_key: If ``True``, marks this column as a primary key
    column. Multiple columns can have this flag set to specify
    composite primary keys. As an alternative, the primary key of a
    :class:`_schema.Table` can be specified via an explicit
    :class:`.PrimaryKeyConstraint` object.

:param server_default: A :class:`.FetchedValue` instance, str, Unicode
    or :func:`~sqlalchemy.sql.expression.text` construct representing
    the DDL DEFAULT value for the column.

    String types will be emitted as-is, surrounded by single quotes::

        Column("x", Text, server_default="val")

    will render:

    .. sourcecode:: sql

        x TEXT DEFAULT 'val'

    A :func:`~sqlalchemy.sql.expression.text` expression will be
    rendered as-is, without quotes::

        Column("y", DateTime, server_default=text("NOW()"))

    will render:

    .. sourcecode:: sql

        y DATETIME DEFAULT NOW()

    Strings and text() will be converted into a
    :class:`.DefaultClause` object upon initialization.

    This parameter can also accept complex combinations of contextually
    valid SQLAlchemy expressions or constructs::

        from sqlalchemy import create_engine
        from sqlalchemy import Table, Column, MetaData, ARRAY, Text
        from sqlalchemy.dialects.postgresql import array

        engine = create_engine(
            "postgresql+psycopg2://scott:tiger@localhost/mydatabase"
        )
        metadata_obj = MetaData()
        tbl = Table(
            "foo",
            metadata_obj,
            Column(
                "bar", ARRAY(Text), server_default=array(["biz", "bang", "bash"])
            ),
        )
        metadata_obj.create_all(engine)

    The above results in a table created with the following SQL:

    .. sourcecode:: sql

        CREATE TABLE foo (
            bar TEXT[] DEFAULT ARRAY['biz', 'bang', 'bash']
        )

    Use :class:`.FetchedValue` to indicate that an already-existing
    column will generate a default value on the database side which
    will be available to SQLAlchemy for post-fetch after inserts. This
    construct does not specify any DDL and the implementation is left
    to the database, such as via a trigger.

    .. seealso::

        :ref:`server_defaults` - complete discussion of server side
        defaults

:param server_onupdate: A :class:`.FetchedValue` instance
    representing a database-side default generation function,
    such as a trigger. This
    indicates to SQLAlchemy that a newly generated value will be
    available after updates. This construct does not actually
    implement any kind of generation function within the database,
    which instead must be specified separately.


    .. warning:: This directive **does not** currently produce MySQL's
       "ON UPDATE CURRENT_TIMESTAMP()" clause.  See
       :ref:`mysql_timestamp_onupdate` for background on how to
       produce this clause.

    .. seealso::

        :ref:`triggered_columns`

:param quote: Force quoting of this column's name on or off,
     corresponding to ``True`` or ``False``. When left at its default
     of ``None``, the column identifier will be quoted according to
     whether the name is case sensitive (identifiers with at least one
     upper case character are treated as case sensitive), or if it's a
     reserved word. This flag is only needed to force quoting of a
     reserved word which is not known by the SQLAlchemy dialect.

:param unique: When ``True``, and the :paramref:`_schema.Column.index`
    parameter is left at its default value of ``False``,
    indicates that a :class:`_schema.UniqueConstraint`
    construct will be automatically generated for this
    :class:`_schema.Column`,
    which will result in a "UNIQUE CONSTRAINT" clause referring
    to this column being included
    in the ``CREATE TABLE`` statement emitted, when the DDL create
    operation for the :class:`_schema.Table` object is invoked.

    When this flag is ``True`` while the
    :paramref:`_schema.Column.index` parameter is simultaneously
    set to ``True``, the effect instead is that a
    :class:`_schema.Index` construct which includes the
    :paramref:`_schema.Index.unique` parameter set to ``True``
    is generated.  See the documentation for
    :paramref:`_schema.Column.index` for additional detail.

    Using this flag is equivalent to making use of the
    :class:`_schema.UniqueConstraint` construct explicitly at the
    level of the :class:`_schema.Table` construct itself::

        Table("some_table", metadata, Column("x", Integer), UniqueConstraint("x"))

    The :paramref:`_schema.UniqueConstraint.name` parameter
    of the unique constraint object is left at its default value
    of ``None``; in the absence of a :ref:`naming convention <constraint_naming_conventions>`
    for the enclosing :class:`_schema.MetaData`, the UNIQUE CONSTRAINT
    construct will be emitted as unnamed, which typically invokes
    a database-specific naming convention to take place.

    As this flag is intended only as a convenience for the common case
    of adding a single-column, default configured unique constraint to a table
    definition, explicit use of the :class:`_schema.UniqueConstraint` construct
    should be preferred for most use cases, including composite constraints
    that encompass more than one column, backend-specific index configuration options, and
    constraints that use a specific name.

    .. note:: the :attr:`_schema.Column.unique` attribute on
        :class:`_schema.Column`
        **does not indicate** if this column has a unique constraint or
        not, only if this flag was explicitly set here.  To view
        indexes and unique constraints that may involve this column,
        view the
        :attr:`_schema.Table.indexes` and/or
        :attr:`_schema.Table.constraints` collections or use
        :meth:`_reflection.Inspector.get_indexes` and/or
        :meth:`_reflection.Inspector.get_unique_constraints`

    .. seealso::

        :ref:`schema_unique_constraint`

        :ref:`constraint_naming_conventions`

        :paramref:`_schema.Column.index`

:param system: When ``True``, indicates this is a "system" column,
     that is a column which is automatically made available by the
     database, and should not be included in the columns list for a
     ``CREATE TABLE`` statement.

     For more elaborate scenarios where columns should be
     conditionally rendered differently on different backends,
     consider custom compilation rules for :class:`.CreateColumn`.

:param comment: Optional string that will render an SQL comment on
     table creation.

     .. versionadded:: 1.2 Added the
        :paramref:`_schema.Column.comment`
        parameter to :class:`_schema.Column`.

:param insert_sentinel: Marks this :class:`_schema.Column` as an
 :term:`insert sentinel` used for optimizing the performance of the
 :term:`insertmanyvalues` feature for tables that don't
 otherwise have qualifying primary key configurations.

 .. versionadded:: 2.0.10

 .. seealso::

    :func:`_schema.insert_sentinel` - all in one helper for declaring
    sentinel columns

    :ref:`engine_insertmanyvalues`

    :ref:`engine_insertmanyvalues_sentinel_columns`


r   Nz0May not pass name positionally and as a keyword.
_sqla_typez1May not pass type_ positionally and as a keyword.z9Explicit 'name' is required when sending 'quote' argumentT
for_updateFr]   )3listrp   r   r3   r   r   hasattrr,   r  r   rs   r   _insert_sentinelr  _user_defined_nullablerd   rF  r  r  r  r  r  r  r   r   r   computedrB  r  	_set_typetyper   NO_ARGColumnDefaultr   r   r  r  rX   _as_for_updateDefaultClauserE  r  r   r   _typing_SequencerU   r5   set_creation_orderr   r  )r   _Column__name_pos_Column__type_posrj   r  r  r   r  r  rs   r  r  r   rF  r  r   rE  r  r   r  r   r  r  r  r   dialect_kwargsl_argscoltypeudnresolved_defaultr  s                                 rg   r   Column.__init__  sA   F )DJ6&)S))#++J  zz!}"

1QiGw--$++K  

1"

1tU+D##K  	%/3t& /%:",44#c&&DM +ODM
 
1>5E $DM NN499%.-FMM)&#'.0IJJ#01A#B +DLMM*+DLh(ABB(dC$MMM(# DM%.,77!/!>!>u!En-!.~!>n-,&/<88"1"@"@"Fo."/## o..$/
;VDE%I,^,rf   rW   rr   r   r   r  r   zOptional[Computed]r  zOptional[Identity]rB  c                   U R                   R                  (       d  XR                   L d   eXl         [        U R                   [        5      (       a  U R                   R	                  U 5        U R                   R
                  R                  5        H+  n[        U[        5      (       d  M  UR	                  U 5        M-     g ro   )r  _isnullrp   r&   r   _variant_mappingvalues)r   r  impls      rg   r  Column._set_type  s    yy  EYY$666	dii!233II//5II..557D$ 122..t4 8rf   c                B    [         R                  " U R                  5      $ z1used by default.py -> _process_execute_defaults())r   _from_column_defaultr   r   s    rg   _default_description_tuple!Column._default_description_tuple  s     (<<T\\JJrf   c                B    [         R                  " U R                  5      $ r  )r   r  r  r   s    rg   _onupdate_description_tuple"Column._onupdate_description_tuple  s     (<<T]]KKrf   c                X    U R                   SL=(       a    U R                   R                  $ )zspecial attribute used by cache key gen, if true, we will
use a static cache key for the annotations dictionary, else we
will generate a new cache key for annotations each time.

Added for #8790

N)rr   	_is_tabler   s    rg   !_gen_static_annotations_cache_key(Column._gen_static_annotations_cache_key  s"     zz%>$***>*>>rf   c                &    U R                  U5        g ro   r1  r3  s     rg   r  Column._extra_kwargs  r5  rf   c                    U R                   c  gU R                  bM  U R                  R                  (       a&  U R                  R                  S-   U R                  -   $ U R                  $ U R                  $ )Nz	(no name)ri   )rj   rr   named_with_columnrj  r   s    rg   rk  Column.__str__  s^    99ZZ#zz++zz--3d6F6FFF'''###rf   c                    U R                    H9  nUR                  R                  R                  UR                  5      (       d  M9    g   g)zGReturn True if this Column references the given column via foreign
key.TF)r   rt  	proxy_setintersectionr   rt  fks      rg   
referencesColumn.references  s=     ##Byy""//0@0@AA $ rf   c                &    UR                  U 5        g ro   rz  )r   r  s     rg   append_foreign_keyColumn.append_foreign_key  s    
$$T*rf   c                   / nU R                   U R                  :w  a  UR                  S5        U R                  (       a  UR                  S5        U R                  (       d  UR                  S5        U R
                  (       a  UR                  S5        U R                  (       a  UR                  S5        U R                  (       a  UR                  S5        U R                  (       a  UR                  S5        SS	R                  [        U R                  5      /[        U R                  5      /-   U R                   Vs/ s H  o"c  M  [        U5      PM     sn-   U R                   Vs/ s H  n[        U5      PM     sn-   U R                  S L=(       a    S
U R                  R                  -  =(       d    S/-   U Vs/ s H  o3< S[        [!        X5      5      < 3PM     sn-   5      -  $ s  snf s  snf s  snf )Nrs   r   rF  r  r   rE  r   z
Column(%s)r`  z
table=<%s>z
table=Nonerb  )rs   rj   r  r   rF  r  r   rE  r   rc  rd  r  r   r   rr   rj  re  )r   kwargrf  rg  s       rg   r   Column.__repr__  s   88tyy LLLL'}}LL$==LL$<<LL#LL)*<<LL#dii$))_DII  $ 1 1C 11wtAw 1CD !% 0 01 01tAw 012 JJd* >$tzz'='==$#		
 ?DDe!T'$"234eDE
 
 	
 D1 Es    G0
G0+G5$G:c          	     ^	  ^
 Um
[        T
[        5      (       d   eU R                  (       d  [        R                  " S5      eU R                  5         U R                  c  U R                  U l        [        U SS 5      nUb6  UT
La1  [        R                  " SU R                   SUR                   S35      eS nS nSnU R                  T
R                  ;   a9  T
R                  U R                     nU R                  U R                  :X  a  SnO&SnO#U R                  U;   a  X R                     nU1nSnUb  XpLa  U(       dF  [        R                  " S	U S
US:X  a  U R                  OU R                   ST
R                   S35      eUR                   H_  n	T
R                  R                  U	5        U	R                  T
R                  ;   d  M:  T
R                  R                  U	R                  5        Ma     U(       a[  UbX  U R                  U R                  :X  a>  [        R                   " SUR                   SU R                   SUR                   S35        T
R                  R#                  XS9  XU R                  '   T
U l        U R&                  (       a=  U R$                  R(                  b  [        R                  " S5      eX R$                  l        U R*                  (       a  T
R*                  R-                  U 5        OKU R                  T
R*                  ;   a1  [        R                  " SU R                   ST
R.                   S35      eU R0                  (       an  [        U R0                  [2        5      (       a  [        R                  " S5      eT
R5                  [7        S U R                  [9        U R:                  5      SS95        OiU R:                  (       aX  [        U R:                  [2        5      (       a  [        R                  " S5      eT
R5                  [=        U R                  SS95        U R?                  U
4S j5        U R@                  (       aU  [        U RB                  [D        5      (       d  [        U RF                  [D        5      (       a  [        R                  " S5      eg g )NzfColumn must be constructed with a non-blank name or assign a non-blank .name before adding to a Table.rr   zColumn object 'z' already assigned to Table 'r,   rj   rs   zA column with z 'z' is already present in table ''.z Column with user-specified key "z-" is being replaced with plain named column "z", key "zs" is being removed.  If this is a reflection operation, specify autoload_replace=False to prevent this replacement.)extra_removez2a Table may have only one explicit sentinel columnz'Trying to redefine primary-key column 'z(' as a non-primary-key column on table 'zThe 'index' keyword argument on Column is boolean only. To create indexes with a specific name, create an explicit Index object external to the Table.T)r  r  zThe 'unique' keyword argument on Column is boolean only. To create unique constraints or indexes with a specific name, append an explicit UniqueConstraint to the Table's list of elements, or create an explicit Index object external to the Table.)r  c                &   > U R                  T5      $ ro   )_set_remote_table)r  rr   s    rg   r  $Column._set_parent.<locals>.<lambda>|	  s    r/C/CE/Jrf   z4An column cannot specify both Identity and Sequence.)$rp   rW   rj   r3   r   _reset_memoizationsrs   re  rj  r   rs  r   r-  r&  r   r5   r  ry   rr   r  r   r   _replacer
  r  r   r{  r  r   r  UniqueConstraint_setup_on_memoized_fksrB  r   r   r  )r   r  r  r  rv   existingr  existing_colconflicts_onr  rr   s             @rg   r  Column._set_parent		  s    %''''yy##E 
 	  "88yyDH4$/HE$9##!$(( ,&&.&:&:%;1> 
 88u~~% >>$((3Lxx499$%$YY)#$YY/L(>L!L#')22( 7(4(=DHH49988=

|2	G  '33B&&--b1}}(9(99 ))00? 4 L4TYY9NII2<3C3C2D E''+yyk 2$(() *,, 	t?#$))
  zz**6''H  +/JJ'&&t,XX***##9$(( D449NN3C1F 
 ::$**c**''C 
 ##$((4+<4 [[$++s++'':  ## = 	##$JK==t||X..$--22##F  3 rf   c                z   U R                   R                  U R                  4S4U R                   R                  U R                  4S4/nU Hm  u  p4X0R                   R                  R                  ;   d  M*  U R                   R                  R                  U    H  nUR
                  UL d  M  U" U5        M     Mo     g )NFT)rr   rs   rj   r   	_fk_memoslink_to_name)r   r  fk_keysfk_keyr  r  s         rg   r  Column._setup_on_memoized_fks	  s    jjnndhh'/jjnndii($/
 %, F,,666**--77?B,62 @ %,rf   c                t    U R                   b  U" X R                   5        g [        R                  " U SU5        g )Nr   )rr   r2   r  )r   r  s     rg   _on_table_attachColumn._on_table_attach	  s)    ::!tZZ LL4b9rf   r   z]The :meth:`_schema.Column.copy` method is deprecated and will be removed in a future release.c                &    U R                   " S0 UD6$ Nr]   r  r   rv   s     rg   r   Column.copy	       zzBrf   c           	        U R                    Vs/ s H'  o"R                  (       a  M  UR                  " S0 UD6PM)     snU R                   Vs/ s H'  o"R                  (       a  M  UR                  " S0 UD6PM)     sn-   n0 nU R
                   H@  nU R
                  U   R                  nUR                  5        H  u  nnUXES-   U-   '   M     MB     U R                  n	U R                  n
[        U	[        [        45      (       a$  UR                  U	R                  " S0 UD65        S=pU R                  n[        U[        5      (       a  UR                   " S0 UD6nU R"                  " U0 SU R$                  _SU_SU R&                  _SU R(                  _SU R*                  _SU R,                  _S	U R.                  _S
U R0                  _SU R2                  _SU	_SU R4                  _SU
_SU R6                  _SU R8                  _SU R:                  _SU R<                  _UD6nU R>                  Ul        U R@                  Ul         U RC                  U5      $ s  snf s  snf )zuCreate a copy of this ``Column``, uninitialized.

This is used in :meth:`_schema.Table.to_metadata` and by the ORM.

_Nrj   r  rs   r   r  r  r  r  r   rE  r  r  r  r   r  r  r]   )"r   r  r  r   r&  dialect_options_non_defaultsitemsrE  r  rp   ComputedIdentityr  r  r&   r   _constructorrj   rs   r   r  r  r  r  r   r  r  r   r  r  rF  r  r   )r   rv   rt   r   column_kwargsdialect_namer.  dialect_option_keydialect_option_valuerE  r  r  s               rg   r  Column._copy	  sd    $(#3#3"
#3a==MAGGMbM#3"
$($5$5J$5q\\]QWW]r]$5J"K
  00L"22<@NNO !&&("$ ) S03EEF ) 1 ,,..nx&:;; KK,,2r23/33N		e.//JJ$$E $ %


 
 ((	

 ;;
 ;;
 **
 ,,
 LL
 *
 ]]
 ,
 
 LL
  #'"<"<!
" !11'
0 ]]
#'#>#> %%a((y"
Js   III%Ic                   U R                   (       a  SUl         U R                  S:w  a!  UR                  S:X  a  U R                  Ul        U R                  (       a  U R                  Ul        U R                  (       a%  UR                  R	                  U R                  5        U R
                  nUR                  (       d  UR
                  R                  (       a  [        U[        5      (       a  UR                  5       nX!l        [        U[        5      (       a  UR                  U5        UR                  R                  5        H+  n[        U[        5      (       d  M  UR                  U5        M-     U R                  [        La5  UR                  [        L a"  U R                  Ul        U R                  Ul        U R                   b8  UR                   c+  U R                   R#                  5       nUR%                  U5        U R&                  (       aV  UR&                  cI  U R&                  n[        U[(        5      (       a"  UR#                  5       nUR%                  U5        OXQl        U R*                  (       a:  UR*                  c-  U R*                  nUR#                  5       nUR%                  U5        U R,                  (       a8  UR,                  c+  U R,                  R#                  5       nUR%                  U5        U R.                  S;   a  UR.                  c  U R.                  Ul        U R0                  S;   a  UR0                  c  U R0                  Ul        U R2                  (       a  UR2                  c  U R2                  Ul        U R4                  (       a  UR4                  c  U R4                  Ul        U R6                   H7  nUR8                  (       a  M  UR#                  5       n	U	R%                  U5        M9     U R:                   H7  n
U
R<                  (       a  M  U
R#                  5       nUR%                  U5        M9     g)z~merge the elements of another column into this one.

this is used by ORM pep-593 merge and will likely need a lot
of fixes.


Tr  N)TF)r   r  r  r   updater  r  rp   r&   r   r   r  r  r  rd   rF  r   r  r  rE  rX   r  r  r  r  r  r   r   r  r   r&  )r   otherr  r  new_defaultnew_server_defaultnew_server_onupdatenew_onupdater  	new_constr  new_fks               rg   _mergeColumn._merge	  s     $E'E,?,?6,I"&"4"4E;;;;EL99JJdii(		}}!3!3%!233

J%!233//6..557d$5662259 8
 ''/??,,0@@!]]EN+/+F+FE(<<#(=,,,,.K##E*5#7#7#?!%!4!4,l;;%7%=%=%?""..u5'9$E$9$9$A"&"6"6"5";";"=++E2==U^^3==..0L$$U+::&5;;+>**EK;;-'ELL,@;;EL88		)EI<<EMM1 LLEM%%E$$$!KKM	%%e, &
 ##B===""5) $rf   c           
     4   U R                    V	s/ s H  n	XR                  SS94PM     sn	 V
Vs/ s H+  u  p[        Ub  UOU
R                  USL U
R                  S9PM-     n	n
nUc#  U R
                  c  [        R                  " S5      e U R                  " U(       a8  [        R                  " [        R                  U(       a  UOU R
                  5      OU=(       d    U R
                  U R                  /U	Q7U(       a  UOU(       a  UOU R                  U R                  U R                   U(       a  [#        U5      OU /S.6nXl        UR*                  Ul        UR,                  b4  UR,                  R.                  R1                  UR                  5      Ul        U R                  (       a  UR3                  U5        U	(       a  UR5                  U	5        UR                  U4$ s  sn	f s  snn
f ! [$         a  n[%        SU R&                  -  5      UeSnAff = f)zCreate a *proxy* for this column.

This is a copy of this ``Column`` referenced by a different parent
(such as an alias or select statement).  The column should
be used only in select scenarios, as its full DDL/default
information is not transferred.

FraiseerrN)_unresolvable_constraintz^Cannot initialize a sub-selectable with this Column object until its 'name' has been assigned.)rs   r   rF  r  zCould not create a copy of this %r object.  Ensure the class includes a _constructor() attribute or method which accepts the standard Column constructor arguments, or references the Column class itself.)r   _resolve_column
ForeignKey_colspecr&  rj   r3   r   r3  r   expectr   TruncatedLabelRoler  rs   r   rF  r  r   r  rr   _propagate_attrs_is_clone_ofr   r   rn  r:  )r   
selectabler   r   rj   rs   name_is_truncatablecompound_select_colsrv   r  fr  rt   r   s                 rg   _make_proxyColumn._make_proxy:
  s   < +++B '''78+

 AJJ!TkLL
 	 

 <DII-))! 
	!!
 + $$00$$DII +$))		$ % CDDdhh ,, , -.!A: '88"".'44<<@@GANOOA#uuaxk

N  	6 9=	G 	s#   G$2G)B9G/ /
H9HH)r  r  r  r  r  r   r  r   r   r  r   rB  r  r   rs   rF  r  r   rE  r  r  rr   r  r  NN)2r  z@Optional[Union[str, _TypeEngineArgument[_T], SchemaEventTarget]]r  z;Optional[Union[_TypeEngineArgument[_T], SchemaEventTarget]]r   r&   rj   r   r  !Optional[_TypeEngineArgument[_T]]r  r=   r   r   r  r   r  r   rs   r   r  r  r  r  r   Optional[_InfoType]rF  z<Optional[Union[bool, Literal[SchemaConst.NULL_UNSPECIFIED]]]r  r   r   r   rE  z Optional[_ServerDefaultArgument]r  z!Optional[_ServerOnUpdateArgument]r   r  r  r   r   r   r  r   r  r   r  r   r  r   )r  zTypeEngine[Any]r{   r   )r{   r   r{   r   r  r   )rt  Column[Any]r{   r   r  rJ  r{   r   )
r  r&   r  zDict[str, Column[Any]]r  r   rv   r   r{   r   )r  Callable[..., Any]r{   r   )rv   r   r{   rZ  )r;  rZ  r{   r   )NNFN)rP  rQ   r   rC   r   zSet[KeyedColumnElement[Any]]rj   r   rs   r   rQ  r   rR  z.Optional[_typing_Sequence[ColumnElement[Any]]]rv   r   r{   zTuple[str, ColumnClause[_T]])$r^   r_   r`   ra   r   r   inherit_cacher   r   r  rZ   rd   r   r  r6   memoized_attributer  r  r5   r   r  r  rk  r  r	  r   r  r  r$  r  r   r  rB  rT  re   r  r  s   @rg   rq   rq     sD   2NM	H**  \
- #37,2!'(.!! $!%$( (("&!;?=A $!% %&+"&?\
-
\
-

\
- !\
- \
- 1\
- *\
- \
- &\
- \
- \
-  !\
-" #\
-$ "%\
-&
'\
-,  -\
-. /\
-0 91\
-2 ;3\
-4 5\
-6 7\
-8 9\
-: ;\
-<  $=\
->  ?\
-@ A\
- \
-| L  !!
   !   5 ##K $K
 ##L $L 
? ?.	$+
>{!{ *	{
 !{ { 
{z	: 
__	3
 
 D)LS*t #!$) QQ Q 3	Q
 Q Q "Q
Q Q 
&Q Qrf   rq   T)r   omit_from_statementsc               \    [        U Uc  [        R                  OUUb  UO	[        5       USS9$ )a@  Provides a surrogate :class:`_schema.Column` that will act as a
dedicated insert :term:`sentinel` column, allowing efficient bulk
inserts with deterministic RETURNING sorting for tables that
don't otherwise have qualifying primary key configurations.

Adding this column to a :class:`.Table` object requires that a
corresponding database table actually has this column present, so if adding
it to an existing model, existing database tables would need to be migrated
(e.g. using ALTER TABLE or similar) to include this column.

For background on how this object is used, see the section
:ref:`engine_insertmanyvalues_sentinel_columns` as part of the
section :ref:`engine_insertmanyvalues`.

The :class:`_schema.Column` returned will be a nullable integer column by
default and make use of a sentinel-specific default generator used only in
"insertmanyvalues" operations.

.. seealso::

    :func:`_orm.orm_insert_sentinel`

    :paramref:`_schema.Column.insert_sentinel`

    :ref:`engine_insertmanyvalues`

    :ref:`engine_insertmanyvalues_sentinel_columns`


.. versionadded:: 2.0.10

T)rj   r  r   r  r  )rq   r   INTEGERTYPE_InsertSentinelColumnDefault)rj   r  r   r_  s       rg   r  r  
  s8    N &+mh""*G0L0N2 rf   c                  N   \ rS rSr% SrSrS\S'   S\S'               S%                           S&S	 jjrS'S
 jr\	R                  " SS5      SS.S(S jj5       rSS.S(S jjr   S)       S*S jjr\S+S j5       rS,S jr\" \5      rS-S jrS.S jr\	R(                  S/S j5       rS0S jr        S1S jrS2S jr\	R2                  S3S j5       r\SS.   S4S jj5       r\SS.   S5S jj5       rSS.   S5S jjrS6S  jrS7S! jrS8S" jrS9S# jr S$r!g):rJ  i
  a  Defines a dependency between two columns.

``ForeignKey`` is specified as an argument to a :class:`_schema.Column`
object,
e.g.::

    t = Table(
        "remote_table",
        metadata,
        Column("remote_id", ForeignKey("main_table.id")),
    )

Note that ``ForeignKey`` is only a marker object that defines
a dependency between two columns.   The actual constraint
is in all cases represented by the :class:`_schema.ForeignKeyConstraint`
object.   This object will be generated automatically when
a ``ForeignKey`` is associated with a :class:`_schema.Column` which
in turn is associated with a :class:`_schema.Table`.   Conversely,
when :class:`_schema.ForeignKeyConstraint` is applied to a
:class:`_schema.Table`,
``ForeignKey`` markers are automatically generated to be
present on each associated :class:`_schema.Column`, which are also
associated with the constraint object.

Note that you cannot define a "composite" foreign key constraint,
that is a constraint between a grouping of multiple parent/child
columns, using ``ForeignKey`` objects.   To define this grouping,
the :class:`_schema.ForeignKeyConstraint` object must be used, and applied
to the :class:`_schema.Table`.   The associated ``ForeignKey`` objects
are created automatically.

The ``ForeignKey`` objects associated with an individual
:class:`_schema.Column`
object are available in the `foreign_keys` collection
of that column.

Further examples of foreign key configuration are in
:ref:`metadata_foreignkeys`.

foreign_keyrZ  r  r   _table_columnNc                B   [         R                  " [        R                  U5      U l        Xl        [        U R                  [        5      (       a  SU l        OrU R                  U l        [        U R                  R                  [        S5      [        45      (       d-  [        R                  " SU R                  R                  -  5      eX l        SU l        X0l        X@l        XPl        X`l        Xpl        Xl        Xl        Xl        Xl        U(       a  Xl        Xl        g)a
  
Construct a column-level FOREIGN KEY.

The :class:`_schema.ForeignKey` object when constructed generates a
:class:`_schema.ForeignKeyConstraint`
which is associated with the parent
:class:`_schema.Table` object's collection of constraints.

:param column: A single target column for the key relationship. A
    :class:`_schema.Column` object or a column name as a string:
    ``tablename.columnkey`` or ``schema.tablename.columnkey``.
    ``columnkey`` is the ``key`` which has been assigned to the column
    (defaults to the column name itself), unless ``link_to_name`` is
    ``True`` in which case the rendered name of the column is used.

:param name: Optional string. An in-database name for the key if
    `constraint` is not provided.

:param onupdate: Optional string. If set, emit ON UPDATE <value> when
    issuing DDL for this constraint. Typical values include CASCADE,
    DELETE and RESTRICT.

    .. seealso::

        :ref:`on_update_on_delete`

:param ondelete: Optional string. If set, emit ON DELETE <value> when
    issuing DDL for this constraint. Typical values include CASCADE,
    SET NULL and RESTRICT.  Some dialects may allow for additional
    syntaxes.

    .. seealso::

        :ref:`on_update_on_delete`

:param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
    DEFERRABLE when issuing DDL for this constraint.

:param initially: Optional string. If set, emit INITIALLY <value> when
    issuing DDL for this constraint.

:param link_to_name: if True, the string name given in ``column`` is
    the rendered name of the referenced column, not its locally
    assigned ``key``.

:param use_alter: passed to the underlying
    :class:`_schema.ForeignKeyConstraint`
    to indicate the constraint should
    be generated/dropped externally from the CREATE TABLE/ DROP TABLE
    statement.  See :paramref:`_schema.ForeignKeyConstraint.use_alter`
    for further description.

    .. seealso::

        :paramref:`_schema.ForeignKeyConstraint.use_alter`

        :ref:`use_alter`

:param match: Optional string. If set, emit MATCH <value> when issuing
    DDL for this constraint. Typical values include SIMPLE, PARTIAL
    and FULL.

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param comment: Optional string that will render an SQL comment on
  foreign key constraint creation.

    .. versionadded:: 2.0

:param \**dialect_kw:  Additional keyword arguments are dialect
    specific, and passed in the form ``<dialectname>_<argname>``.  The
    arguments are ultimately handled by a corresponding
    :class:`_schema.ForeignKeyConstraint`.
    See the documentation regarding
    an individual dialect at :ref:`dialect_toplevel` for detail on
    documented arguments.

Nz8ForeignKey received Column not bound to a Table, got: %r)r   rL  r   DDLReferredColumnRolerK  rG  rp   r   re  rr   r  r.   r3   r   r&  r  	use_alterrj   r  ondelete
deferrable	initiallyr  matchr   r   _unvalidated_dialect_kw)r   rt  rH  rh  rj   r  ri  rj  rk  r  rl  r   r   rG  
dialect_kws                  rg   r   ForeignKey.__init__
  s    B "(()D)DfM*dmmS))!%D!%D""((4:{*C  ''*,0,>,>,D,DE  & "	  $"(
I'1$rf   c                (    SU R                  5       -  $ )NzForeignKey(%r))_get_colspecr   s    rg   r   ForeignKey.__repr__x  s    $"3"3"555rf   r   zaThe :meth:`_schema.ForeignKey.copy` method is deprecated and will be removed in a future release.ra  c               *    U R                   " SSU0UD6$ )Nrk   r]   r(  )r   rk   rv   s      rg   r   ForeignKey.copy{  s     zz..2..rf   c               2   [        U R                  US94U R                  U R                  U R                  U R
                  U R                  U R                  U R                  U R                  U R                  S.	U R                  D6nU R                  U5      $ )a  Produce a copy of this :class:`_schema.ForeignKey` object.

The new :class:`_schema.ForeignKey` will not be bound
to any :class:`_schema.Column`.

This method is usually used by the internal
copy procedures of :class:`_schema.Column`, :class:`_schema.Table`,
and :class:`_schema.MetaData`.

:param schema: The returned :class:`_schema.ForeignKey` will
  reference the original table and column name, qualified
  by the given string schema name.

ra  )	rh  rj   r  ri  rj  rk  r  rl  r   )rJ  rq  rh  rj   r  ri  rj  rk  r  rl  r   rm  r   )r   rk   rv   r  s       rg   r  ForeignKey._copy  s     V,
nn]]]]nn****LL
 **
 %%b))rf   c                   US[         4;  a3  U R                  u  pEnUb  UnU[        L a	  U< SU< 3$ U< SU< SU< 3$ U(       a,  U R                  u  pnU(       a  U< SU< SU< 3$ U< SU< 3$ U R                  b  U R                  R                  cA  U(       a$  [
        R                  " SU R                  < 35      eU R                  R                  $ U R                  R                  R                  < SU R                  R                  < 3$ [        U R                  [        5      (       d   eU R                  $ )zReturn a string based 'column specification' for this
:class:`_schema.ForeignKey`.

This is usually the equivalent of the string-based "tablename.colname"
argument first passed to the object's constructor.

Nri   zDCan't copy ForeignKey object which refers to non-table bound Column )rb   _column_tokensrc   re  rr   r3   r   rs   r
  rp   rK  r   )r   rk   
table_name_is_copy_schematnamecolnames          rg   rq  ForeignKey._get_colspec  s*   $ $..&*&9&9#GG%"%"'11%+UG<<%)%8%8"F7%+ZAA",g66+!!''/112262D2D1GI 
  --111""((11""&& 
 dmmS1111== rf   c                     U R                   S   $ Nr   )rx  r   s    rg   r  ForeignKey._referred_schema  s    ""1%%rf   c                    U R                   b8  U R                   R                  c  g U R                   R                  R                  $ U R                  u  pn[	        X!5      $ ro   )re  rr   rs   rx  rl   )r   rk   r|  r}  s       rg   
_table_keyForeignKey._table_key  sV    )!!''/))//333%)%8%8"F7!%00rf   c                <    UR                  U R                  5      SL$ )zbReturn True if the given :class:`_schema.Table`
is referenced by this
:class:`_schema.ForeignKey`.N)corresponding_columnrt  ro  s     rg   r  ForeignKey.references  s    
 ))$++6dBBrf   c                L    UR                   R                  U R                  5      $ )zReturn the :class:`_schema.Column` in the given
:class:`_schema.Table` (or any :class:`.FromClause`)
referenced by this :class:`_schema.ForeignKey`.

Returns None if this :class:`_schema.ForeignKey`
does not reference the given
:class:`_schema.Table`.

)r   r  rt  ro  s     rg   get_referentForeignKey.get_referent  s     }}11$++>>rf   c                ^   U R                  5       R                  S5      nUc#  [        R                  " SU R                   35      e[        U5      S:X  a  UR                  5       nSnO UR                  5       nUR                  5       n[        U5      S:  a  SR                  U5      nOSnXBU4$ )z7parse a string-based _colspec into its component parts.ri   Nz*Invalid foreign key column specification: r   r   )rq  splitr3   r   rK  lenr   rc  )r   mr|  r}  rk   s        rg   rx  ForeignKey._column_tokens  s     %%c*9##<T]]OL  q6Q;EEGEGeegGEEGE q6A:XXa[FFg%%rf   c                V   U R                   c  [        R                  " S5      eU R                   R                  c  [        R                  " S5      eU R                   R                  nU R                  (       a  U R
                  u  p#n[        X25      nXU4$ U R                   R                   H+  n[        U[        5      (       d  M  UR                  UL d   e  O    eU R
                  u  p#nUc-  UR                  R                  b  UR                  R                  n[        X25      nXU4$ )NzLthis ForeignKey object does not yet have a parent Column associated with it.zCthis ForeignKey's parent column is not yet associated with a Table.)r  r3   r   rr   rG  rx  rl   base_columnsrp   rq   r   rk   )r   parenttablerk   r|  r}  tablekeyrt   s          rg   _resolve_col_tokensForeignKey._resolve_col_tokens  s   ;;))4 
 [[&))  
 kk''%)%8%8"F7%e4H'11 ))A!V$$ww+--- *
 5 "&!4!4w>k2299E ))00F!%0g--rf   c                   S nUc:  U R                   nUc   eUR                  nUR                  R                  US 5      nOYU R                  (       a*  UnUR                   H  nUR
                  U:X  d  M  UnM     OUnUR                  R                  US 5      nUcM  [        R                  " SU R                   SUR
                   SUR
                   SU S3	UR
                  U5      eU$ )Nz3Could not initialize target column for ForeignKey 'z' on table 'z
': table 'z' has no column named 'r,  )	r  rs   rt   r   r  rj   r3   NoReferencedColumnErrorrK  )r   r  rr   r}  _columnr  rs   rt   s           rg   _link_to_col_by_colstring$ForeignKey._link_to_col_by_colstring?  s     ? [[F%%%**Cggkk#t,GCWW66W$G  Cggkk'40G?--##'==/ 2(--. /**%<SED 

  rf   c                   ^ U R                   c   eU R                   R                  R                  (       a  TR                  U R                   l        SU4S jjnU R                   R                  U5        TU l        g )Nc                   > U R                   R                  R                  (       a  TR                  U R                   l        g g ro   )r  r  r  )r  rt  s    rg   set_type/ForeignKey._set_target_column.<locals>.set_typem  s(    yy~~%%!'		 &rf   r[  )r  r  r  r  rt  )r   rt  r  s    ` rg   _set_target_columnForeignKey._set_target_columnc  sX    {{&&& ;;##%{{DKK
	- 	**84rf   c                "    U R                  5       $ )zReturn the target :class:`_schema.Column` referenced by this
:class:`_schema.ForeignKey`.

If no target column has been established, an exception
is raised.

)rI  r   s    rg   rt  ForeignKey.columnu  s     ##%%rf   .rE  c                   g ro   r]   r   rF  s     rg   rI  ForeignKey._resolve_column  s     rf   c                   g ro   r]   r  s     rg   rI  r         !$rf   Tc          	     d   [        U R                  [        5      (       a  U R                  5       u  p#nU R                  (       d  X2R
                  ;  a3  U(       d  g [        R                  " SU R                   SU SU S3U5      eUR                  UR
                  ;  a"  U(       d  g [        R                  " SU S35      eUR
                  R                  U   nU R                  X%U5      $ [        U R                  S5      (       a  U R                  R                  5       nU$ U R                  nU$ )Nz$Foreign key associated with column 'z' could not find table 'z9' with which to generate a foreign key to target column 'r,  zTable z1 is no longer associated with its parent MetaData__clause_element__)rp   rK  r   r  rG  r   r3   NoReferencedTableErrorr  rs   r   r   r  r  r  )r   rF  r  r  r}  rr   r  s          rg   rI  r    s+   
 dmmS))-1-E-E-G*K7!!X5I5I%I00} %&Z (55<IQ@   (<(<<--[M *& & 
 $,,33H=55  T]]$899mm668GNmmGNrf   c                6   [        U[        5      (       d   eU R                  b%  U R                  ULa  [        R                  " S5      eXl        U R                  R
                  R                  U 5        U R                  R                  U R                  5        g )Nz&This ForeignKey already has a parent !)	rp   rq   r  r3   r   r   rn  r$  
_set_tabler   r  rv   s      rg   r  ForeignKey._set_parent  su    &&))));;"t{{&'@))8    $$T*$$T__5rf   c                    U R                  5       u  p#nU R                  X!U5      nU R                  U5        U R                  c   eU R                  R	                  U5        g ro   )r  r  r  r&  _validate_dest_table)r   rr   r  r-  r}  r  s         rg   r  ForeignKey._set_remote_table  sW    "&":":"<00WM(***,,U3rf   c                    U R                  5       u  p#nX44nXR                  U   ;   a  UR                  U   R                  U 5        g g ro   )r  r  r-  )r   r   r  	table_keyr}  r!  s         rg   _remove_from_metadata ForeignKey._remove_from_metadata  sL    *.*B*B*D'%%%f--v&--d3 .rf   c                <   [        U[        5      (       d   eU R                  c  [        / / 4U R                  U R
                  U R                  U R                  U R                  U R                  U R                  U R                  S.U R                  D6U l        U R                  R                  X5        U R                  R                  U5        UR                  R!                  U 5        [        U R"                  [$        5      (       a  U R'                  5       u  p4nXE4nXCR(                  R*                  ;   a=  UR(                  R*                  U   n U R-                  X2U5      nU R/                  U5        UR(                  R4                  U   R7                  U 5        g [9        U R"                  S5      (       a,  U R"                  R;                  5       nU R/                  U5        g U R"                  nU R/                  U5        g ! [0        R2                   a     Nf = f)N)rh  rj   r  ri  rj  rk  rl  r   r  )rp   rW   r&  r  rh  rj   r  ri  rj  rk  rl  r   rm  _append_elementr   r   rn  rK  r   r  r   r   r  r  r3   r  r  r  r  r  )r   rt  rr   r  r  r}  r!  r  s           rg   r  ForeignKey._set_table  s    %''''??"2 ..YY??..jj ..DO OO++F9OO55e<t$ dmmS)).2.F.F.H+KG)F00777#,,33I>5"<<#GG ++G4  **6299$?T]]$899mm668G##G,mmG##G, 22 s   H HH)rK  re  rG  rm  rt  r   r&  rj  r   rk  r  rl  rj   ri  r  r  rh  )NFNNNNNFNNNF)rt  r?   rH  zOptional[ForeignKeyConstraint]rh  r   rj   _ConstraintNameArgumentr  r   ri  r   rj  r  rk  r   r  r   rl  r   r   rX  r   r   rG  r   rn  r   r   )rk   r   rv   r   r{   rJ  )NNF)rk   zROptional[Union[str, Literal[SchemaConst.RETAIN_SCHEMA, SchemaConst.BLANK_SCHEMA]]]ry  r   rz  r   r{   r   r{   r   )r{   r   )rr   rW   r{   r   )rr   rQ   r{   r   )r{   z(Tuple[Optional[str], str, Optional[str]])r{   z Tuple[Table, str, Optional[str]])r  rW   rr   rW   r}  r   r{   rZ  )rt  rZ  r{   r   )r{   rZ  )rF  zLiteral[True]r{   rZ  )rF  r   r{   r   r  r  r   r~  r{   r   rt  rZ  rr   rW   r{   r   )"r^   r_   r`   ra   r   r   r   r   r   r5   r  r   r  rq  r  r  r  target_fullnamer  r  r   rx  r  r  r  r  rt  r   rI  r  r  r  r  re   r]   rf   rg   rJ  rJ  
  se   'R #N((
 7;(,"&"&%)#'"#$(!%#F2"F2 4F2 	F2
 &F2  F2  F2 #F2 !F2 F2 F2 "F2 F2 F2 F2P6 
__	3
 /3 /
/ 04 *J $(/!
/! "/! /! 
/!b & &1 |,OC? 
& &<&.P" ")."9F"	"H$ 
	& 	& +.(	  "%$$	$ $
 #'$$	$L	644,-rf   rJ  c                    g ro   r]   objs    rg   rJ  rJ    s    !rf   c                    g ro   r]   r  s    rg   default_is_clause_elementr         03rf   c                    g ro   r]   r  s    rg   default_is_scalarr    r  rf   is_sequenceis_clause_element	is_scalarc                      \ rS rSr% SrSrSrSrSrSr	Sr
SrSrSrSrS\S'   SSS jjrSS	 jrSS
 jr        SS jr        SS jrSrg)DefaultGeneratori  zBase class for column *default* values.

This object is only present on column.default or column.onupdate.
It's not valid as a server default.

default_generatorTFr   rt  c                    Xl         g ro   r  r   r  s     rg   r   DefaultGenerator.__init__%      $rf   c                    [         (       a  [        U[        5      (       d   eXl        U R                  (       a  X R                  l        g X R                  l        g ro   )r   rp   rq   rt  r  r  r   r  s      rg   r  DefaultGenerator._set_parent(  s:    =ff----??#'KK "&KKrf   c                    [        5       ero   NotImplementedErrorr   s    rg   r  DefaultGenerator._copy1      !##rf   c                T    [         R                  " SS5        U R                  XU5      $ )NzoUsing the .execute() method to invoke a DefaultGenerator object is deprecated; please use the .scalar() method.z2.0)r5   warn_deprecated_execute_on_scalarr   
connectiondistilled_paramsexecution_optionss       rg   _execute_on_connection'DefaultGenerator._execute_on_connection4  s7     	$ 		
 &&*;
 	
rf   c                &    UR                  XU5      $ ro   )_execute_defaultr  s       rg   r  #DefaultGenerator._execute_on_scalarD  s     **$5
 	
rf   rt  r  Nr  r  r   r{   r   r  )r{   r  )r  rK   r  rM   r  rN   r{   r   )r^   r_   r`   ra   r   r   _is_default_generatorr  is_identityis_server_defaultr  rL  r  has_argrH  r   r   r  r  r  r  re   r]   rf   rg   r  r    s     )N KKKIGK!!%'$

 2
 7	

 

 

 2
 7	

 

rf   r  c                      \ rS rSr% SrS\S'   \ S     SS jj5       r\ S     SS jj5       r\SSS jj5       r S     SS	 jjrSS
 jrSr	g)r  iO  a  A plain default value on a column.

This could correspond to a constant, a callable function,
or a SQL clause.

:class:`.ColumnDefault` is generated automatically
whenever the ``default``, ``onupdate`` arguments of
:class:`_schema.Column` are used.  A :class:`.ColumnDefault`
can be passed positionally as well.

For example, the following::

    Column("foo", Integer, default=50)

Is equivalent to::

    Column("foo", Integer, ColumnDefault(50))

r   argc                    g ro   r]   r   r  r  s      rg   r   ColumnDefault.__new__f  r  rf   c                    g ro   r]   r  s      rg   r   r  k  s     &)rf   c                    g ro   r]   r  s      rg   r   r  s  s    LOrf   Nc                    [        U[        5      (       a  [        R                  " S5      e[	        U5      (       a  [
        n O%[        U[        5      (       a  [        n O	Ub  [        n [        R                  U 5      $ )a  Construct a new :class:`.ColumnDefault`.


:param arg: argument representing the default value.
 May be one of the following:

 * a plain non-callable Python value, such as a
   string, integer, boolean, or other simple type.
   The default value will be used as is each time.
 * a SQL expression, that is one which derives from
   :class:`_expression.ColumnElement`.  The SQL expression will
   be rendered into the INSERT or UPDATE statement,
   or in the case of a primary key column when
   RETURNING is not used may be
   pre-executed before an INSERT within a SELECT.
 * A Python callable.  The function will be invoked for each
   new row subject to an INSERT or UPDATE.
   The callable must accept exactly
   zero or one positional arguments.  The one-argument form
   will receive an instance of the :class:`.ExecutionContext`,
   which provides contextual information as to the current
   :class:`_engine.Connection` in use as well as the current
   statement and parameters.

z4ColumnDefault may not be a server-side default type.)rp   rX   r3   r   callableCallableColumnDefaultr)   ColumnElementColumnDefaultScalarElementColumnDefaultr   r   r  s      rg   r   r  v  sb    : c<((##F  c]]'C]++,C_,C~~c""rf   c                P    U R                   R                   SU R                  < S3$ )N())r  r^   r  r   s    rg   r   ColumnDefault.__repr__  s$    ..))*!DHH<q99rf   r]   ).)r  r\  r  r   r{   r  )r  ColumnElement[Any]r  r   r{   r  )r  r   r  r   r{   r  )NF)r  r   r  r   r{   r  r   )
r^   r_   r`   ra   r   r   r   r   r   re   r]   rf   rg   r  r  O  s    ( 
H9<$$$26$	$ $ 9<)$)26)	#) ) O O 27(#(#*.(#	(#T:rf   r  c                  8    \ rS rSrSrSrSrSS	S jjrS
S jrSr	g)r  i  zIdefault generator for a fixed scalar Python value

.. versionadded: 2.0

Tc                    X l         Xl        g ro   r  r  r   r  r  s      rg   r   #ScalarElementColumnDefault.__init__  s    $rf   c                >    [        U R                  U R                  S9$ Nr  r  )r  r  r  r   s    rg   r   ScalarElementColumnDefault._copy      )T__
 	
rf   r  Nr  )r  r   r  r   r{   r   )r{   r  )
r^   r_   r`   ra   r   r  r  r   r  re   r]   rf   rg   r  r    s     IG
rf   r  c                  Z   ^  \ rS rSrSrSrSrSrSS jrSS jr	SU 4S jjr
SS	 jrS
rU =r$ )rb  i  zDefault generator that's specific to the use of a "sentinel" column
when using the insertmanyvalues feature.

This default is used as part of the :func:`_schema.insert_sentinel`
construct.

TFNc                ,    [         R                  U 5      $ ro   )r   r   )r   s    rg   r   $_InsertSentinelColumnDefault.__new__  s    ~~c""rf   c                    g ro   r]   r   s    rg   r   %_InsertSentinelColumnDefault.__init__  r9  rf   c                   > [        SU5      nUR                  (       d  [        R                  " S5      eUR                  (       d  [        R                  " S5      e[
        TU ]  " U40 UD6  g )NrZ  z_The _InsertSentinelColumnDefault may only be applied to a Column marked as insert_sentinel=TruezQThe _InsertSentinelColumnDefault may only be applied to a Column that is nullable)r   r  r3   r   rF  r  r  )r   r  rv   r  r  s       rg   r  (_InsertSentinelColumnDefault._set_parent  se    =&)####8  ##* 
 	F)b)rf   c                    [        5       $ ro   )rb  r   s    rg   r  "_InsertSentinelColumnDefault._copy  s    +--rf   r]   )r{   rb  r  r  )r^   r_   r`   ra   r   rH  r  r  r   r   r  r  re   r  r  s   @rg   rb  rb    s2     KJ
C#*. .rf   rb  )r  r-   c                      \ rS rSr% SrSrSrS\S'    S     SS jjrSS jr	\
R                  \
R                  " S5      SS	 j5       5       rS
rg)r  i  z?default generator for a SQL expression

.. versionadded:: 2.0

T_SQLExprDefaultr  c                    X l         Xl        g ro   r  r  s      rg   r   #ColumnElementColumnDefault.__init__  s    
 %rf   c                >    [        U R                  U R                  S9$ r   )r  r  r  r   s    rg   r   ColumnElementColumnDefault._copy  r  rf   zsqlalchemy.sql.sqltypesc                    [         R                  R                  n[        U R                  R
                  UR                  5      (       + $ ro   )r5   	preloadedsql_sqltypesrp   r  r  NullType)r   sqltypess     rg   _arg_is_typed(ColumnElementColumnDefault._arg_is_typed  s1     >>..dhhmmX->->???rf   r  Nr  )r  r  r  r   r{   r   )r{   r  rY  )r^   r_   r`   ra   r   r  r  r   r   r  r5   r   preload_moduler  re   r]   rf   rg   r  r    su     G	
 !  
	

 
	23@ 4 @rf   r  c                      \ rS rSrSS jrSrg)_CallableColumnDefaultProtocoli  c                    g ro   r]   )r   contexts     rg   __call__'_CallableColumnDefaultProtocol.__call__  s    #rf   r]   N)r  rO   r{   r   )r^   r_   r`   ra   r  re   r]   rf   rg   r  r    s    =rf   r  c                  b    \ rS rSr% SrSrS\S'   Sr S     SS jjrSS jr	    SS jr
S	rg
)r  i  zIdefault generator for a callable Python function

.. versionadded:: 2.0

Tr  r  c                <    X l         U R                  U5      U l        g ro   )r  _maybe_wrap_callabler  r  s      rg   r   CallableColumnDefault.__init__  s    
 %,,S1rf   c                >    [        U R                  U R                  S9$ r   )r  r  r  r   s    rg   r  CallableColumnDefault._copy  s    $dooNNrf   c                p  ^  [         R                  " TSS9nUS   SL=(       a    [	        US   5      =(       d    Sn[	        US   5      U-
  nUS:X  a  [         R                  " U4S jT5      $ US:X  a  T$ [
        R                  " S	5      e! [         a    [         R                  " U4S jT5      s $ f = f)
zWrap callables that don't accept a context.

This is to allow easy compatibility with default callables
that aren't specific to accepting of a context.

T)no_selfc                   > T" 5       $ ro   r]   ctxr  s    rg   r  <CallableColumnDefault._maybe_wrap_callable.<locals>.<lambda>(      "$rf   r\   Nr   c                   > T" 5       $ ro   r]   r*  s    rg   r  r,  .  r-  rf   r   zDColumnDefault Python function takes zero or one positional arguments)r5   get_callable_argspecr   wrap_callabler  r3   r   )r   r  argspec	defaultedpositionalss    `   rg   r#  *CallableColumnDefault._maybe_wrap_callable  s    	<//DAG AJd*>s71:C!	'!*o	1!%%&6;;AI##'   	<%%&6;;	<s   B %B54B5r  Nr  )r  8Union[_CallableColumnDefaultProtocol, Callable[[], Any]]r  r   r{   r   )r{   r  )r  r5  r{   r  )r^   r_   r`   ra   r   rL  r   r  r   r  r#  re   r]   rf   rg   r  r    sZ     K	''G
 !2E2 2 
	2OJ	'rf   r  c                  r    \ rS rSrSr         S                   SS jjr\S	S j5       rSrg)
IdentityOptionsi9  zDefines options for a named database sequence or an identity column.

.. versionadded:: 1.3.18

.. seealso::

    :class:`.Sequence`

Nc
                p    Xl         X l        X0l        X@l        XPl        X`l        Xpl        Xl        Xl        g)a  Construct a :class:`.IdentityOptions` object.

See the :class:`.Sequence` documentation for a complete description
of the parameters.

:param start: the starting index of the sequence.
:param increment: the increment value of the sequence.
:param minvalue: the minimum value of the sequence.
:param maxvalue: the maximum value of the sequence.
:param nominvalue: no minimum value of the sequence.
:param nomaxvalue: no maximum value of the sequence.
:param cycle: allows the sequence to wrap around when the maxvalue
 or minvalue has been reached.
:param cache: optional integer value; number of future values in the
 sequence which are calculated in advance.
:param order: optional boolean value; if ``True``, renders the
 ORDER keyword.

N	start	incrementminvaluemaxvalue
nominvalue
nomaxvaluecyclecacheorder)
r   r:  r;  r<  r=  r>  r?  r@  rA  rB  s
             rg   r   IdentityOptions.__init__D  s1    > 
"  $$


rf   c                J    U R                   S L=(       a    U R                   S:  $ r  )r;  r   s    rg   rC  &IdentityOptions._increment_is_negativem  s    ~~T)@dnnq.@@rf   )	rA  r@  r;  r=  r<  r?  r>  rB  r:  )	NNNNNNNNN)r:  Optional[int]r;  rF  r<  rF  r=  rF  r>  r  r?  r  r@  r  rA  rF  rB  r  r{   r   rY  )	r^   r_   r`   ra   r   r   r  rC  re   r]   rf   rg   r7  r7  9  s      $#'"&"&%)%) $# $'' !'  	'
  ' #' #' ' ' ' 
'R A Arf   r7  c                  :  ^  \ rS rSr% SrSrSrS\S'   S\S'                   S                                   SS	 jjr\	R                  " S
5      SS j5       rSU 4S jjrSS jrSS jrSS jrSSS jjrSSS jjrSS jrSrU =r$ )r   ir  a  Represents a named database sequence.

The :class:`.Sequence` object represents the name and configurational
parameters of a database sequence.   It also represents
a construct that can be "executed" by a SQLAlchemy :class:`_engine.Engine`
or :class:`_engine.Connection`,
rendering the appropriate "next value" function
for the target database and returning a result.

The :class:`.Sequence` is typically associated with a primary key column::

    some_table = Table(
        "some_table",
        metadata,
        Column(
            "id",
            Integer,
            Sequence("some_table_seq", start=1),
            primary_key=True,
        ),
    )

When CREATE TABLE is emitted for the above :class:`_schema.Table`, if the
target platform supports sequences, a CREATE SEQUENCE statement will
be emitted as well.   For platforms that don't support sequences,
the :class:`.Sequence` construct is ignored.

.. seealso::

    :ref:`defaults_sequences`

    :class:`.CreateSequence`

    :class:`.DropSequence`

sequenceTr   rt  zOptional[TypeEngine[int]]	data_typec                   [         R                  U US9  [        R                  U UUUUUUUU
US9
  SU l        [	        X5      U l        Xl        U	[        L a
  S=U l        n	OGUb(  U	c%  UR                  (       a  UR                  =U l        n	O[        R                  " U	U5      U l        Xl
        [        X5      U l        U(       a  U R                  U5        Ub  [        U5      U l        gSU l        g)ap  Construct a :class:`.Sequence` object.

:param name: the name of the sequence.

:param start: the starting index of the sequence.  This value is
 used when the CREATE SEQUENCE command is emitted to the database
 as the value of the "START WITH" clause. If ``None``, the
 clause is omitted, which on most platforms indicates a starting
 value of 1.

 .. versionchanged:: 2.0 The :paramref:`.Sequence.start` parameter
    is required in order to have DDL emit "START WITH".  This is a
    reversal of a change made in version 1.4 which would implicitly
    render "START WITH 1" if the :paramref:`.Sequence.start` were
    not included.  See :ref:`change_7211` for more detail.

:param increment: the increment value of the sequence.  This
 value is used when the CREATE SEQUENCE command is emitted to
 the database as the value of the "INCREMENT BY" clause.  If ``None``,
 the clause is omitted, which on most platforms indicates an
 increment of 1.
:param minvalue: the minimum value of the sequence.  This
 value is used when the CREATE SEQUENCE command is emitted to
 the database as the value of the "MINVALUE" clause.  If ``None``,
 the clause is omitted, which on most platforms indicates a
 minvalue of 1 and -2^63-1 for ascending and descending sequences,
 respectively.

:param maxvalue: the maximum value of the sequence.  This
 value is used when the CREATE SEQUENCE command is emitted to
 the database as the value of the "MAXVALUE" clause.  If ``None``,
 the clause is omitted, which on most platforms indicates a
 maxvalue of 2^63-1 and -1 for ascending and descending sequences,
 respectively.

:param nominvalue: no minimum value of the sequence.  This
 value is used when the CREATE SEQUENCE command is emitted to
 the database as the value of the "NO MINVALUE" clause.  If ``None``,
 the clause is omitted, which on most platforms indicates a
 minvalue of 1 and -2^63-1 for ascending and descending sequences,
 respectively.

:param nomaxvalue: no maximum value of the sequence.  This
 value is used when the CREATE SEQUENCE command is emitted to
 the database as the value of the "NO MAXVALUE" clause.  If ``None``,
 the clause is omitted, which on most platforms indicates a
 maxvalue of 2^63-1 and -1 for ascending and descending sequences,
 respectively.

:param cycle: allows the sequence to wrap around when the maxvalue
 or minvalue has been reached by an ascending or descending sequence
 respectively.  This value is used when the CREATE SEQUENCE command
 is emitted to the database as the "CYCLE" clause.  If the limit is
 reached, the next number generated will be the minvalue or maxvalue,
 respectively.  If cycle=False (the default) any calls to nextval
 after the sequence has reached its maximum value will return an
 error.

:param schema: optional schema name for the sequence, if located
 in a schema other than the default.  The rules for selecting the
 schema name when a :class:`_schema.MetaData`
 is also present are the same
 as that of :paramref:`_schema.Table.schema`.

:param cache: optional integer value; number of future values in the
 sequence which are calculated in advance.  Renders the CACHE keyword
 understood by Oracle Database and PostgreSQL.

:param order: optional boolean value; if ``True``, renders the
 ORDER keyword, understood by Oracle Database, indicating the sequence
 is definitively ordered.   May be necessary to provide deterministic
 ordering using Oracle RAC.

:param data_type: The type to be returned by the sequence, for
 dialects that allow us to choose between INTEGER, BIGINT, etc.
 (e.g., mssql).

 .. versionadded:: 1.4.0

:param optional: boolean value, when ``True``, indicates that this
 :class:`.Sequence` object only needs to be explicitly generated
 on backends that don't provide another way to generate primary
 key identifiers.  Currently, it essentially means, "don't create
 this sequence on the PostgreSQL backend, where the SERIAL keyword
 creates a sequence for us automatically".
:param quote: boolean value, when ``True`` or ``False``, explicitly
 forces quoting of the :paramref:`_schema.Sequence.name` on or off.
 When left at its default of ``None``, normal quoting rules based
 on casing and reserved words take place.
:param quote_schema: Set the quoting preferences for the ``schema``
 name.

:param metadata: optional :class:`_schema.MetaData` object which this
 :class:`.Sequence` will be associated with.  A :class:`.Sequence`
 that is associated with a :class:`_schema.MetaData`
 gains the following
 capabilities:

 * The :class:`.Sequence` will inherit the
   :paramref:`_schema.MetaData.schema`
   parameter specified to the target :class:`_schema.MetaData`, which
   affects the production of CREATE / DROP DDL, if any.

 * The :meth:`.Sequence.create` and :meth:`.Sequence.drop` methods
   automatically use the engine bound to the :class:`_schema.MetaData`
   object, if any.

 * The :meth:`_schema.MetaData.create_all` and
   :meth:`_schema.MetaData.drop_all`
   methods will emit CREATE / DROP for this :class:`.Sequence`,
   even if the :class:`.Sequence` is not associated with any
   :class:`_schema.Table` / :class:`_schema.Column`
   that's a member of this
   :class:`_schema.MetaData`.

 The above behaviors can only occur if the :class:`.Sequence` is
 explicitly associated with the :class:`_schema.MetaData`
 via this parameter.

 .. seealso::

    :ref:`sequence_metadata` - full discussion of the
    :paramref:`.Sequence.metadata` parameter.

:param for_update: Indicates this :class:`.Sequence`, when associated
 with a :class:`_schema.Column`,
 should be invoked for UPDATE statements
 on that column's table, rather than for INSERT statements, when
 no value is otherwise present for that column in the statement.

r  r9  N)r  r   r7  rt  r,   rj   optionalrc   rk   	constructr   rl   _key_set_metadatar/   rI  )r   rj   r:  r;  r<  r=  r>  r?  r@  rk   rA  rB  rI  rK  r   r   r   r  s                     rg   r   Sequence.__init__  s    n 	!!$:!>  !! 	! 	
 ,	 \!#''DK&!fn#+??2DK&%//EDK "40	x( (3DN!DNrf   zsqlalchemy.sql.functionsc                h    [         R                  R                  R                  R	                  U 5      $ )zReturn a :class:`.next_value` function element
which will render the appropriate increment function
for this :class:`.Sequence` within any SQL expression.

)r5   r  sql_functionsfunc
next_valuer   s    rg   rS  Sequence.next_valueU  s%     ~~++00;;DAArf   c                   > Un[        U[        5      (       d   e[        TU ]  U5        UR	                  U R
                  5        g ro   )rp   rq   r  r  r$  r  )r   r  rv   rt  r  s       rg   r  Sequence._set_parent^  s:    &&))))F#0rf   c                \   [        U R                  U R                  U R                  U R                  U R
                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  S9$ )N)rj   r:  r;  r<  r=  r>  r?  r@  rk   rA  rB  rI  rK  r   r  )r   rj   r:  r;  r<  r=  r>  r?  r@  rk   rA  rB  rI  rK  r   r  r   s    rg   r  Sequence._copyd  sx    **nn]]]]**;;****nn]]]]
 	
rf   c                :    U R                  UR                  5        g ro   )rN  r   )r   rt  rr   s      rg   r  Sequence._set_tablew  s    5>>*rf   c                T    Xl         X R                   R                  U R                  '   g ro   )r   
_sequencesrM  )r   r   s     rg   rN  Sequence._set_metadataz  s     .2  +rf   c                @    UR                  [        R                  XS9  g)z&Creates this sequence in the database.r  Nr  r  s      rg   r  Sequence.create~  s     	c114Orf   c                @    UR                  [        R                  XS9  g)z&Drops this sequence from the database.r  Nr  r  s      rg   r  Sequence.drop  s     	c//Mrf   c                ^    [         R                  " SU R                  R                   S35      e)NzThis z cannot be used directly as a column expression.  Use func.next_value(sequence) to produce a 'next value' function that's usable as a column element.)r3   r   r  r^   r   s    rg   _not_a_column_exprSequence._not_a_column_expr  s1    %%DNN++, -# #
 	
rf   )rM  rt  rI  r   rj   rK  rk   )NNNNNNNNNNNFNNNF)$rj   r   r:  rF  r;  rF  r<  rF  r=  rF  r>  r  r?  r  r@  r  rk   r  rA  rF  rB  r  rI  z"Optional[_TypeEngineArgument[int]]rK  r   r   r  r   zOptional[MetaData]r   r  r  r   r{   r   )r{   zFunction[int]r  )r{   r   r  r  )Tr  )r{   r   )r^   r_   r`   ra   r   r   r  r   r   r5   r  rS  r  r  r  rN  r  r  rc  re   r  r  s   @rg   r   r   r  sk   #J  NK!!((
  $#'"&"&%)%) $JN# $8< $'+'+ %t"t" t" !	t"
  t"  t" #t" #t" t" Ht" t" t" 6t" t" t"  %!t"" %#t"$ %t"& 
't"l 
34B 5B1
&+3P
N

 
rf   r   c                  x    \ rS rSr% SrSrSrSrSrSr	S\
S'   SSS jjrSS jrSS	 jrSS
 jrSS jrSS jrSrg)rX   i  aw  A marker for a transparent database-side default.

Use :class:`.FetchedValue` when the database is configured
to provide some automatic default for a column.

E.g.::

    Column("foo", Integer, FetchedValue())

Would indicate that some trigger or default generator
will create a new value for the ``foo`` column during an
INSERT.

.. seealso::

    :ref:`triggered_columns`

TFr   rt  c                    Xl         g ro   r  r  s     rg   r   FetchedValue.__init__  r  rf   c                F    XR                   :X  a  U $ U R                  U5      $ ro   )r  _cloner  s     rg   r  FetchedValue._as_for_update  s     (K;;z**rf   c                ,    [        U R                  5      $ ro   )rX   r  r   s    rg   r  FetchedValue._copy  s    DOO,,rf   c                    U R                   R                  U R                   5      nUR                  R                  U R                  5        UR                  R	                  SS 5        Xl        U$ )Nrt  )r  r   r   r:  r   r  )r   r  ns      rg   ri  FetchedValue._clone  sL    NN""4>>2	

$--(	

x&!rf   c                    Un[        U[        5      (       d   eX0l        U R                  (       a  X R                  l        g X R                  l        g ro   )rp   rq   rt  r  r  rE  )r   r  rv   rt  s       rg   r  FetchedValue._set_parent  s:    &&))))??*.KK')-KK&rf   c                .    [         R                  " U 5      $ ro   r   r   s    rg   r   FetchedValue.__repr__  s      &&rf   r  Nr  r  r  r   r{   rX   )r{   rX   )r  r   r{   r:   r  r   )r^   r_   r`   ra   r   r  	reflectedhas_argumentr  r  r   r   r  r  ri  r  r   re   r]   rf   rg   rX   rX     sH    & ILK!!%+-.'rf   c                  ^   ^  \ rS rSrSrSr  S       S	U 4S jjjrS
S jrSS jrSr	U =r
$ )r  i  a  A DDL-specified DEFAULT column value.

:class:`.DefaultClause` is a :class:`.FetchedValue`
that also generates a "DEFAULT" clause when
"CREATE TABLE" is emitted.

:class:`.DefaultClause` is generated automatically
whenever the ``server_default``, ``server_onupdate`` arguments of
:class:`_schema.Column` are used.  A :class:`.DefaultClause`
can be passed positionally as well.

For example, the following::

    Column("foo", Integer, server_default="50")

Is equivalent to::

    Column("foo", Integer, DefaultClause("50"))

Tc                   > [         R                  " U[        [        [        4S5        [
        TU ]  U5        Xl        X0l        g )Nr  )	r5   assert_arg_typer   r)   r-   r  r   r  ru  )r   r  r  
_reflectedr  s       rg   r   DefaultClause.__init__  s5     	S3z"BEJ$#rf   c                T    [        U R                  U R                  U R                  S9$ )N)r  r  rz  )r  r  r  ru  r   s    rg   r  DefaultClause._copy  s"    T__
 	
rf   c                @    SU R                   < SU R                  < S3$ )NzDefaultClause(z, for_update=r  r  r   s    rg   r   DefaultClause.__repr__  s    59XXtOOrf   )r  ru  )FF)r  z%Union[str, ClauseElement, TextClause]r  r   rz  r   r{   r   )r{   r  r   )r^   r_   r`   ra   r   rv  r   r  r   re   r  r  s   @rg   r  r    sX    * L
 ! 		$2	$ 	$ 		$
 
	$ 	$

P Prf   r  c                      \ rS rSr% SrSrS\S'   S\S'          S                 SS	 jjr      SS
 jr\	SS j5       r
SS jr\R                  " SS5      SS j5       rSS jrSrg)
Constrainti  aV  A table-level SQL constraint.

:class:`_schema.Constraint` serves as the base class for the series of
constraint objects that can be associated with :class:`_schema.Table`
objects, including :class:`_schema.PrimaryKeyConstraint`,
:class:`_schema.ForeignKeyConstraint`
:class:`_schema.UniqueConstraint`, and
:class:`_schema.CheckConstraint`.

r&  intr  r   r  Nc                    Xl         X l        X0l        U(       a  X@l        X`l        Xpl        [        R                  " U 5        U R                  U5        XPl	        g)a  Create a SQL constraint.

:param name:
  Optional, the in-database name of this ``Constraint``.

:param deferrable:
  Optional bool.  If set, emit DEFERRABLE or NOT DEFERRABLE when
  issuing DDL for this constraint.

:param initially:
  Optional string.  If set, emit INITIALLY <value> when issuing DDL
  for this constraint.

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param comment: Optional string that will render an SQL comment on
  foreign key constraint creation.

    .. versionadded:: 2.0

:param \**dialect_kw:  Additional keyword arguments are dialect
    specific, and passed in the form ``<dialectname>_<argname>``.  See
    the documentation regarding an individual dialect at
    :ref:`dialect_toplevel` for detail on documented arguments.

:param _create_rule:
  used internally by some datatypes that also create constraints.

:param _type_bound:
  used internally to indicate that this constraint is associated with
  a specific datatype.

N)
rj   rj  rk  r   _create_ruler  r5   r  r2  r   )	r   rj   rj  rk  r   r   r  r  rn  s	            rg   r   Constraint.__init__  sI    \ 	$"I(&%%%j1rf   c                    U R                   b  U R                  U5      (       d  gU R                  b5  U R                  R                  " [        R                  " U 5      U S 4SU0UD6$ g)NFcompilerT)r  r   _should_executer   CreateConstraint)r   r  rv   s      rg   _should_create_for_compiler&Constraint._should_create_for_compilerD  sk     (1B1B81L1L\\%<<//$$T*D$AIMO  rf   c                     [        U R                  [        5      (       a  U R                  $  [        R
                  " S5      e! [         a     N"f = f)NzdThis constraint is not bound to a table.  Did you mean to call table.append_constraint(constraint) ?)rp   r  rW   r   r3   r   r   s    rg   rr   Constraint.tableP  sV    	$++u--{{" . %%A
 	
  		s   *A 
AAc                    [        U[        [        45      (       d   eXl        UR                  R                  U 5        g ro   )rp   rW   rq   r  r   rn  r  s      rg   r  Constraint._set_parent\  s2    &5&/2222t$rf   r   zaThe :meth:`_schema.Constraint.copy` method is deprecated and will be removed in a future release.c                &    U R                   " S0 UD6$ r'  r(  r)  s     rg   r   Constraint.copya  r+  rf   c                    [        5       ero   r  r)  s     rg   r  Constraint._copyi  r  rf   )r  r  r   rj  r   rk  rj   r  )NNNNNNF)rj   r  rj  r  rk  r   r   rX  r   r   r  r   r  r   rn  r   r{   r   )r  rE   rv   r   r{   r   r{   rW   r  )rv   r   r{   r:   )r^   r_   r`   ra   r   r   r   r   r  r  rr   r  r5   r  r   r  re   r]   rf   rg   r  r    s    	 "N )-%)#'$(!%&*!7%7 #7 !	7
 "7 7 $7 7 7 
7r
#
+.
	
 	
 	
%
 
__	3
 
 $rf   r  c                      \ rS rSr% SrS\S'   SrS\S'   \(       a        SS jrS	SS
S.         SS jjr	SSS jjr
\R                  SS j5       r\R                  SS j5       r    SS jrSS jrSrg
)ColumnCollectionMixinim  zA :class:`_expression.ColumnCollection` of :class:`_schema.Column`
objects.

This collection represents the columns which are referred to by
this object.

r   r   Fz'List[Optional[Union[str, Column[Any]]]]_pending_colargsc                    g ro   r]   r  s      rg   r   /ColumnCollectionMixin._set_parent_with_dispatch~  s    rf   TN)_autoattachr  _gather_expressionsc                  X l         [        5       U l        UnUbn  U(       a   e/ U l        [        R
                  " [        R                  U5       H4  u  nnnnU R                  R                  U5        UR                  U5        M6     O;U V	s/ s H(  n	[        R                  " [        R                  U	5      PM*     sn	U l        U(       a#  U R                  (       a  U R                  5         g g g s  sn	f ro   )r  r#   r   r  r    expect_col_expression_collectionr   DDLConstraintColumnRoler  rL  _check_attach)
r   r  r  r  r   processed_expressionsr  r-  add_elementrt  s
             rg   r   ColumnCollectionMixin.__init__  s     ).0   	 !, -,,$&D! ;;--w %%,,[9%,,T2	 &%%F   !>!>G%%D!
 400  1;%s   /C/c                  ^ ^ T R                    Vs/ s H  n[        U[        5      (       d  M  UPM     nnU Vs/ s H&  n[        UR                  [        5      (       d  M$  UPM(     nn[        U5      R                  U5      mT(       ap  U(       a   S5       eT R                    Vs1 s H	  o"c  M  UiM     snR                  U5      nU(       d+  S
UU 4S jjnTT l        T H  nUR                  U5        M     g UnU Vs1 s H  o"R                  iM     n	n[        U	5      S:X  a   T R                  U	R                  5       5        g [        U	5      S:  a  T R                  (       d{  US   R                  n
USS   Vs/ s H  o"R                  U
Ld  M  UPM     nnU(       a?  SR                  S U 5       5      n[        R                  " SU SU
R                    S	35      eg g g s  snf s  snf s  snf s  snf s  snf )Nz#Should not reach here on event callc                   > [        U[        5      (       a)  TR                  U 5        T(       d  TR                  SS9  g g g )NT)r  )rp   rW   discardr  )rt  rr   cols_wo_tabler   s     rg   _col_attached:ColumnCollectionMixin._check_attach.<locals>._col_attached  s>     "%//%--f5, ..4.8  - 0rf   r   r   r`  c              3  ,   #    U  H
  nS U-  v   M     g7fz'%s'Nr]   .0rt   s     rg   	<genexpr>6ColumnCollectionMixin._check_attach.<locals>.<genexpr>  s     %A&Qfqj&s   z
Column(s) z are not part of table 'r  r  )r  rp   rq   rr   rW   r  
difference_cols_wo_tabler$  r  r   r   _allow_multiple_tablesrc  r3   r   rj  )r   r  rt   col_objscols_w_tablehas_string_colsr  r  r   r   rr   others	other_strr  s   `            @rg   r  #ColumnCollectionMixin._check_attach  s   #44N4!
1f8MA4N#+J8az!''5/I8JH00> AAA7
  000a0j"  #9 9 '4#(C((7 )#*+7a''7+v;!**6::<8[1_T%@%@AJ$$E!(EAu0DaFE II%A&%AA	''  ,..3.?.?-@D   &A_I OJ* ,
 Fs3   G#G##G(!G(&G-0G- G2<G7G7c                6    U R                   R                  5       $ ro   r   as_readonlyr   s    rg   r   ColumnCollectionMixin.columns      }}((**rf   c                6    U R                   R                  5       $ ro   r  r   s    rg   rt   ColumnCollectionMixin.c  r  rf   c           
     2   [        U[        5      (       aY  U R                   Vs/ s H  n[        U[        5      (       d  M  UPM     nn[        U5      [        U R                  5      :X  d   eU$  U R                   Vs/ s H)  n[        U[        5      (       a  UR
                  U   OUPM+     sn$ s  snf s  snf ! [         aQ  n[        R                  " SU R                  R                   SUR                   SUR                  S    S35      UeS nAff = f)NzCan't create z on table 'z': no column named 'r   z' is present.)rp   rq   r  r  r   rt   KeyErrorr3   ConstraintColumnNotFoundErrorr  r^   rj  r   )r   r  rt   resultr  kes         rg   _col_expressions&ColumnCollectionMixin._col_expressions  s    ff%%0030aJq&4I0  3 v;#d&;&;"<<<<M
  $444 &0S%9%9FHHSMsB4 3  77#DNN$;$;#< =!!'!3!3 4 5 ggaj\8 	s6   B1B10B; >0B6.B; 6B; ;
DADDc                    [        U[        [        45      (       d   eU R                  U5       H#  nUc  M  U R                  R                  U5        M%     g ro   )rp   rW   rq   r  r   rn  )r   r  rv   r  s       rg   r  !ColumnCollectionMixin._set_parent  sE    &5&/2222((0C!!#& 1rf   )r  r  r   r  r  )
r   r?   r  r   r  r   r  z.Optional[List[Union[str, ColumnElement[Any]]]]r{   r   r  )r  r   r{   r   r  )r  zUnion[Table, Column[Any]]r{   zList[Optional[Column[Any]]])r^   r_   r`   ra   r   r   r  r   r   r   r  r5   r  r   rt   r  r  re   r]   rf   rg   r  r  m  s     21"==	+	36		 !" '!$'! '! 	'!

'! 
'!R.` 
+ + 
+ +/	$,'rf   r  c                      \ rS rSr% SrSSSSSSSS.                   SS jjrS	\S'    SS
 jrSS jr\	R                  " SS5      SS.     SS jj5       rSS.     SS jjrSS jrSS jrSS jrSrg)ColumnCollectionConstrainti  z-A constraint that proxies a ColumnCollection.NTF)rj   rj  rk  r   r  r  r  r   c               p    [         R                  " U 4UUUUS.U	D6  [        R                  " U /UQ7XVS.6  g)a  
:param \*columns:
  A sequence of column names or Column objects.

:param name:
  Optional, the in-database name of this constraint.

:param deferrable:
  Optional bool.  If set, emit DEFERRABLE or NOT DEFERRABLE when
  issuing DDL for this constraint.

:param initially:
  Optional string.  If set, emit INITIALLY <value> when issuing DDL
  for this constraint.

:param \**dialect_kw: other keyword arguments including
  dialect-specific arguments are propagated to the :class:`.Constraint`
  superclass.

rj   rj  rk  r   )r  r  N)r  r   r  )
r   rj   rj  rk  r   r  r  r  r   rn  s
             rg   r   #ColumnCollectionConstraint.__init__  sT    @ 		
!	
 	
 	&&	
	
(3	
rf   r  c                    [        U[        [        45      (       d   e[        R	                  X5        [
        R	                  X5        g ro   )rp   rq   rW   r  r  r  r  s      rg   r  &ColumnCollectionConstraint._set_parent6  s5    &65/2222t,))$7rf   c                    XR                   ;   $ ro   )r   )r   rf  s     rg   __contains__'ColumnCollectionConstraint.__contains__;  s    MM!!rf   r   zqThe :meth:`_schema.ColumnCollectionConstraint.copy` method is deprecated and will be removed in a future release.r   c               *    U R                   " SSU0UD6$ Nr   r]   r(  r   r   rv   s      rg   r   ColumnCollectionConstraint.copy>  s     zz:|:r::rf   c          
        0 nU R                    H@  nU R                   U   R                  nUR                  5        H  u  nnUX4S-   U-   '   M     MB     [        U R                  [
        5      (       d   eU R                  " U R                   Vs/ s H  n[        XR                  U5      PM     snU R                  U R                  U R                  U R                  S.UD6n	U R                  U	5      $ s  snf )Nr-  )rj   rj  rk  r   )r.  r/  r0  rp   r  rW   r  r   r   rj   rj  rk  r   r   )
r   r   rv   constraint_kwargsr5  r.  r6  r7  r  rt   s
             rg   r   ColumnCollectionConstraint._copyK  s      00L"22<@NNO !&&("$ ) ""47I"IJ ) 1 $++u----NN !MM)D !{{LA) nn
 LL

  

 %%a((s    C3c                8    U R                   R                  U5      $ )zReturn True if this constraint contains the given column.

Note that this object also contains an attribute ``.columns``
which is a :class:`_expression.ColumnCollection` of
:class:`_schema.Column` objects.

)r   contains_columnr   r  s     rg   r  *ColumnCollectionConstraint.contains_columnk  s     }},,S11rf   c                ,    [        U R                  5      $ ro   )iterr   r   s    rg   __iter__#ColumnCollectionConstraint.__iter__v  s    DMM""rf   c                ,    [        U R                  5      $ ro   )r  r   r   s    rg   __len__"ColumnCollectionConstraint.__len__y  s    4==!!rf   r]   )r   r?   rj   r  rj  r  rk  r   r   rX  r  r   r  r   r  z"Optional[List[_DDLColumnArgument]]rn  r   r{   r   r  )rf  r   r{   r   )r   Optional[Table]rv   r   r{   r  )r  rZ  r{   r   )r{   zIterator[Column[Any]])r{   r  )r^   r_   r`   ra   r   r   r   r  r  r5   r  r   r  r  r  r  re   r]   rf   rg   r  r    s   7
 )-%)#'$( "BF*
$*
 &*
 #	*

 !*
 "*
 *
 *
 @*
 *
 
*
X 87
8
" 
__	A )-; &; 	;
 
$;
; )-) &) 	)
 
$)@	2#"rf   r  c                    ^  \ rS rSrSrSrSr\" SSS5              S                     SU 4S	 jjj5       r\	SS
 j5       r
\R                  " SS5      SS.     SS jj5       rSS.     SS jjrSrU =r$ )CheckConstrainti}  zdA table- or column-level CHECK constraint.

Can be included in the definition of a Table or Column.
T table_or_column_check_constraintsqltextz:class:`.CheckConstraint`z$:paramref:`.CheckConstraint.sqltext`Nc
                  > [         R                  " [        R                  U5      U l        / n[
        R                  " U R                  0 SUR                  05        [        TU ]$  " UUUUUUU	US.U
D6  Ub  U R                  U5        gg)a  Construct a CHECK constraint.

:param sqltext:
 A string containing the constraint definition, which will be used
 verbatim, or a SQL expression construct.   If given as a string,
 the object is converted to a :func:`_expression.text` object.
 If the textual
 string includes a colon character, escape this using a backslash::

   CheckConstraint(r"foo ~ E'a(?\:b|c)d")

:param name:
  Optional, the in-database name of the constraint.

:param deferrable:
  Optional bool.  If set, emit DEFERRABLE or NOT DEFERRABLE when
  issuing DDL for this constraint.

:param initially:
  Optional string.  If set, emit INITIALLY <value> when issuing DDL
  for this constraint.

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

rt  )rj   rj  rk  r  r   r  r  N)r   rL  r   DDLExpressionRoler  r   traverser  r  r   r   )r   r  rj   rj  rk  rr   r   r  r  r  rn  r   r  s               rg   r   CheckConstraint.__init__  s    Z !''(?(?I%'$,,Xw~~,FG  !%##
	
 
	
 **51 rf   c                @    [        U R                  [        5      (       + $ ro   )rp   r  rW   r   s    rg   is_column_levelCheckConstraint.is_column_level  s    dkk5111rf   r   zfThe :meth:`_schema.CheckConstraint.copy` method is deprecated and will be removed in a future release.r  c               *    U R                   " SSU0UD6$ r  r(  r  s      rg   r   CheckConstraint.copy       zz:|:r::rf   c                   Ub"  [        U R                  U R                  U5      nOU R                  n[        UU R                  U R
                  U R                  U R                  UU R                  SU R                  S9	nU R                  U5      $ )NF)rj   rk  rj  r  rr   r   r  r  )r   r  rr   r  rj   rk  rj  r  r   r  r   )r   r   rv   r  rt   s        rg   r  CheckConstraint._copy  s     # 't||TZZNGllGnn**LL((

 %%a((rf   )r  )NNNNNNTF)r  z#_TextCoercedExpressionArgument[Any]rj   r  rj  r  rk  r   rr   r  r   rX  r  r   r  r   r  r   rn  r   r{   r   rY  )r   r  rv   r   r{   r  )r^   r_   r`   ra   r   r  r   r(   r   r  r  r5   r  r   r  re   r  r  s   @rg   r  r  }  s9   
 "7N#. )-%)#'!%$(&* !82482 &82 #	82
 !82 82 "82 $82 82 82 82 
82
82t 2 2 
__	3 26;.;=@;	;
; 26).)=@)	) )rf   r  c                     \ rS rSr% SrSr           S                             SS jjrSS jrS\S'    S	\S
'    \	SS j5       r
\	SS j5       r\	SS j5       rSS jr\	SS j5       r\	S S j5       rS!S jr\R$                  " SS5      SSS.       S"S jj5       rSSS.       S"S jjrSrg)#r  i  a  A table-level FOREIGN KEY constraint.

Defines a single column or composite FOREIGN KEY ... REFERENCES
constraint. For a no-frills, single column foreign key, adding a
:class:`_schema.ForeignKey` to the definition of a :class:`_schema.Column`
is a
shorthand equivalent for an unnamed, single column
:class:`_schema.ForeignKeyConstraint`.

Examples of foreign key configuration are in :ref:`metadata_foreignkeys`.

foreign_key_constraintNr   c                   [         R                  " U 4UUUUUS.UD6  X@l        XPl        Xl        Xl        Xl        [        [        U5      5      [        U5      :w  aM  [        [        U5      5      [        U5      :w  a  [        R                  " S5      e[        R                  " S5      eU Vs/ s Hs  n[        U4U U R                  U R                  U R                  U R
                  U R                  U R                  U R                  U R                  S.	U R                  D6PMu     snU l        ["        R                  " U /UQ76   Ub3  [%        U S5      (       a  XR&                  L d   eU R)                  U5        ggs  snf )a
  Construct a composite-capable FOREIGN KEY.

:param columns: A sequence of local column names. The named columns
  must be defined and present in the parent Table. The names should
  match the ``key`` given to each column (defaults to the name) unless
  ``link_to_name`` is True.

:param refcolumns: A sequence of foreign column names or Column
  objects. The columns must all be located within the same Table.

:param name: Optional, the in-database name of the key.

:param onupdate: Optional string. If set, emit ON UPDATE <value> when
    issuing DDL for this constraint. Typical values include CASCADE,
    DELETE and RESTRICT.

    .. seealso::

        :ref:`on_update_on_delete`

:param ondelete: Optional string. If set, emit ON DELETE <value> when
    issuing DDL for this constraint. Typical values include CASCADE,
    SET NULL and RESTRICT.  Some dialects may allow for additional
    syntaxes.

    .. seealso::

        :ref:`on_update_on_delete`

:param deferrable: Optional bool. If set, emit DEFERRABLE or NOT
  DEFERRABLE when issuing DDL for this constraint.

:param initially: Optional string. If set, emit INITIALLY <value> when
  issuing DDL for this constraint.

:param link_to_name: if True, the string name given in ``column`` is
  the rendered name of the referenced column, not its locally assigned
  ``key``.

:param use_alter: If True, do not emit the DDL for this constraint as
  part of the CREATE TABLE definition. Instead, generate it via an
  ALTER TABLE statement issued after the full collection of tables
  have been created, and drop it via an ALTER TABLE statement before
  the full collection of tables are dropped.

  The use of :paramref:`_schema.ForeignKeyConstraint.use_alter` is
  particularly geared towards the case where two or more tables
  are established within a mutually-dependent foreign key constraint
  relationship; however, the :meth:`_schema.MetaData.create_all` and
  :meth:`_schema.MetaData.drop_all`
  methods will perform this resolution
  automatically, so the flag is normally not needed.

  .. seealso::

        :ref:`use_alter`

:param match: Optional string. If set, emit MATCH <value> when issuing
  DDL for this constraint. Typical values include SIMPLE, PARTIAL
  and FULL.

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param comment: Optional string that will render an SQL comment on
  foreign key constraint creation.

    .. versionadded:: 2.0

:param \**dialect_kw:  Additional keyword arguments are dialect
  specific, and passed in the form ``<dialectname>_<argname>``.  See
  the documentation regarding an individual dialect at
  :ref:`dialect_toplevel` for detail on documented arguments.

)rj   rj  rk  r   r   zOForeignKeyConstraint with duplicate source column references are not supported.z_ForeignKeyConstraint number of constrained columns must match the number of referenced columns.)	rH  rj   r  ri  rh  r  rl  rj  rk  Nr  )r  r   r  ri  r  rh  rl  r  r  r3   r   rJ  rj   rj  rk  r  elementsr  r  r  r   )r   r   
refcolumnsrj   r  ri  rj  rk  rh  r  rl  rr   r   r   rn  refcols                   rg   r   ForeignKeyConstraint.__init__  s{   z 		
!	
 	
 ! ("
s7|J/3w< CL0''4  ''* 0 %
 %  YY..!..jj??.. %% %
" 	&&t6g6tX&&+++**51 %
s   .A:E>c                p    U R                   R                  U5        U R                  R                  U5        g ro   )r   rn  r  r  r  s      rg   r  $ForeignKeyConstraint._append_element  s&    &!R rf   r  zList[ForeignKey]r  c                j    [         R                  " [        U R                  U R                  5      5      $ ro   )r5   OrderedDictzipcolumn_keysr  r   s    rg   	_elementsForeignKeyConstraint._elements  s&     D$4$4dmm DEErf   c                B    U R                    H  nUR                  s  $    g ro   )r  r  )r   elems     rg   r  %ForeignKeyConstraint._referred_schema  s!    MMD((( " rf   c                H    U R                   S   R                  R                  $ )a#  The :class:`_schema.Table` object to which this
:class:`_schema.ForeignKeyConstraint` references.

This is a dynamically calculated attribute which may not be available
if the constraint and/or parent table is not yet associated with
a metadata collection that contains the referred table.

r   )r  rt  rr   r   s    rg   referred_table#ForeignKeyConstraint.referred_table  s     }}Q&&,,,rf   c           
        U R                    Vs1 s H  o"R                  5       iM     nnS U;  aV  [        U5      S:  aF  [        U5      SS u  pE[        R
                  " SUR                   SU R                   SU SU 35      eg g s  snf )Nr   r   r1   zForeignKeyConstraint on r  z$) refers to multiple remote tables:  and )r  r  r  r"  r3   r   r
  _col_description)r   rr   r  
table_keyselem0elem1s         rg   r  )ForeignKeyConstraint._validate_dest_table  s    48MMBMDoo'M
Bz!c*o&9!*-a2LE##*>>"!D$9$9#: ;++0'ug?  ':! Cs   Bc                    [        U S5      (       a  U R                  R                  5       $ U R                   Vs/ s H/  n[	        U[
        5      (       a  UR                  O
[        U5      PM1     sn$ s  snf )a]  Return a list of string keys representing the local
columns in this :class:`_schema.ForeignKeyConstraint`.

This list is either the original string arguments sent
to the constructor of the :class:`_schema.ForeignKeyConstraint`,
or if the constraint has been initialized with :class:`_schema.Column`
objects, is the string ``.key`` of each element.

r  )r  r   keysr  rp   r+   rs   r   r  s     rg   r   ForeignKeyConstraint.column_keys  sj     4""==%%''  000C &c=99s3xG0  s   6A3c                8    SR                  U R                  5      $ )Nr`  )rc  r  r   s    rg   r  %ForeignKeyConstraint._col_description  s    yy))**rf   c                d   Un[        U[        5      (       d   e[        R                  X5        [        R                  X5        [        U R                  U R                  5       H8  u  pE[        US5      (       a  UR                  ULd  M'  UR                  U5        M:     U R                  U5        g )Nr  )rp   rW   r  r  r  r  r   r  r  r  r   r  )r   r  rv   rr   r  r  s         rg   r   ForeignKeyConstraint._set_parent  s    %''''t+"..t;4==$--8GC2x((BIIS,@,,S1 9 	!!%(rf   r   zkThe :meth:`_schema.ForeignKeyConstraint.copy` method is deprecated and will be removed in a future release.r  c               *    U R                   " SXS.UD6$ )Nr  r]   r(  )r   rk   r   rv   s       rg   r   ForeignKeyConstraint.copy  s     zzIIbIIrf   c                  [        U R                   Vs/ s H  oDR                  R                  PM     snU R                   Vs/ s HU  nUR	                  UUb>  UR                  5       UR                  R                  R                  :X  a  UR                  OS SS9PMW     snU R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  U R                  S9n[!        U R                  UR                  5       H  u  pgUR#                  U5        M     U R#                  U5      $ s  snf s  snf )NT)rk   ry  rz  )	rj   r  ri  rh  rj  rk  r  rl  r   )r  r  r  rs   rq  r  rr   rj   r  ri  rh  rj  rk  r  rl  r   r  r   )r   rk   r   rv   rf  r'  self_fkother_fks           rg   r  ForeignKeyConstraint._copy  s"    ##'==1=aXX\\=1  'A ! (3LLNahhnn.@.@@ %)) "!  	 ' ]]]]nnnn****LL/
2 "%T]]CLL!AG%%h/ "B%%c**5 2s   EAE
)r  r  rl  ri  r  rh  )NNNNNFFNNNN)r   $_typing_Sequence[_DDLColumnArgument]r  r  rj   r  r  r   ri  r   rj  r  rk  r   rh  r   r  r   rl  r   rr   r  r   rX  r   r   rn  r   r{   r   )rt  rZ  r  rJ  r{   r   )r{   z!util.OrderedDict[str, ForeignKey]r  r  r  )r{   z_typing_Sequence[str]r   r  )rk   r   r   r  rv   r   r{   r  )r^   r_   r`   ra   r   r   r   r  r   r  r  r  r	  r  r  r  r  r5   r  r   r  re   r]   rf   rg   r  r    s    .N )-"&"&%)#'"#!%$(!%V25V2 9V2 &	V2
  V2  V2 #V2 !V2 V2 V2 V2 V2 "V2 V2 V2  
!V2p! 87
  F F   	- 	-  $ + +) 
__	3 !%(,	J J &	J
 J 
J
J !%(,	"+ "+ &	"+
 "+ 
"+ "+rf   r  c                     ^  \ rS rSrSrSrSSSSSS.               SU 4S jjjrSU 4S jjrSS	 jrSS
 jr	\
SS j5       r\R                  SS j5       rSrU =r$ )r  i"  ac	  A table-level PRIMARY KEY constraint.

The :class:`.PrimaryKeyConstraint` object is present automatically
on any :class:`_schema.Table` object; it is assigned a set of
:class:`_schema.Column` objects corresponding to those marked with
the :paramref:`_schema.Column.primary_key` flag::

    >>> my_table = Table(
    ...     "mytable",
    ...     metadata,
    ...     Column("id", Integer, primary_key=True),
    ...     Column("version_id", Integer, primary_key=True),
    ...     Column("data", String(50)),
    ... )
    >>> my_table.primary_key
    PrimaryKeyConstraint(
        Column('id', Integer(), table=<mytable>,
               primary_key=True, nullable=False),
        Column('version_id', Integer(), table=<mytable>,
               primary_key=True, nullable=False)
    )

The primary key of a :class:`_schema.Table` can also be specified by using
a :class:`.PrimaryKeyConstraint` object explicitly; in this mode of usage,
the "name" of the constraint can also be specified, as well as other
options which may be recognized by dialects::

    my_table = Table(
        "mytable",
        metadata,
        Column("id", Integer),
        Column("version_id", Integer),
        Column("data", String(50)),
        PrimaryKeyConstraint("id", "version_id", name="mytable_pk"),
    )

The two styles of column-specification should generally not be mixed.
An warning is emitted if the columns present in the
:class:`.PrimaryKeyConstraint`
don't match the columns that were marked as ``primary_key=True``, if both
are present; in this case, the columns are taken strictly from the
:class:`.PrimaryKeyConstraint` declaration, and those columns otherwise
marked as ``primary_key=True`` are ignored.  This behavior is intended to
be backwards compatible with previous behavior.

For the use case where specific options are to be specified on the
:class:`.PrimaryKeyConstraint`, but the usual style of using
``primary_key=True`` flags is still desirable, an empty
:class:`.PrimaryKeyConstraint` may be specified, which will take on the
primary key column collection from the :class:`_schema.Table` based on the
flags::

    my_table = Table(
        "mytable",
        metadata,
        Column("id", Integer, primary_key=True),
        Column("version_id", Integer, primary_key=True),
        Column("data", String(50)),
        PrimaryKeyConstraint(name="mytable_pk", mssql_clustered=True),
    )

primary_key_constraintNF)rj   rj  rk  r   r  c               <   > XPl         [        TU ]  " UUUUUS.UD6  g )Nr  )r  r  r   )	r   rj   rj  rk  r   r  r   rn  r  s	           rg   r   PrimaryKeyConstraint.__init__d  s1     $7 !	
 	
rf   c                d  > Un[        U[        5      (       d   e[        TU ]  U5        UR                  U LaF  UR
                  R                  UR                  5        Xl        UR
                  R                  U 5        UR                   Vs/ s H  oDR                  (       d  M  UPM     nnU R                  (       a  U(       a  [        U5      [        U R                  5      :w  al  SR                  S U 5       5      nSR                  S U R                   5       5      n[        R                  " SUR                   SU SU SU S3	5        / US S & U R                   H&  nS	Ul        UR                  [         L d  M  S
Ul        M(     U(       a  U R                  R%                  U5        g g s  snf )Nr`  c              3  @   #    U  H  nS UR                   -  v   M     g7fr  rj   r  s     rg   r  3PrimaryKeyConstraint._set_parent.<locals>.<genexpr>  s     $HiVaff_i   c              3  @   #    U  H  nS UR                   -  v   M     g7fr  r&  r  s     rg   r  r'    s     GAr(  r   z' specifies columns z= as primary_key=True, not matching locally specified columns z-; setting the current primary key columns to z:. This warning may become an exception in a future releaseTF)rp   rW   r  r  r   r   r  rn  rt   r   r  rc  r5   r  rj   r  rd   rF  extend)	r   r  rv   rr   rt   	table_pkstable_pk_strcol_strr  s	           rg   r   PrimaryKeyConstraint._set_parentx  sj   %''''E"D(%%e&7&78 $!!$' %91==Q	9MMI#dmm"44  99$Hi$HHLiiGGGGII%**%9. !::A C2 ) >?
 IaLA AM''+;;"
  MM  + 7 :s   F-%F-c                    U H
  nSUl         M     U R                  R                  U5        [        R                  R                  U 5        U R                  U R                  5        g)a  repopulate this :class:`.PrimaryKeyConstraint` given
a set of columns.

Existing columns in the table that are marked as primary_key=True
are maintained.

Also fires a new event.

This is basically like putting a whole new
:class:`.PrimaryKeyConstraint` object on the parent
:class:`_schema.Table` object without actually replacing the object.

The ordering of the given list of columns is also maintained; these
columns will be appended to the list of columns after any which
are already present.

TN)r   r   r*  r  r>  _resetr   rr   )r   r   r  s      rg   _reloadPrimaryKeyConstraint._reload  sO    * C"CO  	W%2299$?&&tzz2rf   c                    [         R                  R                  U 5        U R                  R	                  U5        U R
                  R                  X5        g ro   )r  r>  r0  r   ry   r   '_sa_event_column_added_to_pk_constraintr  s     rg   r  PrimaryKeyConstraint._replace  s:    2299$?c"==dHrf   c                    U R                   nUb'  U/U R                   Vs/ s H  o"ULd  M	  UPM     sn-   $ [        U R                  5      $ s  snf ro   )r>  r   r  )r   autoincrt   s      rg   columns_autoinc_first*PrimaryKeyConstraint.columns_autoinc_first  sM    ,,94==M=aW<L=MMM&&  Ns
   AAc                   S
S jn[        U R                  5      S:X  aS  [        U R                  5      S   nUR                  SL a  U" US5        U$ UR                  S;   a  U" US5      (       a  U$ g S nU R                   HS  nUR                  SL d  M  U" US5        Ub1  [        R
                  " SUR                   SUR                   S	35      eUnMU     U$ )Nc                N   U R                   R                  bW  [        U R                   R                  [        R                  R                  [        R
                  R                  45      (       d/  U(       a'  [        R                  " SU R                    SU  S35      eg[        U R                  [        S 5      [        45      (       d  U(       d  gU R                  b'  [        U R                  [        5      (       d  U(       d  gU R                  (       a  U R                  S;  a  gg)NzColumn type z on column 'z+' is not compatible with autoincrement=TrueF)T	ignore_fkT)r  _type_affinity
issubclassr   ra  NUMERICTYPEr3   r   rp   r   r   rE  r2  r   r  )r  autoinc_trues     rg   _validate_autoincEPrimaryKeyConstraint._autoincrement_column.<locals>._validate_autoinc  s    xx&&.j''((77((777 7  ++&sxxjSE B= > 
 !s{{T$Z,BCC$""."3#5#5x@@$!!c&7&7 @ ' rf   r   r   T)r  r<  Fz=Only one Column may be marked autoincrement=True, found both r  ri   )r  rZ  r@  r   r{   r   )r  r   r  r  r3   r   rj   )r   rA  r  r7  s       rg   r>  *PrimaryKeyConstraint._autoincrement_column  s    	B t}}"t}}%a(C  D(!#t,
"" '  $C//
 G}}$$,%c40*!//>"xxjgll^1>  #& % Nrf   r   )r   r?   rj   r   rj  r  rk  r   r   rX  r  r   rn  r   r{   r   r  )r   zIterable[Column[Any]]r{   r   )r  rZ  r{   r   )r{   zList[Column[Any]]r  )r^   r_   r`   ra   r   r   r   r  r1  r  r  r8  r5   r  r>  re   r  r  s   @rg   r  r  "  s    =~ .N
 #%)#'$($)
$
 
 #	

 !
 "
 "
 
 

 
(&,P3:I ' ' 
> >rf   r  c                      \ rS rSrSrSrSrg)r  i  a  A table-level UNIQUE constraint.

Defines a single column or composite UNIQUE constraint. For a no-frills,
single column constraint, adding ``unique=True`` to the ``Column``
definition is a shorthand equivalent for an unnamed, single column
UniqueConstraint.
unique_constraintr]   N)r^   r_   r`   ra   r   r   re   r]   rf   rg   r  r    s     )Nrf   r  c                      \ rS rSr% SrSrS\S'   S\S'   S\S	'   S
SSSS
S.                 SS jjrSS jrSSS jjr	SSS jjr
SS jrSrg)r  i  a  A table-level INDEX.

Defines a composite (one or more column) INDEX.

E.g.::

    sometable = Table(
        "sometable",
        metadata,
        Column("name", String(50)),
        Column("address", String(100)),
    )

    Index("some_index", sometable.c.name)

For a no-frills, single column index, adding
:class:`_schema.Column` also supports ``index=True``::

    sometable = Table(
        "sometable", metadata, Column("name", String(50), index=True)
    )

For a composite index, multiple columns can be specified::

    Index("some_index", sometable.c.name, sometable.c.address)

Functional indexes are supported as well, typically by using the
:data:`.func` construct in conjunction with table-bound
:class:`_schema.Column` objects::

    Index("some_index", func.lower(sometable.c.name))

An :class:`.Index` can also be manually associated with a
:class:`_schema.Table`,
either through inline declaration or using
:meth:`_schema.Table.append_constraint`.  When this approach is used,
the names
of the indexed columns can be specified as strings::

    Table(
        "sometable",
        metadata,
        Column("name", String(50)),
        Column("address", String(100)),
        Index("some_index", "name", "address"),
    )

To support functional or expression-based indexes in this form, the
:func:`_expression.text` construct may be used::

    from sqlalchemy import text

    Table(
        "sometable",
        metadata,
        Column("name", String(50)),
        Column("address", String(100)),
        Index("some_index", text("lower(name)")),
    )

.. seealso::

    :ref:`schema_indexes` - General information on :class:`.Index`.

    :ref:`postgresql_indexes` - PostgreSQL-specific options available for
    the :class:`.Index` construct.

    :ref:`mysql_indexes` - MySQL-specific options available for the
    :class:`.Index` construct.

    :ref:`mssql_indexes` - MSSQL-specific options available for the
    :class:`.Index` construct.

r  r  rr   z0_typing_Sequence[Union[str, ColumnElement[Any]]]expressionsz$_typing_Sequence[ColumnElement[Any]]r  FN)r  r   r   r  r  c                  S=U l         n	[        R                  " X5      U l        X l        Ub  X@l        Ub  Un	U R                  U5        / U l        [        R                  " U /UQ7UU R                  S.6  U	b  U R                  U	5        gg)a  Construct an index object.

:param name:
  The name of the index

:param \*expressions:
  Column expressions to include in the index.   The expressions
  are normally instances of :class:`_schema.Column`, but may also
  be arbitrary SQL expressions which ultimately refer to a
  :class:`_schema.Column`.

:param unique=False:
    Keyword only argument; if True, create a unique index.

:param quote=None:
    Keyword only argument; whether to apply quoting to the name of
    the index.  Works in the same manner as that of
    :paramref:`_schema.Column.quote`.

:param info=None: Optional data dictionary which will be populated
    into the :attr:`.SchemaItem.info` attribute of this object.

:param \**dialect_kw: Additional keyword arguments not mentioned above
    are dialect specific, and passed in the form
    ``<dialectname>_<argname>``. See the documentation regarding an
    individual dialect at :ref:`dialect_toplevel` for detail on
    documented arguments.

N)r  r  )rr   r,   rL  rj   r  r   r2  rG  r  r   r  )
r   rj   r  r   r   r  r  rG  rn  rr   s
             rg   r   Index.__init__n  s    P "!
U))$6	I E%%j1 	&&	
	
 & $ 0 0		
 U# rf   c           	        Un[        U[        5      (       d   e[        R                  X5        U R                  bV  X0R                  LaH  [
        R                  " SU R                   SU R                  R                   SUR                   S35      eX0l        UR                  R                  U 5        U R                  nU R                  U5      n[        U5      [        U5      :X  d   e/ n[        XE5       HC  u  px[        U[        5      (       a  UR!                  U5        M-  Ub  UR!                  U5        MC   e   U=U l        U l        g )NzIndex 'z' is against table 'z(', and cannot be associated with table 'r  )rp   rW   r  r  rr   r3   r   rj   rj  r   rn  rG  r  r  r  r)   r  r  )	r   r  rv   rr   rG  col_expressionsexprsr  colexprs	            rg   r  Index._set_parent  s,   %''''))$6::!e::&=##$)) %JJ**+ ,4494E4E3FbJ 
 
$&&//6;3#7777 >MD$..T"$W%u ? <A@48rf   c                @    UR                  [        R                  XS9  g)zIssue a ``CREATE`` statement for this
:class:`.Index`, using the given
:class:`.Connection` or :class:`.Engine`` for connectivity.

.. seealso::

    :meth:`_schema.MetaData.create_all`.

r  Nr  r  s      rg   r  Index.create  s     	c114Orf   c                @    UR                  [        R                  XS9  g)zIssue a ``DROP`` statement for this
:class:`.Index`, using the given
:class:`.Connection` or :class:`.Engine` for connectivity.

.. seealso::

    :meth:`_schema.MetaData.drop_all`.

r  Nr  r  s      rg   r  
Index.drop  r  rf   c           
         SSR                  [        U R                  5      /U R                   Vs/ s H  n[        U5      PM     sn-   U R                  =(       a    S/=(       d    / -   5      -  $ s  snf )Nz	Index(%s)r`  zunique=True)rc  rd  rj   rG  r  )r   es     rg   r   Index.__repr__  sk     IIdii!$($4$45$4q47$456;;2M?8b:
 	
 6s   A0)r  rG  r   rj   rr   r  )rj   r   rG  r?   r  r   r   r  r   rX  r  r  r  r   rn  r   r{   r   r  r  r  r   )r^   r_   r`   ra   r   r   r   r   r  r  r  r   re   r]   rf   rg   r  r    s    IV NAABB  $$("&"@$@$ )@$ 	@$
 @$ "@$  @$ @$ @$ 
@$DA8
P
N	
rf   r  c                  H    \ rS rSr% S\S'   S\S'   S\S'   S\S'   S\S'   Srg	)
_NamingSchemaTDi  _NamingSchemaDirectiver  pkixckuqr]   N)r^   r_   r`   ra   r   re   r]   rf   rg   rW  rW    s     rf   rW  F)totalrZ  zix_%(column_0_label)s_NamingSchemaParameterDEFAULT_NAMING_CONVENTIONc                     \ rS rSr% SrSr    S         SS jjrS\S'    SS jrSS	 jr	        SS
 jr
SS jrSS jrSS jrS S jrS!S jr\S"S j5       r\      S#                 S$S jj5       r\      S#                 S%S jj5       r\R*                  " S5            S&                 S'S jj5       r  S(       S)S jjr  S(       S)S jjrSrg)*r~  i  a  A collection of :class:`_schema.Table`
objects and their associated schema
constructs.

Holds a collection of :class:`_schema.Table` objects as well as
an optional binding to an :class:`_engine.Engine` or
:class:`_engine.Connection`.  If bound, the :class:`_schema.Table` objects
in the collection and their columns may participate in implicit SQL
execution.

The :class:`_schema.Table` objects themselves are stored in the
:attr:`_schema.MetaData.tables` dictionary.

:class:`_schema.MetaData` is a thread-safe object for read operations.
Construction of new tables within a single :class:`_schema.MetaData`
object,
either explicitly or via reflection, may not be completely thread-safe.

.. seealso::

    :ref:`metadata_describing` - Introduction to database metadata

r   Nc                   Ub8  [        U[        5      (       d#  [        R                  " S[	        U5       S35      e[
        R                  " 5       U l        [        R                  " X5      U l
        U(       a  UO[        U l        U(       a  X@l        [        5       U l        0 U l        ["        R$                  " [&        5      U l        g)ap  Create a new MetaData object.

:param schema:
   The default schema to use for the :class:`_schema.Table`,
   :class:`.Sequence`, and potentially other objects associated with
   this :class:`_schema.MetaData`. Defaults to ``None``.

   .. seealso::

        :ref:`schema_metadata_schema_name` - details on how the
        :paramref:`_schema.MetaData.schema` parameter is used.

        :paramref:`_schema.Table.schema`

        :paramref:`.Sequence.schema`

:param quote_schema:
    Sets the ``quote_schema`` flag for those :class:`_schema.Table`,
    :class:`.Sequence`, and other objects which make usage of the
    local ``schema`` name.

:param info: Optional data dictionary which will be populated into the
    :attr:`.SchemaItem.info` attribute of this object.

:param naming_convention: a dictionary referring to values which
  will establish default naming conventions for :class:`.Constraint`
  and :class:`.Index` objects, for those objects which are not given
  a name explicitly.

  The keys of this dictionary may be:

  * a constraint or Index class, e.g. the :class:`.UniqueConstraint`,
    :class:`_schema.ForeignKeyConstraint` class, the :class:`.Index`
    class

  * a string mnemonic for one of the known constraint classes;
    ``"fk"``, ``"pk"``, ``"ix"``, ``"ck"``, ``"uq"`` for foreign key,
    primary key, index, check, and unique constraint, respectively.

  * the string name of a user-defined "token" that can be used
    to define new naming tokens.

  The values associated with each "constraint class" or "constraint
  mnemonic" key are string naming templates, such as
  ``"uq_%(table_name)s_%(column_0_name)s"``,
  which describe how the name should be composed.  The values
  associated with user-defined "token" keys should be callables of the
  form ``fn(constraint, table)``, which accepts the constraint/index
  object and :class:`_schema.Table` as arguments, returning a string
  result.

  The built-in names are as follows, some of which may only be
  available for certain types of constraint:

    * ``%(table_name)s`` - the name of the :class:`_schema.Table`
      object
      associated with the constraint.

    * ``%(referred_table_name)s`` - the name of the
      :class:`_schema.Table`
      object associated with the referencing target of a
      :class:`_schema.ForeignKeyConstraint`.

    * ``%(column_0_name)s`` - the name of the :class:`_schema.Column`
      at
      index position "0" within the constraint.

    * ``%(column_0N_name)s`` - the name of all :class:`_schema.Column`
      objects in order within the constraint, joined without a
      separator.

    * ``%(column_0_N_name)s`` - the name of all
      :class:`_schema.Column`
      objects in order within the constraint, joined with an
      underscore as a separator.

    * ``%(column_0_label)s``, ``%(column_0N_label)s``,
      ``%(column_0_N_label)s`` - the label of either the zeroth
      :class:`_schema.Column` or all :class:`.Columns`, separated with
      or without an underscore

    * ``%(column_0_key)s``, ``%(column_0N_key)s``,
      ``%(column_0_N_key)s`` - the key of either the zeroth
      :class:`_schema.Column` or all :class:`.Columns`, separated with
      or without an underscore

    * ``%(referred_column_0_name)s``, ``%(referred_column_0N_name)s``
      ``%(referred_column_0_N_name)s``,  ``%(referred_column_0_key)s``,
      ``%(referred_column_0N_key)s``, ...  column tokens which
      render the names/keys/labels of columns that are referenced
      by a  :class:`_schema.ForeignKeyConstraint`.

    * ``%(constraint_name)s`` - a special key that refers to the
      existing name given to the constraint.  When this key is
      present, the :class:`.Constraint` object's existing name will be
      replaced with one that is composed from template string that
      uses this token. When this token is present, it is required that
      the :class:`.Constraint` is given an explicit name ahead of time.

    * user-defined: any additional token may be implemented by passing
      it along with a ``fn(constraint, table)`` callable to the
      naming_convention dictionary.

  .. versionadded:: 1.3.0 - added new ``%(column_0N_name)s``,
     ``%(column_0_N_name)s``, and related tokens that produce
     concatenations of names, keys, or labels for all columns referred
     to by a given constraint.

  .. seealso::

        :ref:`constraint_naming_conventions` - for detailed usage
        examples.

Nz-expected schema argument to be a string, got ri   )rp   r   r3   r   r  r5   
FacadeDictr   r,   rL  rk   r_  naming_conventionr   r  _schemasr\  collectionsdefaultdictr  r  )r   rk   r   rc  r   s        rg   r   MetaData.__init__'  s    r j&=&=##F|nA'  oo'!++FA ! * 	
 I"%%/1##D) 	rf   zutil.FacadeDict[str, Table]r   c                    g)Nz
MetaData()r]   r   s    rg   r   MetaData.__repr__  s    rf   c                `    [        U[        5      (       d  UR                  nXR                  ;   $ ro   )rp   r   rs   r   )r   table_or_keys     rg   r  MetaData.__contains__  s'    ,,,'++L{{**rf   c                    [        X5      nU R                  R                  XC5        U(       a  U R                  R	                  U5        g g ro   )rl   r   _insert_itemrd  rn  )r   rj   rk   rr   rs   s        rg   r   MetaData._add_table  s:     T*  ,MMf% rf   c                h   [        X5      n[        R                  U R                  US 5      nUb$  UR                   H  nUR                  U 5        M     U R                  (       aI  U R                  R                  5        Vs1 s H  ofR                  c  M  UR                  iM     snU l        g g s  snf ro   )	rl   dictr   r   r   r  rd  r  rk   )r   rj   rk   rs   removedr  ts          rg   r   MetaData._remove_table  s    T*((4;;T2**((. +=="&++"4"4"6"6Q(("6DM s   B/B/c                    U R                   U R                  U R                  U R                  U R                  U R
                  S.$ )N)r   rk   schemas	sequencesfk_memosrc  )r   rk   rd  r\  r  rc  r   s    rg   __getstate__MetaData.__getstate__  s8    kkkk}}!%!7!7
 	
rf   c                |    US   U l         US   U l        US   U l        US   U l        US   U l        US   U l        g )Nr   rk   rc  rw  rv  rx  )r   rk   rc  r\  rd  r  )r   r   s     rg   __setstate__MetaData.__setstate__  sJ    HoHo!&':!;,i(z*rf   c                    [         R                  U R                  5        U R                  R                  5         U R                  R                  5         g)z+Clear all Table objects from this MetaData.N)rq  clearr   rd  r  r   s    rg   r  MetaData.clear  s4     	

4;;rf   c                P    U R                  UR                  UR                  5        g)z1Remove the given Table object from this MetaData.N)r   rj   rk   ro  s     rg   r-  MetaData.remove  s     	5::u||4rf   c                p    [         R                  " [        U R                  R	                  5       S S95      $ )a  Returns a list of :class:`_schema.Table` objects sorted in order of
foreign key dependency.

The sorting will place :class:`_schema.Table`
objects that have dependencies
first, before the dependencies themselves, representing the
order in which they can be created.   To get the order in which
the tables would be dropped, use the ``reversed()`` Python built-in.

.. warning::

    The :attr:`.MetaData.sorted_tables` attribute cannot by itself
    accommodate automatic resolution of dependency cycles between
    tables, which are usually caused by mutually dependent foreign key
    constraints. When these cycles are detected, the foreign keys
    of these tables are omitted from consideration in the sort.
    A warning is emitted when this condition occurs, which will be an
    exception raise in a future release.   Tables which are not part
    of the cycle will still be returned in dependency order.

    To resolve these cycles, the
    :paramref:`_schema.ForeignKeyConstraint.use_alter` parameter may be
    applied to those constraints which create a cycle.  Alternatively,
    the :func:`_schema.sort_tables_and_constraints` function will
    automatically return foreign key constraints in a separate
    collection when cycles are detected so that they may be applied
    to a schema separately.

    .. versionchanged:: 1.3.17 - a warning is emitted when
       :attr:`.MetaData.sorted_tables` cannot perform a proper sort
       due to cyclical dependencies.  This will be an exception in a
       future release.  Additionally, the sort will continue to return
       other tables not involved in the cycle in dependency order which
       was not the case previously.

.. seealso::

    :func:`_schema.sort_tables`

    :func:`_schema.sort_tables_and_constraints`

    :attr:`_schema.MetaData.tables`

    :meth:`_reflection.Inspector.get_table_names`

    :meth:`_reflection.Inspector.get_sorted_table_and_fkc_names`


c                    U R                   $ ro   r!  )rs  s    rg   r  (MetaData.sorted_tables.<locals>.<lambda>3  s    quurf   r!  )r   sort_tablesr"  r   r  r   s    rg   sorted_tablesMetaData.sorted_tables  s-    f 4;;%%'_=
 	
rf   c                    g ro   r]   	r   r  rk   viewsonlyr   r   r   r  s	            rg   reflectMetaData.reflect8       rf   c                    g ro   r]   r  s	            rg   r  r  G  r  rf   zsqlalchemy.engine.reflectionc           
        [         R                  " U5      R                  5        n	U	UUU[        5       S.n
U
R	                  U5        Uc  U R
                  nUb  X*S'   [        R                  R                  R                  R                  n[        R                  " U	R                  U5      5      nU(       ao  [        R                  R                  R                  R                  nUR	                  U	R                  U5      5         UR	                  U	R                  U5      5        Ub,  [        R                  " U Vs/ s H	  o SU 3PM     sn5      nOUn[        U R"                  5      nUc0  [%        X5       VVs/ s H  u  nnU(       d  UU;  d  M  UPM     nnnO['        U5      (       a?  [%        X5       VVs/ s H&  u  nnU(       d  UU;  d  M  U" X5      (       d  M$  UPM(     nnnOU Vs/ s H  oU;  d  M
  UPM     nnU(       aR  U=(       a    SU-  =(       d    SnSR)                  U5      n[*        R,                  " SUR.                  < U S	U S
35      eU Vs/ s H  nU(       d  X;  d  M  UPM     nnU	R0                  " SUUUU[        R                  R                  R2                  R                  S.UD6nUU
S'   U H  n [5        X40 U
D6  M     SSS5        g! [          a     GNf = fs  snf s  snnf s  snnf s  snf s  snf ! [*        R6                   a'  n[        R8                  " SU SU 35         SnAM  SnAff = f! , (       d  f       g= f)a.  Load all available table definitions from the database.

Automatically creates ``Table`` entries in this ``MetaData`` for any
table available in the database but not yet present in the
``MetaData``.  May be called multiple times to pick up tables recently
added to the database, however no special action is taken if a table
in this ``MetaData`` no longer exists in the database.

:param bind:
  A :class:`.Connection` or :class:`.Engine` used to access the
  database.

:param schema:
  Optional, query and reflect tables from an alternate schema.
  If None, the schema associated with this :class:`_schema.MetaData`
  is used, if any.

:param views:
  If True, also reflect views (materialized and plain).

:param only:
  Optional.  Load only a sub-set of available named tables.  May be
  specified as a sequence of names or a callable.

  If a sequence of names is provided, only those tables will be
  reflected.  An error is raised if a table is requested but not
  available.  Named tables already present in this ``MetaData`` are
  ignored.

  If a callable is provided, it will be used as a boolean predicate to
  filter the list of potential table names.  The callable is called
  with a table name and this ``MetaData`` instance as positional
  arguments and should return a true value for any table to reflect.

:param extend_existing: Passed along to each :class:`_schema.Table` as
  :paramref:`_schema.Table.extend_existing`.

:param autoload_replace: Passed along to each :class:`_schema.Table`
  as
  :paramref:`_schema.Table.autoload_replace`.

:param resolve_fks: if True, reflect :class:`_schema.Table`
 objects linked
 to :class:`_schema.ForeignKey` objects located in each
 :class:`_schema.Table`.
 For :meth:`_schema.MetaData.reflect`,
 this has the effect of reflecting
 related tables that might otherwise not be in the list of tables
 being reflected, for example if the referenced table is in a
 different schema or is omitted via the
 :paramref:`.MetaData.reflect.only` parameter.  When False,
 :class:`_schema.ForeignKey` objects are not followed to the
 :class:`_schema.Table`
 in which they link, however if the related table is also part of the
 list of tables that would be reflected in any case, the
 :class:`_schema.ForeignKey` object will still resolve to its related
 :class:`_schema.Table` after the :meth:`_schema.MetaData.reflect`
 operation is
 complete.   Defaults to True.

 .. versionadded:: 1.3.0

 .. seealso::

    :paramref:`_schema.Table.resolve_fks`

:param \**dialect_kwargs: Additional keyword arguments not mentioned
 above are dialect specific, and passed in the form
 ``<dialectname>_<argname>``.  See the documentation regarding an
 individual dialect at :ref:`dialect_toplevel` for detail on
 documented arguments.

.. seealso::

    :ref:`metadata_reflection_toplevel`

    :meth:`_events.DDLEvents.column_reflect` - Event used to customize
    the reflected columns. Usually used to generalize the types using
    :meth:`_types.TypeEngine.as_generic`

    :ref:`metadata_reflection_dbagnostic_types` - describes how to
    reflect tables using general types.

)r   r   r   r   r   Nrk   ri   z schema '%s'r  r`  z7Could not reflect: requested table(s) not available in z: (r  )rk   filter_names	availablekindscoper  zSkipping table z: r]   )r4   r  r  r  r:  rk   r5   r  engine_reflection
ObjectKindTABLE
OrderedSetget_table_namesANYget_view_namesget_materialized_view_namesr  r   r  r  rc  r3   r   engine_get_reflection_infoObjectScoperW   UnreflectableTableErrorr  )r   r  rk   r  r  r   r   r   r  r  reflect_optsr  r  rj   available_w_schemacurrentschnameloadmissingsmissing_strr  uerrs                          rg   r  r  V  sG   F %99;t!%#2$4*!e!L /~!)/X&>>33>>DDD.2oo$$V,/I ~~77BBFF  !4!4V!<=$$T%E%Ef%MN !;???4=>IDxq'I><" &/"$++&G| *-Y)K)Kg&'*@ )K  
 $ *-Y)K)Kg'7'+A  T( )K   -1JDD	4I4DJ<NV$;BA"&))G"4K11"kk_QCs;-qB  !% $&$*=  $   !55 !#nn66BBFF !M -:L)@$55 [ <;4 + 
 ? K( 22 @IIvRv>??@a <;s   C M K(&M=K9
0M=K>K>"M=LL$L*M2	L
?L
AM$L8L>AMLM(
K62M5K66MM(M
M
MM
M c                B    UR                  [        R                  XUS9  g)a  Create all tables stored in this metadata.

Conditional by default, will not attempt to recreate tables already
present in the target database.

:param bind:
  A :class:`.Connection` or :class:`.Engine` used to access the
  database.

:param tables:
  Optional list of ``Table`` objects, which is a subset of the total
  tables in the ``MetaData`` (others are ignored).

:param checkfirst:
  Defaults to True, don't issue CREATEs for tables already present
  in the target database.

r  r   Nr  r   r  r   r  s       rg   
create_allMetaData.create_all  s$    0 	V 	 	
rf   c                B    UR                  [        R                  XUS9  g)a  Drop all tables stored in this metadata.

Conditional by default, will not attempt to drop tables not present in
the target database.

:param bind:
  A :class:`.Connection` or :class:`.Engine` used to access the
  database.

:param tables:
  Optional list of ``Table`` objects, which is a subset of the
  total tables in the ``MetaData`` (others are ignored).

:param checkfirst:
  Defaults to True, only issue DROPs for tables confirmed to be
  present in the target database.

r  Nr  r  s       rg   drop_allMetaData.drop_all(  s$    0 	t6 	 	
rf   )r  rd  r\  r   rc  rk   r   )NNNN)
rk   r   r   r  rc  z Optional[_NamingSchemaParameter]r   rX  r{   r   r   )rk  zUnion[str, Table]r{   r   )rj   r   rk   r   rr   rW   r{   r   )rj   r   rk   r   r{   r   )r{   Dict[str, Any])r   r  r{   r   r  r  )r{   zList[Table])......)r  rL   rk   r   r  r   r  CUnion[_typing_Sequence[str], Callable[[str, MetaData], bool], None]r   r   r   r   r   r   r  r   r{   r   )r  rK   rk   r   r  r   r  r  r   r   r   r   r   r   r  r   r{   r   )NFNFTT)r  r  rk   r   r  r   r  r  r   r   r   r   r   r   r  r   r{   r   )NT)r  r>   r   z!Optional[_typing_Sequence[Table]]r  r   r{   r   )r^   r_   r`   ra   r   r   r   r   r   r  r   r   ry  r|  r  r-  r  r  r   r  r5   r  r  r  re   r]   rf   rg   r~  r~    s   0  N !%'+>B$(K
K
 %K
 <	K

 "K
 
K
Z ('"+
&&!.&7<&	&	
+5
 4
 4
p  !$  #!$  	

     
   !$  #!$  	

     
  
78 !%  %!% s@'s@ s@ 	s@

s@ s@ s@ s@ s@ 
s@ 9s@p 59	

 2
 	

 

> 59	

 2
 	

 

 
rf   r~  c                      \ rS rSr% SrSrS\S'   \" SSS5       S     SS
 jj5       rSS jr	SS jr
\R                  " SS5      S	S.     SS jj5       rS	S.     SS jjrSrg	)r1  iE  a  Defines a generated column, i.e. "GENERATED ALWAYS AS" syntax.

The :class:`.Computed` construct is an inline construct added to the
argument list of a :class:`_schema.Column` object::

    from sqlalchemy import Computed

    Table(
        "square",
        metadata_obj,
        Column("side", Float, nullable=False),
        Column("area", Float, Computed("side * side")),
    )

See the linked documentation below for complete details.

.. versionadded:: 1.3.11

.. seealso::

    :ref:`computed_ddl`

computed_columnr   rt  r  z:class:`.Computed`z:paramref:`.Computed.sqltext`Nc                r    [         R                  " [        R                  U5      U l        X l        SU l        g)a[  Construct a GENERATED ALWAYS AS DDL construct to accompany a
:class:`_schema.Column`.

:param sqltext:
  A string containing the column generation expression, which will be
  used verbatim, or a SQL expression construct, such as a
  :func:`_expression.text`
  object.   If given as a string, the object is converted to a
  :func:`_expression.text` object.

:param persisted:
  Optional, controls how this column should be persisted by the
  database.   Possible values are:

  * ``None``, the default, it will use the default persistence
    defined by the database.
  * ``True``, will render ``GENERATED ALWAYS AS ... STORED``, or the
    equivalent for the target database if supported.
  * ``False``, will render ``GENERATED ALWAYS AS ... VIRTUAL``, or
    the equivalent for the target database if supported.

  Specifying ``True`` or ``False`` may raise an error when the DDL
  is emitted to the target database if the database does not support
  that persistence option.   Leaving this parameter at its default
  of ``None`` is guaranteed to succeed for all databases that support
  ``GENERATED ALWAYS AS``.

N)r   rL  r   r  r  	persistedrt  )r   r  r  s      rg   r   Computed.__init__b  s+    D !''(?(?I"rf   c                ^   [        U[        5      (       d   e[        UR                  [        S 5      [        45      (       a*  [        UR
                  [        S 5      [        45      (       d  [        R                  " S5      eXl        Xl	        X R                  l        X R                  l        g )NzPA generated column cannot specify a server_default or a server_onupdate argument)
rp   rq   rE  r  r1  r  r3   r   rt  r  r  s      rg   r  Computed._set_parent  s    &&))))!!DJ#9
 
F22T$Z4JKK##+  &*#%)"rf   c                    U $ ro   r]   r  s     rg   r  Computed._as_for_update      rf   r   z_The :meth:`_schema.Computed.copy` method is deprecated and will be removed in a future release.r  c               *    U R                   " SSU0UD6$ r  r(  r  s      rg   r   Computed.copy  r  rf   c                   [        U R                  U R                  b  U R                  R                  OS U5      n[	        X0R
                  S9nU R                  U5      $ )N)r  )r   r  rt  rr   r1  r  r   )r   r   rv   r  gs        rg   r  Computed._copy  sQ     #LL!%!8DKKd

 W7%%a((rf   )rt  r  r  ro   )r  r?   r  r  r{   r   r  rt  )r   r  rv   r   r{   r1  )r^   r_   r`   ra   r   r   r   r(   r   r  r  r5   r  r   r  re   r]   rf   rg   r1  r1  E  s    0 'N!!')H HL!)!6D!	!!F* 
__	3 26;.;=@;	;
; 26
).
)=@
)	
) 
)rf   r1  c                      \ rS rSrSrSrSr           S                       SS jjrSS jrSS jr	\
R                  " S	S
5      SS j5       rSS jrSrg)r2  i  a  Defines an identity column, i.e. "GENERATED { ALWAYS | BY DEFAULT }
AS IDENTITY" syntax.

The :class:`.Identity` construct is an inline construct added to the
argument list of a :class:`_schema.Column` object::

    from sqlalchemy import Identity

    Table(
        "foo",
        metadata_obj,
        Column("id", Integer, Identity()),
        Column("description", Text),
    )

See the linked documentation below for complete details.

.. versionadded:: 1.4

.. seealso::

    :ref:`identity_ddl`

identity_columnTNc                b    [         R                  U UUUUUUU	U
US9
  Xl        X l        SU l        g)aA  Construct a GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY DDL
construct to accompany a :class:`_schema.Column`.

See the :class:`.Sequence` documentation for a complete description
of most parameters.

.. note::
    MSSQL supports this construct as the preferred alternative to
    generate an IDENTITY on a column, but it uses non standard
    syntax that only support :paramref:`_schema.Identity.start`
    and :paramref:`_schema.Identity.increment`.
    All other parameters are ignored.

:param always:
  A boolean, that indicates the type of identity column.
  If ``False`` is specified, the default, then the user-specified
  value takes precedence.
  If ``True`` is specified, a user-specified value is not accepted (
  on some backends, like PostgreSQL, OVERRIDING SYSTEM VALUE, or
  similar, may be specified in an INSERT to override the sequence
  value).
  Some backends also have a default value for this parameter,
  ``None`` can be used to omit rendering this part in the DDL. It
  will be treated as ``False`` if a backend does not have a default
  value.

:param on_null:
  Set to ``True`` to specify ON NULL in conjunction with a
  ``always=False`` identity column. This option is only supported on
  some backends, like Oracle Database.

:param start: the starting index of the sequence.
:param increment: the increment value of the sequence.
:param minvalue: the minimum value of the sequence.
:param maxvalue: the maximum value of the sequence.
:param nominvalue: no minimum value of the sequence.
:param nomaxvalue: no maximum value of the sequence.
:param cycle: allows the sequence to wrap around when the maxvalue
 or minvalue has been reached.
:param cache: optional integer value; number of future values in the
 sequence which are calculated in advance.
:param order: optional boolean value; if true, renders the
 ORDER keyword.

r9  N)r7  r   alwayson_nullrt  )r   r  r  r:  r;  r<  r=  r>  r?  r@  rA  rB  s               rg   r   Identity.__init__  sI    v 	  !! 	! 	
 rf   c                   [        U[        5      (       d   e[        UR                  [        S 5      [        45      (       a$  [        UR
                  [        S 5      5      (       d  [        R                  " S5      eUR                  SL a  [        R                  " S5      eXl	        Xl
        UR                  [        L a  SUl        Xl        g )Nz^A column with an Identity object cannot specify a server_default or a server_onupdate argumentFzCA column with an Identity object cannot specify autoincrement=False)rp   rq   rE  r  r2  r  r3   r   r  rt  rB  r  rd   rF  r  s      rg   r  Identity._set_parent  s    &&))))!!DJ#9
 
F22DJ??##?  5(##&  ((,<<#FO $rf   c                    U $ ro   r]   r  s     rg   r  Identity._as_for_update0  r  rf   r   z_The :meth:`_schema.Identity.copy` method is deprecated and will be removed in a future release.c                &    U R                   " S0 UD6$ r'  r(  r)  s     rg   r   Identity.copy3  r+  rf   c                &   [        U R                  U R                  U R                  U R                  U R
                  U R                  U R                  U R                  U R                  U R                  U R                  S9nU R                  U5      $ )N)r  r  r:  r;  r<  r=  r>  r?  r@  rA  rB  )r2  r  r  r:  r;  r<  r=  r>  r?  r@  rA  rB  r   )r   rv   is      rg   r  Identity._copy;  sl    ;;LL**nn]]]]******
 %%a((rf   )r  rt  r  )FNNNNNNNNNN)r  r   r  r  r:  rF  r;  rF  r<  rF  r=  rF  r>  r  r?  r  r@  r  rA  rF  rB  r  r{   r   r  rt  )rv   r   r{   r2  )r^   r_   r`   ra   r   r   r  r   r  r  r5   r  r   r  re   r]   rf   rg   r2  r2    s    2 'NK "&##'"&"&%)%) $# $II  I 	I
 !I  I  I #I #I I I I 
IV%, 
__	3
 
 )rf   r2  )rj   r   rk   r   r{   r   )r}   r  r~   r  r   r  r{   r  rV  )
rj   r   r  rW  r   r   r_  r   r{   rZ  )r  Optional[DefaultGenerator]r{   zTypeGuard[Sequence])r  r  r{   z%TypeGuard[ColumnElementColumnDefault])r  r  r{   z%TypeGuard[ScalarElementColumnDefault])r   
__future__r   abcr   re  enumr   operatorr  r   r   r   r	   r
   r   r   r   r   r   r   r   r   r  r   r   r   r   r   r  r   r   r   r   r   baser   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r  r)   r*   r+   r,   r-   rP  r.   r/   r0   r2   r3   r4   r5   r6   util.typingr7   r8   r9   r:   r;   r<   _typingr=   r>   r?   r@   rA   rB   rC   rD   r  rE   rF   rG   	functionsrH   rI   rJ   r  rK   rL   engine.interfacesrM   rN   rO   engine.reflectionrP   sql.selectablerQ   rR   rT   rV   r   r  _ServerDefaultArgument_ServerOnUpdateArgumentrZ   rb   r   rc   rd   rl   r   _self_inspectsrU   r   r   InspectablerW   rq   r  rJ  rJ  r  r  
attrgetterr  r  r  rb  r  r  r  r  r7  rX   r  r  r  r  r  r  r  r  r  _NamingSchemaCallablerX  rW  r^  immutabledictr_  r~  r1  r2  r]   rf   rg   <module>r     s)  . #                  /            *   1 2 (   8 4 . # " # !   # ! +       ! "  # #	+(+"7,.%',#$"#;?43+Te<(vW% #5i#89 C]3%77  1 $ F  8   6     > 
#"! " 	: * * *Z0 0fJ Y-=+z/E/Eg/NY-x$s]JR(8 sn% /3/ "!%/
/,/ 	/
 / /dw-
 w-t "'"	"4'4	.44'4	.4
 #--m< ( 3 34G H ++K8<
z: <
~R:$c R:j
 
(#.= #.L :;@ @@>X >1M 1h6A 6Ar\
}o/? \
~ 9'$ 9' 9'x)PL )PXp$ 1: p$fQ' Q'hy"!6
 y"xl)0 l)^s+5 s+l	i5 iX	)1 	)S
(*;ZS
l !*e!4c!9: s$99: iu    C''(	*  594F4F	"#5 1 
v
} v
ri)|Z i)XY)j Y)rf   