/opt/dedrads/mysql/__pycache__
Edit: /opt/dedrads/mysql/__pycache__/queryparser.cpython-313.pyc (17352B)
}j1
f S r SSKrSSKrSSKJr SSKrSSKJrJr SSKrSSK J
r
SSKJr
S r " S S 5 r " S
S5 r " S S
5 rS\S- 4S jrS\
4S jrS\
S\R* S- S\S- S\S\
S\4S jrS\S\S\
S\S\R* S- S\S- 4S jrS r\S:X a \" 5 gg)zParses MySQL general query logs N)Path)datetime timedelta)IO)Parserc [ R " [ S9n U R SSSSSS9 U R SS S
SS9 U R S
S[ R
SSS9 U R
5 nUR SSSSS9 UR SSS/ SQSS9 U R SSSS9 U R 5 nUR S :X a S Ul U$ )!N)descriptionz-qz--quietstore_falseverbosezSuppress non-error output)actiondesthelpz-oz--outputFILEz&Write output to FILE (default: stdout))metavarr z-rz--regexREGEXz#Tally arbitrary REGEX string (slow))typer r z-uz--userUSERz(Output USER's queries instead of summaryz-sz--sorttotal)selectinsertupdatereplaceregexr zSort summary by a type of query)defaultchoicesr filename?z3file to read from. optional - defaults to try stdin)nargsr -) argparseArgumentParser__doc__add_argumentrecompileadd_mutually_exclusive_group
parse_argsr )parserdisplayargss !/opt/dedrads/mysql/queryparser.pyr' r'
s
$
$
9F
i
I
( j&
5 ibjj'
2 113Gh
7 hK
.
#
B
D}}
K c \ rS rSr% Sr\\S' \\S' \\S' \\S' \\S' S r\S \4S
j5 r \
\R 4S\
S\
4S
jj5 r\R 4S\S\
4S jjrSrg) MySQLUser1 z/Holds a user name and tracks numbers of queries
num_select
num_insert
num_updatenum_replace num_regexc J SU l SU l SU l SU l SU l g )Nr )r0 r1 r2 r3 r4 selfs r+ __init__MySQLUser.__init__: s&