Module ImportFrom alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias Assign NameStore CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore NameLoad If NameLoad body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad NameLoad BinOpAdd NameLoad NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Break orelse If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Return ListLoad Dict Str Str If CompareIn NameLoad TupleLoad Str Str body Return ListLoad Dict Str Str If CompareIn NameLoad Str body Return ListLoad Dict Str Str If CompareIn NameLoad ListLoad Str Str Str body Return ListLoad Dict Str Str If CompareIn NameLoad ListLoad Str body Return ListLoad Dict Str Str Str ListLoad Dict Str Str Str ListLoad Dict Str Str Return ListLoad Dict Str Str Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Return ListLoad Dict Str Str Dict Str Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign NameStore Call NameLoad Str NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Return ListLoad Dict Str Str orelse Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num If BoolOpAnd NameLoad AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad NameLoad Return ListLoad Dict Str Str Str Str NameLoad NameLoad orelse If CompareEq Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str body If Call AttributeLoad Call NameLoad NameLoad Str attr Str body Return ListLoad Dict Str Str orelse If CompareEq Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str body Return ListLoad Dict Str Str Return ListLoad Dict Str Str Str Call NameLoad NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Return ListLoad Dict Str Str Str Call NameLoad NameLoad orelse If CompareIn NameLoad Str body Return ListLoad Dict Str Str orelse If CompareIn NameLoad TupleLoad Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If CompareEq Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str body Return ListLoad Dict Str Str orelse Return ListLoad Dict Str Str orelse If CompareIn NameLoad TupleLoad Str Str body Return ListLoad Dict Str Str orelse If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr ListLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad Return ListLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad orelse Return ListLoad Dict Str Str Str Call NameLoad NameLoad Dict Str Str Str ListLoad Dict Str Str orelse If BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Str Str Str Str Str Str Str Str body Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr ListLoad Assign NameStore ListLoad Dict Str Str Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Num Dict Str Str If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Return NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr ListLoad If NameLoad body Return ListLoad Dict Str Str NameLoad NameLoad orelse Return ListLoad Dict Str Str Dict Str Str NameLoad ListLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr ListLoad If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad Return ListLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad Dict Str Str Str NameLoad orelse Assign NameStore ListComp BoolOpOr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore ListLoad Dict Str Str Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Return NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str Str body Return ListLoad Dict Str Str orelse If CompareEq NameLoad Str body Return ListLoad Dict Str Str orelse If BoolOpOr Call AttributeLoad NameLoad attr Str CompareIn NameLoad ListLoad Str Str Str body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Return ListLoad orelse Return ListLoad Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad BoolOpAnd NameLoad CompareEq NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad decorator_list
N/A __future__ print_function N/A sys N/A sqlparse sqlparse.sql Comparison Identifier Where parseutils last_word extract_tables find_prev_keyword special parse_special_command N/A PY2 N/A N/A N/A sys version_info N/A 0 2 N/A PY3 N/A N/A N/A sys version_info N/A 0 3 N/A PY3 N/A N/A string_types str N/A N/A string_types basestring suggest_type N/A N/A full_text text_before_cursor N/A N/A N/A Takes the full_text that is typed so far and also the text before the
    cursor to suggest completion type and scope.

    Returns a tuple with a type of entity ('table', 'column' etc) and a scope.
    A scope for a column category will be a list of tables.
     N/A word_before_cursor N/A last_word text_before_cursor include many_punctuations N/A identifier None N/A word_before_cursor N/A N/A N/A N/A N/A word_before_cursor N/A -1 ( N/A N/A word_before_cursor N/A 0 \ N/A N/A parsed N/A N/A sqlparse parse text_before_cursor N/A N/A parsed N/A N/A sqlparse parse N/A text_before_cursor N/A N/A N/A len word_before_cursor N/A p N/A N/A N/A sqlparse parse word_before_cursor N/A 0 N/A N/A N/A p tokens N/A isinstance N/A N/A p tokens N/A 0 Identifier N/A N/A identifier N/A N/A p tokens N/A 0 N/A N/A parsed N/A N/A sqlparse parse text_before_cursor N/A N/A N/A len parsed 1 N/A N/A current_pos N/A len text_before_cursor N/A N/A stmt_start stmt_end N/A 0 0 N/A statement parsed N/A N/A stmt_len N/A len N/A N/A statement to_unicode N/A N/A stmt_start stmt_end N/A stmt_end N/A stmt_end stmt_len N/A N/A stmt_end current_pos N/A N/A text_before_cursor N/A full_text N/A stmt_start current_pos N/A full_text N/A full_text N/A stmt_start N/A N/A N/A parsed N/A N/A statement N/A parsed N/A 0 N/A N/A statement None N/A statement N/A N/A tok1 N/A N/A statement token_first N/A N/A tok1 N/A N/A tok1 value \ N/A N/A N/A suggest_special text_before_cursor N/A last_token N/A N/A statement N/A N/A statement token_prev N/A len N/A statement tokens N/A N/A suggest_based_on_last_token last_token text_before_cursor full_text identifier N/A suggest_special N/A N/A text N/A N/A N/A text N/A N/A text lstrip N/A N/A cmd arg N/A parse_special_command text N/A N/A cmd text N/A N/A N/A N/A type special N/A N/A cmd N/A \u \r N/A N/A N/A N/A type database N/A N/A cmd \T N/A N/A N/A N/A type table_format N/A N/A cmd N/A \f \fs \fd N/A N/A N/A N/A type favoritequery N/A N/A cmd N/A \dt N/A N/A N/A N/A type schema table N/A N/A type schema view N/A N/A type schema N/A N/A N/A type keyword N/A type special N/A suggest_based_on_last_token N/A N/A token text_before_cursor full_text identifier N/A N/A N/A N/A isinstance token string_types N/A N/A token_v N/A N/A token lower N/A N/A N/A isinstance token Comparison N/A N/A token_v N/A N/A N/A N/A N/A token tokens N/A -1 value lower N/A N/A N/A isinstance token Where N/A N/A N/A prev_keyword text_before_cursor N/A find_prev_keyword text_before_cursor N/A N/A suggest_based_on_last_token prev_keyword text_before_cursor full_text identifier N/A N/A token_v N/A N/A N/A token value lower N/A N/A token N/A N/A N/A N/A type keyword N/A type special N/A N/A N/A N/A token_v endswith ( N/A N/A p N/A N/A N/A sqlparse parse text_before_cursor N/A 0 N/A N/A N/A p tokens N/A isinstance N/A N/A p tokens N/A -1 Where N/A N/A column_suggestions N/A suggest_based_on_last_token where text_before_cursor full_text identifier N/A where N/A N/A p tokens N/A -1 N/A prev_tok N/A N/A where token_prev N/A N/A len N/A where tokens 1 N/A N/A isinstance prev_tok Comparison N/A N/A prev_tok N/A N/A prev_tok tokens N/A -1 N/A prev_tok N/A N/A N/A prev_tok value lower N/A N/A prev_tok exists N/A N/A N/A N/A type keyword N/A N/A column_suggestions N/A prev_tok N/A N/A p token_prev N/A N/A len N/A p tokens 1 N/A N/A prev_tok N/A prev_tok value N/A N/A N/A N/A prev_tok value lower using N/A N/A tables N/A extract_tables full_text N/A N/A N/A type tables drop_unique column tables True N/A N/A N/A N/A N/A N/A N/A N/A p token_first value lower select N/A N/A N/A N/A N/A last_word text_before_cursor all_punctuations startswith ( N/A N/A N/A N/A type keyword N/A N/A N/A N/A N/A N/A N/A N/A p token_first value lower show N/A N/A N/A N/A type show N/A N/A N/A type tables column N/A extract_tables full_text N/A N/A N/A token_v N/A set by distinct N/A N/A N/A N/A type tables column N/A extract_tables full_text N/A N/A N/A token_v show N/A N/A N/A N/A type show N/A N/A N/A token_v N/A to N/A N/A p N/A N/A N/A sqlparse parse text_before_cursor N/A 0 N/A N/A N/A N/A N/A N/A N/A p token_first value lower change N/A N/A N/A N/A type change N/A N/A N/A N/A type user N/A N/A N/A token_v N/A user for N/A N/A N/A N/A type user N/A N/A N/A token_v N/A select where having N/A N/A parent N/A N/A identifier N/A N/A identifier get_parent_name N/A N/A parent N/A N/A tables N/A extract_tables full_text N/A tables N/A t N/A t tables N/A identifies parent t N/A N/A N/A type tables column tables N/A type schema table parent N/A type schema view parent N/A type schema function parent N/A N/A N/A N/A type tables column N/A extract_tables full_text N/A type schema function N/A N/A type keyword N/A N/A N/A N/A N/A N/A token_v endswith join N/A token is_keyword N/A token_v N/A copy from update into describe truncate desc explain N/A N/A schema N/A N/A identifier N/A N/A identifier get_parent_name N/A N/A suggest N/A N/A type schema table schema N/A N/A schema N/A N/A N/A N/A suggest insert 0 N/A type schema N/A N/A token_v truncate N/A N/A N/A N/A suggest append N/A type schema view schema N/A suggest N/A N/A N/A token_v N/A table view function N/A N/A rel_type token_v N/A schema N/A N/A identifier N/A N/A identifier get_parent_name N/A N/A schema N/A N/A N/A N/A type schema rel_type schema N/A N/A N/A N/A type schema N/A type schema rel_type N/A N/A N/A N/A token_v on N/A N/A tables N/A extract_tables full_text N/A parent N/A N/A identifier N/A N/A identifier get_parent_name N/A N/A parent N/A N/A tables N/A t N/A t tables N/A identifies parent t N/A N/A N/A type tables column tables N/A type schema table parent N/A type schema view parent N/A type schema function parent N/A N/A aliases N/A N/A N/A t N/A 2 N/A t N/A 1 N/A t tables N/A suggest N/A N/A type aliases alias aliases N/A N/A aliases N/A N/A N/A N/A suggest append N/A type schema table parent N/A suggest N/A N/A N/A token_v N/A use database template connect N/A N/A N/A N/A type database N/A N/A N/A token_v tableformat N/A N/A N/A N/A type table_format N/A N/A N/A N/A N/A token_v endswith , N/A token_v N/A = and or N/A N/A N/A prev_keyword text_before_cursor N/A find_prev_keyword text_before_cursor N/A prev_keyword N/A N/A N/A suggest_based_on_last_token prev_keyword text_before_cursor full_text identifier N/A N/A N/A N/A N/A N/A N/A type keyword N/A identifies N/A N/A id schema table alias N/A N/A N/A N/A N/A id alias N/A id table N/A schema N/A id N/A N/A schema . table N/A