Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias Import alias ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str keyword Str Str Call AttributeLoad NameLoad attr Str keyword Num NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad attr If CompareEq NameLoad Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str orelse If CompareGt NameLoad Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad DictComp NameLoad BoolOpOr NameLoad Str comprehension TupleStore NameStore NameStore Call AttributeLoad Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str Str Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn Str NameLoad body Assign NameStore BinOpMult BinOpSub SubscriptLoad NameLoad Index Str Num SubscriptLoad NameLoad Index Str Return BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A memsql_loader.api.base Api memsql_loader.api.validation V validate_enum listor memsql_loader.api shared exceptions N/A sys Tasks N/A Api N/A N/A SORTABLE_COLUMNS N/A id key_name created started finished state error_msg N/A validate N/A N/A V Schema N/A N/A N/A V Required job_id state N/A N/A V Required order default N/A N/A shared SortDirection ASC N/A N/A V Required order_by default id page_size N/A N/A V Required page default 1 basestring N/A listor N/A validate_enum N/A shared TaskState N/A validate_enum N/A shared SortDirection N/A N/A V Any SORTABLE_COLUMNS N/A N/A V Range 1 100000 N/A N/A V All int N/A N/A V Range min 1 max N/A sys maxint _execute N/A N/A self params N/A N/A N/A N/A generated_sql query_params N/A N/A self _generate_sql params N/A job_count N/A N/A N/A self _db_get N/A 
            SELECT COUNT(*) AS count
            FROM jobs
            WHERE %(job_id_predicate)s
         generated_sql query_params count N/A N/A job_count 0 N/A N/A N/A N/A exceptions ApiException N/A No job found with id `%s` N/A params N/A job_id N/A N/A N/A job_count 1 N/A N/A N/A N/A exceptions ApiException N/A More than one job matches id `%s`, try using a more specific prefix N/A params N/A job_id N/A rows N/A N/A self _db_query N/A 
            SELECT
                tasks.*,
                %(state_projection)s AS state
            FROM tasks INNER JOIN jobs ON jobs.id = tasks.job_id
            WHERE
                %(job_id_predicate)s
                %(state_predicate)s
            ORDER BY %(order_by)s %(order)s
            %(paging)s
         generated_sql query_params N/A ret N/A N/A row rows N/A N/A row N/A N/A shared task_load_row row N/A N/A row N/A key_name N/A N/A row data N/A key_name N/A N/A row N/A error_msg N/A N/A N/A N/A row data get error N/A N/A N/A ret append row N/A ret N/A _generate_sql N/A N/A self params N/A N/A N/A query_params N/A N/A N/A shared TaskState projection_params N/A N/A N/A k N/A v N/A N/A k v N/A N/A N/A job_id_predicate state_projection state_predicate order order_by paging N/A N/A self _job_id_predicate params query_params N/A N/A shared TaskState PROJECTION N/A N/A self _state_predicate params query_params N/A params N/A order N/A params N/A order_by N/A N/A self _paging params query_params iteritems query_params N/A _job_id_predicate N/A N/A self params query_params N/A N/A N/A N/A query_params N/A job_id_predicate N/A N/A params N/A job_id % N/A jobs.id LIKE :job_id_predicate N/A _state_predicate N/A N/A self params query_params N/A N/A N/A N/A state params N/A N/A state_list_string N/A N/A , join N/A N/A '%s' v N/A v N/A params N/A state N/A N/A AND (%s) IN (%s) N/A N/A N/A shared TaskState PROJECTION state_list_string N/A _paging N/A N/A self params query_params N/A N/A N/A N/A page_size params N/A N/A offset N/A N/A N/A params N/A page 1 N/A params N/A page_size N/A N/A LIMIT %s, %s N/A offset N/A params N/A page_size N/A N/A