Files
serveur-d-authentification/venv/lib/python3.10/site-packages/sqlparse/__pycache__/cli.cpython-310.pyc

44 lines
5.5 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<00>@sZdZddlZddlZddlmZddlZddlmZdd<06>Zdd<08>Z d d
<EFBFBD>Z
d d d <0C>Z dS)aeModule that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will
cause problems: the code will get executed twice:
- When you run `python -m sqlparse` python will execute
``__main__.py`` as a script. That means there won't be any
``sqlparse.__main__`` in ``sys.modules``.
- When you import __main__ it will get executed again (as a module) because
there's no ``sqlparse.__main__`` in ``sys.modules``.
Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
<EFBFBD>N)<01> TextIOWrapper)<01> SQLParseErrorc Cs<>gd<01>}tjdddd<05>}|jdddd <09>|jd
d d d dd<0F>|jdddddd<15>|jddtjd<18>|<01>d<19>}|jdddd|d<1E>d<1F>d d!<21>|D<00><01><01>d"<22>|jd#d$dd%|d&<26>d<1F>d'd!<21>|D<00><01><01>d"<22>|jd(d)d*d+d,d-gd.d"<22>|jd/d0ddd1d<15>|jd2d3d4ddd5d<15>|jd6d7d8td9d:<3A>|jd;d<ddd=d<15>|jd>d?ddd@d<15>|jdAdBdddCdD<64>|jdEdFdddGdD<64>|jdHdIdJtdKd:<3A>|jdLdMdt dNd:<3A>|jdOdPdt dQd:<3A>|jdRdSdTdUdV<64>|S)WN)<03>upper<65>lower<65>
capitalize<EFBFBD> sqlformatzEFormat FILE according to OPTIONS. Use "-" as FILE to read from stdin.z"%(prog)s [OPTIONS] FILE [FILE ...])<03>prog<6F> description<6F>usage<67>filename<6D>+z%file(s) to format (use "-" for stdin))<02>nargs<67>helpz-oz --outfile<6C>outfile<6C>FILEz)write output to FILE (defaults to stdout))<03>dest<73>metavarrz
--in-place<63>inplace<63>
store_trueFz0format files in-place (overwrite existing files))r<00>action<6F>defaultrz --version<6F>version)rrzFormatting Optionsz-kz
--keywords<64>CHOICE<43> keyword_casez,change case of keywords, CHOICE is one of {}z, cs<00><00>|] }d|<01>d<00>VqdS<00><02>"N<><00><02>.0<EFBFBD>xrr<00>o/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/sqlparse/cli.py<70> <genexpr>G<00><02>z create_parser.<locals>.<genexpr>)rr<00>choicesrz-iz --identifiers<72>identifier_casez/change case of identifiers, CHOICE is one of {}csrrrrrrr!r"Or#z-lz
--language<67>LANG<4E> output_format<61>python<6F>phpzJoutput a snippet in programming language LANG, choices are "python", "php"z--strip-comments<74>strip_commentszremove commentsz-rz
--reindent<6E>reindentzreindent statementsz--indent_width<74> indent_width<74>z(indentation width (defaults to 2 spaces))rr<00>typerz--indent_after_first<73>indent_after_firstz2indent after first line of statement (e.g. SELECT)z--indent_columns<6E>indent_columnsz<indent all columns by indent_width instead of keyword lengthz-az--reindent_alignedz%reindent statements to aligned format)rrrz-sz--use_space_around_operatorsz*place spaces around mathematical operatorsz --wrap_after<65>
wrap_afterrz*Column after which lists should be wrappedz --comma_first<73> comma_firstz-Insert linebreak before comma (default False)z --compact<63>compactz2Try to produce more compact output (default False)z
--encoding<6E>encodingzutf-8z*Specify the input encoding (default utf-8))rrr)
<EFBFBD>argparse<73>ArgumentParser<65> add_argument<6E>sqlparse<73> __version__<5F>add_argument_group<75>format<61>join<69>int<6E>bool)<03> _CASE_CHOICES<45>parser<65>grouprrr!<00> create_parsers<06><06><06><06><06>
<02><06><02><06><06><06><06><06><06><06><06><06><06><06><06><06>rBcCstj<01>d|<00>d<02><03>dS)z5Print msg and optionally exit with return code exit_.z[ERROR] <20>
<EFBFBD>)<03>sys<79>stderr<72>write)<01>msgrrr!<00>_error<6F>srIc
Cs
|dkr |jr td<02>S|dkr(ttjj|jd<03>}z
|<02><07>}W|<02><08>nB|<02><08>wz t ||jd<03><02>}d<04>
|<04> <0B><00>}Wd<00>n1sBwYWnt yd}ztd|<00>d|<05><00><04>WYd}~Sd}~wwd}|jr<>z t |d |jd<03>}d
}WnMt y<>}ztd |<00>d|<05><00><04>WYd}~Sd}~ww|j r<>z t |j d |jd<03>}d
}Wn t y<>}ztd |j <0A>d|<05><00><04>WYd}~Sd}~wwtj}t|<01>}ztj<11>|<08>}Wnty<>}z td |<05><00><02>WYd}~Sd}~wwtj|fi|<08><01>} |<07>| <09>|<07><16>|<06>r|<07><17>d S)zdProcess a single file with the given formatting options.
Returns 0 on success, 1 on error.
<20>-z Cannot use --in-place with stdin)r4<00>NzFailed to read z: F<>wTzFailed to open zInvalid options: r)rrIrrE<00>stdin<69>bufferr4<00>read<61>detach<63>openr<<00> readlines<65>OSErrorr<00>stdout<75>varsr8<00> formatter<65>validate_optionsrr;rG<00>flush<73>close)
r <00>args<67>wrapper<65>data<74>f<>e<> close_stream<61>stream<61>formatter_opts<74>srrr!<00> _process_file<6C>s^
<1C><04> <08><02> <08><02>"<08><02><08><02>
rccCsdt<00>}|<01>|<00>}t|j<03>dkr|jrtd<02>S|jstd<03>Sd}|jD] }t||<00>}|dkr/|}q"|S)NrDz+Cannot use -o/--outfile with multiple filesz&Multiple files require --in-place flagr)rB<00>
parse_args<EFBFBD>lenr rrIrrc)rZr@<00> exit_coder <00>resultrrr!<00>main<69>s


<02>rh)N) <0C>__doc__r5rE<00>iorr8<00>sqlparse.exceptionsrrBrIrcrhrrrr!<00><module>s    7