U kf @s"dZddlmZddlZddlmZddlmZddlm Z ddl m Z dd l m Z dd l m Z dd l mZdd l mZdd l mZddl mZddl mZddlmZddlmZGdddZedede dedediZddZddZeeddd Zee d!eed!d"d#ZdS)$z5Establish constraint and index naming conventions. ) annotationsN)events) _NONE_NAME)conv)CheckConstraint)Column) Constraint)ForeignKeyConstraint)Index)PrimaryKeyConstraint)Table)UniqueConstraint)event)excc@s\eZdZddZddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ dS)ConventionDictcCs*||_t|t|_||_||_|j|_dSN)const isinstancer _is_fktable conventionname _const_name)selfrrrrE/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/sql/naming.py__init__"s  zConventionDict.__init__cCs|jjSr)rrrrrr_key_table_name)szConventionDict._key_table_namecCsz|jr||jkr|j||j|jSt|d|rz"_constraint_name..) rrrlistenr rrrrZ)rrr[rr_rr^s    r^)__doc__ __future__rrAr!rbaserr"rZschemarrr r r r r rrrrrVrWrZZ listens_forr\r^rrrr sJ              e