Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str keyword ListLoad Str NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad If CompareLt Call NameLoad NameLoad Num body Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad Num Call NameLoad Call NameLoad NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For NameStore ListLoad Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For NameStore ListLoad Str Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr keyword NameLoad orelse Expr Call NameLoad Num keyword Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A flask request flask_restful abort flask_login login_required N/A sqlparse funcy distinct take itertools chain redash.handlers.base routes org_scoped_rule redash.handlers.query_results run_query redash models redash.permissions require_permission require_access require_admin_or_owner not_view_only view_only redash.handlers.base BaseResource get_object_or_404 redash.utils collect_parameters_from_request format_sql_query N/A N/A org_slug N/A None N/A N/A arguments N/A N/A request get_json force True N/A query N/A N/A arguments get query N/A N/A N/A sqlparse format query reindent True keyword_case upper N/A N/A N/A routes route N/A org_scoped_rule /api/queries/format methods N/A POST login_required QuerySearchResource N/A BaseResource N/A get N/A N/A self N/A N/A N/A term N/A N/A N/A request args get q N/A N/A N/A N/A q to_dict N/A q N/A N/A N/A models Query search term N/A N/A self current_user groups N/A N/A require_permission view_query N/A QueryRecentResource N/A BaseResource N/A get N/A N/A self N/A N/A N/A queries N/A N/A N/A models Query recent N/A N/A self current_user groups N/A N/A self current_user id N/A recent N/A N/A N/A d to_dict with_last_modified_by False N/A d queries N/A global_recent N/A N/A N/A N/A len recent 10 N/A N/A global_recent N/A N/A N/A d to_dict with_last_modified_by False N/A d N/A N/A N/A models Query recent N/A N/A self current_user groups N/A N/A take 20 N/A distinct N/A chain recent global_recent key N/A N/A N/A d N/A N/A d N/A id N/A N/A require_permission view_query N/A QueryListResource N/A BaseResource N/A post N/A N/A self N/A N/A N/A query_def N/A N/A request get_json force True N/A data_source N/A N/A N/A models DataSource get_by_id_and_org N/A N/A query_def pop data_source_id N/A self current_org N/A N/A require_access N/A data_source groups N/A self current_user not_view_only N/A field N/A id created_at api_key visualizations latest_query_data last_modified_by N/A N/A N/A N/A query_def pop field None N/A N/A latest_query_data_id query_def N/A N/A N/A query_def N/A latest_query_data N/A N/A query_def pop latest_query_data_id N/A N/A query_def N/A user N/A self current_user N/A N/A query_def N/A data_source data_source N/A N/A query_def N/A org N/A self current_org N/A query N/A N/A N/A models Query create query_def N/A N/A N/A self record_event N/A action object_id object_type create N/A query id query N/A N/A N/A query to_dict N/A N/A require_permission create_query get N/A N/A self N/A N/A N/A N/A N/A N/A q to_dict with_stats True N/A q N/A N/A N/A models Query all_queries N/A N/A self current_user groups N/A N/A require_permission view_query N/A QueryResource N/A BaseResource N/A post N/A N/A self query_id N/A N/A N/A query N/A get_object_or_404 N/A N/A models Query get_by_id_and_org query_id N/A self current_org N/A N/A require_admin_or_owner N/A query user_id N/A query_def N/A N/A request get_json force True N/A field N/A id created_at api_key visualizations latest_query_data user last_modified_by org N/A N/A N/A N/A query_def pop field None N/A N/A latest_query_data_id query_def N/A N/A N/A query_def N/A latest_query_data N/A N/A query_def pop latest_query_data_id N/A N/A data_source_id query_def N/A N/A N/A query_def N/A data_source N/A N/A query_def pop data_source_id N/A N/A query_def N/A last_modified_by N/A self current_user N/A N/A N/A query update_instance query_def N/A N/A N/A query to_dict with_visualizations True N/A N/A require_permission edit_query get N/A N/A self query_id N/A N/A N/A q N/A get_object_or_404 N/A N/A models Query get_by_id_and_org query_id N/A self current_org N/A N/A require_access N/A q groups N/A self current_user view_only N/A q N/A N/A N/A N/A q to_dict with_visualizations True N/A N/A N/A abort 404 message Query not found. N/A N/A require_permission view_query delete N/A N/A self query_id N/A N/A N/A query N/A get_object_or_404 N/A N/A models Query get_by_id_and_org query_id N/A self current_org N/A N/A require_admin_or_owner N/A query user_id N/A N/A N/A query archive N/A N/A QueryRefreshResource N/A BaseResource N/A post N/A N/A self query_id N/A N/A N/A query N/A get_object_or_404 N/A N/A models Query get_by_id_and_org query_id N/A self current_org N/A N/A require_access N/A query groups N/A self current_user not_view_only N/A parameter_values N/A collect_parameters_from_request N/A request args N/A N/A run_query N/A query data_source parameter_values N/A query query N/A query id N/A N/A