U
    ǽb5(                     @   s  d ddddZ G dd dZG dd dZe Zeed dd	d
 eedddd eedddd
 eedddd
 eedddd eedddd
 eedddd
 eedddd
 eedddd
 eed d!d"d
 eed#d$d%d
 eed&d'd(d
 eed)d*d+d
 eed,d-d.d eed/dd0d eed1d2d3d
 eed4d5d6d
 eed7d8d9d
 eed:d;d<d eed=dd>d eed?d@dAd
 eedBd-dCd eedDdEdFd
 eedGdHdId
 eedJdKdLd
 eedMddNd eedOdPdQd
 eedRdSdTd eedUdVdWd
 eedXddYd eedZd[d\d
 eed]d^d_d
 eed`dKdad eedbdcddd
 eededfdgd
 eedhdidjd
 eedkdldmd
 eedndodpd
 eedqd;drd
 eedsd;dtd eedudidvd eedwdKdxd eedydzd{d
 eed|dzd}d eed~ddd eedddd eedddd eedd-dd eedd-dd
 eedd-dd eeddldd eedddd
 eeddSdd eeddSdd
 eedddd
 eedd[dd eedd$dd eeddKdd eedddd eeddcdd eedddd eeddHdd eedd2dd eedddd eeddfdd eedddd eedd@dd eedd^dd eedddd eeddVdd eedd;dd eedddd eeddodd eedd!dd eedd^dd eedddd eedd8dd eeddEdd eeddPdd eedd*dd eedd5dd eedd'dd eedddd
 eedddd eedddd eedddd
 eedddd eedddd
 eedddd eeddKdd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eed d^dd eedd^dd eedd^dd eedd^dd eedd^d	d eed
d^dd eedd^dd eedd^dd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eed dzd!d eed"dzd#d eed$dzd%d eed&dzd'd eed(dzd)d eed*dzd+d eed,dzd-d eed.dzd/d eed0dzd1d eed2dzd3d eed4dzd5d eed6dzd7d eed8dzd9d eed:dzd;d eed<dzd=d eed>dzd?d eed@dAdBd
 eedCdAdDd eedEdAdFd eedGdzdHd ejZejZdIS (J           )   !   X   [   c                   @   s4   e Zd Zdd Zdd Zedd Zedd Zd	S )
Charsetc                 C   s$   |||  | _ | _| _|dk| _d S )NYes)idname	collation
is_default)selfr
   r   r   r    r   3/tmp/pip-unpacked-wheel-ngqejxwl/pymysql/charset.py__init__   s    zCharset.__init__c                 C   s   d| j | j| jf S )Nz%Charset(id=%s, name=%r, collation=%r))r
   r   r   r   r   r   r   __repr__	   s
    zCharset.__repr__c                 C   s:   | j }|dkrdS |dkrdS |dkr*dS |dkr6dS |S )	N)utf8mb4Zutf8mb3utf8latin1cp1252koi8rkoi8_rkoi8ukoi8_u)r   r   r   r   r   r   encoding   s    zCharset.encodingc                 C   s
   | j dkS )N?   )r
   r   r   r   r   	is_binary   s    zCharset.is_binaryN)__name__
__module____qualname__r   r   propertyr   r   r   r   r   r   r      s   
r   c                   @   s,   e Zd Zdd Zdd Zdd Zdd Zd	S )
Charsetsc                 C   s   i | _ i | _d S N)_by_id_by_namer   r   r   r   r   #   s    zCharsets.__init__c                 C   s"   || j |j< |jr|| j|j< d S r%   )r&   r
   r   r'   r   )r   cr   r   r   add'   s    zCharsets.addc                 C   s
   | j | S r%   )r&   )r   r
   r   r   r   by_id,   s    zCharsets.by_idc                 C   s   | j | S r%   )r'   getlowerr   r   r   r   by_name/   s    zCharsets.by_nameN)r    r!   r"   r   r)   r*   r-   r   r   r   r   r$   "   s   r$   big5Zbig5_chinese_cir	   latin2Zlatin2_czech_cs Zdec8Zdec8_swedish_ci   cp850Zcp850_general_ci   r   Zlatin1_german1_ci   Zhp8Zhp8_english_ci   r   Zkoi8r_general_cir   Zlatin1_swedish_ci	   Zlatin2_general_ci
   Zswe7Zswe7_swedish_ci   asciiZascii_general_ci   ujisZujis_japanese_ci   sjisZsjis_japanese_ci   cp1251Zcp1251_bulgarian_ci   Zlatin1_danish_ci   hebrewZhebrew_general_ci   tis620Ztis620_thai_ci   euckrZeuckr_korean_ci   latin7Zlatin7_estonian_cs   Zlatin2_hungarian_ci   r   Zkoi8u_general_ci   Zcp1251_ukrainian_ci   gb2312Zgb2312_chinese_ci   greekZgreek_general_ci   cp1250Zcp1250_general_ci   Zlatin2_croatian_ci   gbkZgbk_chinese_ci   cp1257Zcp1257_lithuanian_ci   latin5Zlatin5_turkish_ci   Zlatin1_german2_ci    Zarmscii8Zarmscii8_general_cir   r   Zutf8_general_ci"   Zcp1250_czech_cs$   cp866Zcp866_general_ci%   Zkeybcs2Zkeybcs2_general_ci&   ZmacceZmacce_general_ci'   macromanZmacroman_general_ci(   cp852Zcp852_general_ci)   Zlatin7_general_ci*   Zlatin7_general_cs+   Z	macce_bin,   Zcp1250_croatian_ci-   r   Zutf8mb4_general_ci.   Zutf8mb4_bin/   Z
latin1_bin0   Zlatin1_general_ci1   Zlatin1_general_cs2   Z
cp1251_bin3   Zcp1251_general_ci4   Zcp1251_general_cs5   Zmacroman_bin9   cp1256Zcp1256_general_ci:   Z
cp1257_bin;   Zcp1257_general_cir   binary@   Zarmscii8_binA   Z	ascii_binB   Z
cp1250_binC   Z
cp1256_binD   Z	cp866_binE   Zdec8_binF   Z	greek_binG   Z
hebrew_binH   Zhp8_binI   Zkeybcs2_binJ   Z	koi8r_binK   Z	koi8u_binL   Zutf8_tolower_ciM   Z
latin2_binN   Z
latin5_binO   Z
latin7_binP   Z	cp850_binQ   Z	cp852_binR   Zswe7_binS   Zutf8_binT   Zbig5_binU   Z	euckr_binV   Z
gb2312_binW   Zgbk_binr   Zsjis_binY   Z
tis620_binr   Zujis_bin\   Zgeostd8Zgeostd8_general_ci]   Zgeostd8_bin^   Zlatin1_spanish_ci_   cp932Zcp932_japanese_ci`   Z	cp932_bina   ZeucjpmsZeucjpms_japanese_cib   Zeucjpms_binc   Zcp1250_polish_ci   Zutf8_unicode_ci   Zutf8_icelandic_ci   Zutf8_latvian_ci   Zutf8_romanian_ci   Zutf8_slovenian_ci   Zutf8_polish_ci   Zutf8_estonian_ci   Zutf8_spanish_ci   Zutf8_swedish_ci   Zutf8_turkish_ci   Zutf8_czech_ci   Zutf8_danish_ci   Zutf8_lithuanian_ci   Zutf8_slovak_ci   Zutf8_spanish2_ci   Zutf8_roman_ci   Zutf8_persian_ci   Zutf8_esperanto_ci   Zutf8_hungarian_ci   Zutf8_sinhala_ci   Zutf8_german2_ci   Zutf8_croatian_ci   Zutf8_unicode_520_ci   Zutf8_vietnamese_ci   Zutf8_general_mysql500_ci   Zutf8mb4_unicode_ci   Zutf8mb4_icelandic_ci   Zutf8mb4_latvian_ci   Zutf8mb4_romanian_ci   Zutf8mb4_slovenian_ci   Zutf8mb4_polish_ci   Zutf8mb4_estonian_ci   Zutf8mb4_spanish_ci   Zutf8mb4_swedish_ci   Zutf8mb4_turkish_ci   Zutf8mb4_czech_ci   Zutf8mb4_danish_ci   Zutf8mb4_lithuanian_ci   Zutf8mb4_slovak_ci   Zutf8mb4_spanish2_ci   Zutf8mb4_roman_ci   Zutf8mb4_persian_ci   Zutf8mb4_esperanto_ci   Zutf8mb4_hungarian_ci   Zutf8mb4_sinhala_ci   Zutf8mb4_german2_ci   Zutf8mb4_croatian_ci   Zutf8mb4_unicode_520_ci   Zutf8mb4_vietnamese_ci   gb18030Zgb18030_chinese_ci   Zgb18030_bin   Zgb18030_unicode_520_ci   Zutf8mb4_0900_ai_ciN)	ZMBLENGTHr   r$   Z	_charsetsr)   r-   Zcharset_by_namer*   Zcharset_by_idr   r   r   r   <module>   s(  