Module Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Num Assign NameStore BinOpLShift Num AttributeLoad NameLoad attr While CompareLt NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Print NameLoad AugAssignAdd NameStore NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A argparse N/A buprivate N/A MySQLdb main N/A N/A N/A N/A N/A Generate the backup commands to dump a maybe based on zindex partitions.
      Maybe this should be used to call popen or subprocess, but that's not 
      implemented yet.  The generated command can be run on the command line.
      
      Specify the number of bits used in the index.  This should be = 0 mod 3.
      i.e. 3, 6, 9, 12, 15.  Because the zindex uses bit trios.  It will work
      for any value, but 0 mod 3 makes more physical sense. N/A parser N/A N/A argparse ArgumentParser description Dump the database and table into partitions N/A N/A N/A parser add_argument database action store N/A N/A N/A parser add_argument table action store N/A N/A N/A parser add_argument partition_size_bits action store type int N/A N/A N/A parser add_argument --outputdir action store required False default . N/A result N/A N/A parser parse_args N/A cmdstr N/A mysqldump -u %s -p%s -v --databases %s --tables %s --no-data > %s/%s.%s.maketables.sql N/A N/A buprivate user N/A buprivate dbpasswd N/A result database N/A result table N/A result outputdir N/A result database N/A result table N/A cmdstr N/A conn N/A N/A MySQLdb connect host localhost user N/A buprivate user passwd N/A buprivate dbpasswd db N/A result database N/A sql N/A select max(zindex) from %s N/A result table N/A cursor N/A N/A conn cursor N/A N/A N/A N/A N/A cursor execute sql N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A N/A Problem retrieving max zindex %d: %s. sql=%s N/A N/A N/A e args N/A 0 N/A N/A e args N/A 1 sql N/A N/A N/A sys exit -1 N/A row N/A N/A cursor fetchone N/A N/A N/A row N/A 0 None N/A N/A No zindexes.  Empty database or table? N/A N/A N/A sys exit -1 N/A N/A maxzidx N/A int N/A row N/A 0 N/A curzidx 0 N/A stride N/A 1 N/A result partition_size_bits N/A N/A curzidx maxzidx N/A N/A cmdstr N/A mysqldump -u %s -p%s -v --databases %s --tables %s --no-create-info -w "zindex >= %s and zindex < %s" > %s/%s.%s.%s.sql N/A N/A buprivate user N/A buprivate dbpasswd N/A result database N/A result table N/A str curzidx N/A str N/A curzidx stride N/A result outputdir N/A result database N/A result table curzidx N/A cmdstr N/A curzidx stride N/A N/A N/A __name__ __main__ N/A N/A N/A main