Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/sqlparse/__pycache__/cli.cpython-312.pyc

49 lines
7.2 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
f<> i<00><00>L<00>dZddlZddlZddlmZddlZddlmZd<05>Zd<06>Z dd<07>Z
y) 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 <00><00>gd<01>}tjddd<04><05>}|jd<06>|jddd d
d <0B> <0C>|jd dtj<00><0F>|j d<10>}|jdddd|dj djd<17>|D<00><00><00><00><18>|jdddd|dj djd<1D>|D<00><00><00><00><18>|jddd d!d"d#gd$<24><18>|jd%d&d'd(d)<29>*<2A>|jd+d,d-d'd(d.<2E>*<2A>|jd/d0d1td2<64>3<EFBFBD>|jd4d5d'd(d6<64>*<2A>|jd7d8d'd(d9<64>*<2A>|jd:d;d'd(d<<3C>=<3D>|jd>d?d'd(d@<40>=<3D>|jdAdBdCtdD<64>3<EFBFBD>|jdEdFd(tdG<64>3<EFBFBD>|jdHdId(tdJ<64>3<EFBFBD>|jdKdLdMdN<64>O<EFBFBD>|S)PN)<03>upper<65>lower<65>
capitalize<EFBFBD> sqlformatzEFormat FILE according to OPTIONS. Use "-" as FILE to read from stdin.z%(prog)s [OPTIONS] FILE, ...)<03>prog<6F> description<6F>usage<67>filenamez-oz --outfile<6C>outfile<6C>FILEz)write output to FILE (defaults to stdout))<03>dest<73>metavar<61>helpz --version<6F>version)<02>actionrzFormatting Optionsz-kz
--keywords<64>CHOICE<43> keyword_casez,change case of keywords, CHOICE is one of {}z, c3<00>>K<00>|]}dj|<01><00><01><00>y<01>w<01>z"{}"N<><01>format<61><02>.0<EFBFBD>xs <20>;E:\Project\pygoedge\.venv\Lib\site-packages\sqlparse/cli.py<70> <genexpr>z create_parser.<locals>.<genexpr>?<00><00><00><><00>><3E> <0A>1<EFBFBD>f<EFBFBD>m<EFBFBD>m<EFBFBD>A<EFBFBD>&<26> <0A><><00>)rr<00>choicesrz-iz --identifiers<72>identifier_casez/change case of identifiers, CHOICE is one of {}c3<00>>K<00>|]}dj|<01><00><01><00>y<01>wrrrs rrz create_parser.<locals>.<genexpr>Gr r!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_comments<74>
store_trueFzremove comments)rr<00>defaultrz-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)rr+rz-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))rr+r)
<EFBFBD>argparse<73>ArgumentParser<65> add_argument<6E>sqlparse<73> __version__<5F>add_argument_groupr<00>join<69>int<6E>bool)<03> _CASE_CHOICES<45>parser<65>groups r<00> create_parserrB s<><00><00>4<>M<EFBFBD> <15> $<24> $<24> <18>*<2A>-<2D> <06>F<EFBFBD> <0B><17><17>
<EFBFBD>#<23>
<EFBFBD><17><17> <0C>k<EFBFBD> <16><16> 8<> <18>:<3A>  <0B><17><17><13><18><18>$<24>$<24><18>&<26>
<13> %<25> %<25>&:<3A> ;<3B>E<EFBFBD> <09><16><16> <0C>l<EFBFBD><18> <1B><1D> ;<3B> B<> B<> <10>I<EFBFBD>I<EFBFBD>><3E> <0A>><3E> ><3E>@<01> <17>A<01>
<EFBFBD><16><16> <0C>o<EFBFBD><18> <1E><1D> ><3E> E<> E<> <10>I<EFBFBD>I<EFBFBD>><3E> <0A>><3E> ><3E>@<01> <17>A<01>
<EFBFBD><16><16> <0C>l<EFBFBD><16> <1C><19>5<EFBFBD>!<21>+<2B> <17>,<2C>
<EFBFBD><16><16><1A> <1D><1B><15> <1E> <17> <20>
<EFBFBD><16><16> <0C>l<EFBFBD> <17><1B><15> "<22> <17>$<24>
<EFBFBD><16><16><18> <1B><11> <10> 7<> <17>9<>
<EFBFBD><16><16><1E> !<21><1B><15> A<> <17>C<01>
<EFBFBD><16><16><1A> <1D><1B><15> K<> <17>M<01>
<EFBFBD><16><16> <0C>"<22><1B><15> 4<> <17>6<> 
<EFBFBD><16><16> <0C>,<2C><1B><15> 9<> <17>;<3B> 
<EFBFBD><16><16><16> <19><11> <10> 9<> <17>;<3B>
<EFBFBD><16><16><17> <1A><15> <11> <<3C> <17>><3E>
<EFBFBD><16><16><13> <16><15> <11> A<> <17>C<01>
<EFBFBD><16><16><14> <17><17> 9<> <17>;<3B> <12>M<EFBFBD>c<00>`<00>tjjdj|<00><00>y)z5Print msg and optionally exit with return code exit_.z [ERROR] {}
<EFBFBD>)<04>sys<79>stderr<72>writer)<01>msgs r<00>_errorrJ<00>s"<00><00><07>J<EFBFBD>J<EFBFBD><14><14>^<5E>*<2A>*<2A>3<EFBFBD>/<2F>0<> rCc<00><><00>t<00>}|j|<00>}|jdk(rQttj
j |j<00><02>} |j<00>}|j<00>nJ t|j|j<00><02>5}dj|j<00><00>}ddd<00>d}|j r& t|j d|j<00><02>}d}ntj"}t%|<00>} t&j(j+|<08>}t'jfi|<08><01>} |j/| <09>|j1<00>|r|j3<00>y
#|j<00>wxYw#1swY<00><>xYw#t$r/}tdj|j|<05><00>cYd}~Sd}~wwxYw#t$r/}tdj|j |<05><00>cYd}~Sd}~wwxYw#t,$r$}td j|<05><00>cYd}~Sd}~wwxYw) N<>-)r5<00>zFailed to read {}: {}F<>wTzFailed to open {}: {}zInvalid options: {}r)rB<00>
parse_argsr rrF<00>stdin<69>bufferr5<00>read<61>detach<63>openr<<00> readlines<65>OSErrorrJrr<00>stdout<75>varsr9<00> formatter<65>validate_optionsrrH<00>flush<73>close)
<EFBFBD>argsr@<00>wrapper<65>data<74>f<>e<> close_stream<61>stream<61>formatter_opts<74>ss
r<00>mainrf<00>s<><00><00> <1A>_<EFBFBD>F<EFBFBD> <11> <1C> <1C>T<EFBFBD> "<22>D<EFBFBD> <0B>}<7D>}<7D><03><1B><1F><03> <09> <09> 0<> 0<>4<EFBFBD>=<3D>=<3D>I<><07> <1D><1A><<3C><<3C>><3E>D<EFBFBD> <13>N<EFBFBD>N<EFBFBD> <1C> B<01><15>d<EFBFBD>m<EFBFBD>m<EFBFBD>d<EFBFBD>m<EFBFBD>m<EFBFBD><<3C><01><19>w<EFBFBD>w<EFBFBD>q<EFBFBD>{<7B>{<7B>}<7D>-<2D><04>=<3D> <19>L<EFBFBD> <0B>|<7C>|<7C> K<01><19>$<24>,<2C>,<2C><03>d<EFBFBD>m<EFBFBD>m<EFBFBD>D<>F<EFBFBD><1F>L<EFBFBD><15><1A><1A><06><19>$<24>Z<EFBFBD>N<EFBFBD>7<>!<21>+<2B>+<2B><<3C><<3C>^<5E>L<><0E> <11><0F><0F><04>/<2F><0E>/<2F>A<EFBFBD>
<EFBFBD>L<EFBFBD>L<EFBFBD><11>O<EFBFBD>
<EFBFBD>L<EFBFBD>L<EFBFBD>N<EFBFBD><13><0E> <0C> <0C><0E> <0C><>= <14>N<EFBFBD>N<EFBFBD> <1C><>=<3D><<3C><><16> B<01><19>'<27>.<2E>.<2E>t<EFBFBD>}<7D>}<7D>a<EFBFBD>@<40>B<01> B<01><> B<01><><17> K<01><19>1<>8<>8<><14><1C><1C>q<EFBFBD>I<>J<> J<><4A> K<01><> <19>7<><15>+<2B>2<>2<>1<EFBFBD>5<>6<>6<><36>7<>s~<00>E?<00>=!F <00> F<03>>F <00>$G<00>H<00>?F<03>F<07>F <00> G<03>)$G<03> G<03>G<03> H<03>$$H<03>H<03>H<03> I<03>H><03>8I<03>>I)N) <0B>__doc__r6rF<00>iorr9<00>sqlparse.exceptionsrrBrJrf<00>rCr<00><module>rks,<00><01> <04><10>
<EFBFBD><1C><0F>-<2D>
{<12>| <0A> ' rC