Skip to content

sqlparse 0.5.5

Version history | Download JSON

  • PyPI https://pypi.org/project/sqlparse/
    Repository https://github.com/andialbrecht/sqlparse

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 0
        "Any" : 0
        "Untyped" : 371
    • 0.0% coverage
    • 0.0% coverage (strict)
    • 371 typable
      • 0 typed
      • 371 untyped
      • 0 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 83
        "classes" : 251
        "other" : 4
    • 38 functions (+0 overloads)
      • 45 parameters
    • 41 classes
      • 111 methods (+0 overloads)
        • 134 parameters
      • 6 properties
    • 17 modules
      • 4 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
sqlparse.cli 0.0% 0.0% 3 0
sqlparse.engine.filter_stack 0.0% 0.0% 9 0
sqlparse.engine.grouping 0.0% 0.0% 52 0
sqlparse.engine.statement_splitter 0.0% 0.0% 7 0
sqlparse.exceptions 0.0% 0.0% 0 0
sqlparse.filters.aligned_indent 0.0% 0.0% 28 0
sqlparse.filters.others 0.0% 0.0% 23 0
sqlparse.filters.output 0.0% 0.0% 18 0
sqlparse.filters.reindent 0.0% 0.0% 51 0
sqlparse.filters.right_margin 0.0% 0.0% 9 0
sqlparse.filters.tokens 0.0% 0.0% 9 0
sqlparse.formatter 0.0% 0.0% 5 0
sqlparse.keywords 0.0% 0.0% 1 0
sqlparse.lexer 0.0% 0.0% 16 0
sqlparse.sql 0.0% 0.0% 117 0
sqlparse.tokens 0.0% 0.0% 1 0
sqlparse.utils 0.0% 0.0% 22 0

Incomplete Annotations

sqlparse.cli (3 missing, 0 any)

Symbol Typable Typed Any
func create_parser 1 0 0
func main 2 0 0

sqlparse.engine.filter_stack (9 missing, 0 any)

Symbol Typable Typed Any
meth FilterStack.init 2 0 0
meth FilterStack.enable_grouping 1 0 0
meth FilterStack.run 3 0 0
attr FilterStack.preprocess 1 0 0
attr FilterStack.stmtprocess 1 0 0
attr FilterStack.postprocess 1 0 0

sqlparse.engine.grouping (52 missing, 0 any)

Symbol Typable Typed Any
func group_parenthesis 2 0 0
func group_identifier 2 0 0
func align_comments 2 0 0
func group_as 2 0 0
func group_typed_literal 2 0 0
func group_order 2 0 0
func group 2 0 0
func group_comments 2 0 0
func group_functions 2 0 0
func group_brackets 2 0 0
func group_comparison 2 0 0
func group_where 2 0 0
func group_aliased 2 0 0
func group_values 2 0 0
func group_period 2 0 0
func group_arrays 2 0 0
func group_if 2 0 0
func group_identifier_list 2 0 0
func group_tzcasts 2 0 0
func group_assignment 2 0 0
func group_begin 2 0 0
func group_for 2 0 0
func group_case 2 0 0
func group_over 2 0 0
func group_typecasts 2 0 0
func group_operator 2 0 0

sqlparse.engine.statement_splitter (7 missing, 0 any)

Symbol Typable Typed Any
meth StatementSplitter.init 1 0 0
meth StatementSplitter._reset 1 0 0
meth StatementSplitter._change_splitlevel 3 0 0
meth StatementSplitter.process 2 0 0

sqlparse.filters.aligned_indent (28 missing, 0 any)

Symbol Typable Typed Any
meth AlignedIndentFilter.init 3 0 0
meth AlignedIndentFilter.nl 2 0 0
meth AlignedIndentFilter._process_statement 2 0 0
meth AlignedIndentFilter._process_parenthesis 2 0 0
meth AlignedIndentFilter._process_identifierlist 2 0 0
meth AlignedIndentFilter._process_case 2 0 0
meth AlignedIndentFilter._next_token 3 0 0
meth AlignedIndentFilter._split_kwds 2 0 0
meth AlignedIndentFilter._process_default 2 0 0
meth AlignedIndentFilter._process 2 0 0
meth AlignedIndentFilter.process 2 0 0
attr AlignedIndentFilter.n 1 0 0
attr AlignedIndentFilter.offset 1 0 0
attr AlignedIndentFilter.indent 1 0 0
attr AlignedIndentFilter.char 1 0 0

sqlparse.filters.others (23 missing, 0 any)

Symbol Typable Typed Any
meth SerializerUnicode.process 2 0 0
meth StripTrailingSemicolonFilter.process 2 0 0
meth StripCommentsFilter._process 2 0 0
meth StripCommentsFilter.process 2 0 0
meth SpacesAroundOperatorsFilter._process 2 0 0
meth SpacesAroundOperatorsFilter.process 2 0 0
meth StripWhitespaceFilter._stripws 2 0 0
meth StripWhitespaceFilter._stripws_default 2 0 0
meth StripWhitespaceFilter._stripws_identifierlist 2 0 0
meth StripWhitespaceFilter._stripws_parenthesis 2 0 0
meth StripWhitespaceFilter.process 3 0 0

sqlparse.filters.output (18 missing, 0 any)

Symbol Typable Typed Any
meth OutputPythonFilter._process 4 0 0
meth OutputPHPFilter._process 4 0 0
meth OutputFilter.init 2 0 0
meth OutputFilter._process 4 0 0
meth OutputFilter.process 2 0 0
attr OutputFilter.varname 1 0 0
attr OutputFilter.count 1 0 0

sqlparse.filters.reindent (51 missing, 0 any)

Symbol Typable Typed Any
meth ReindentFilter.init 9 0 0
meth ReindentFilter._flatten_up_to_token 2 0 0
meth ReindentFilter._get_offset 2 0 0
meth ReindentFilter.nl 2 0 0
meth ReindentFilter._next_token 3 0 0
meth ReindentFilter._split_kwds 2 0 0
meth ReindentFilter._split_statements 2 0 0
meth ReindentFilter._process 2 0 0
meth ReindentFilter._process_where 2 0 0
meth ReindentFilter._process_parenthesis 2 0 0
meth ReindentFilter._process_function 2 0 0
meth ReindentFilter._process_identifierlist 2 0 0
meth ReindentFilter._process_case 2 0 0
meth ReindentFilter._process_values 2 0 0
meth ReindentFilter._process_default 3 0 0
meth ReindentFilter.process 2 0 0
prop ReindentFilter.leading_ws 1 0 0
attr ReindentFilter.n 1 0 0
attr ReindentFilter.width 1 0 0
attr ReindentFilter.char 1 0 0
attr ReindentFilter.indent 1 0 0
attr ReindentFilter.offset 1 0 0
attr ReindentFilter.wrap_after 1 0 0
attr ReindentFilter.comma_first 1 0 0
attr ReindentFilter.indent_columns 1 0 0
attr ReindentFilter.compact 1 0 0

sqlparse.filters.right_margin (9 missing, 0 any)

Symbol Typable Typed Any
meth RightMarginFilter.init 2 0 0
meth RightMarginFilter._process 3 0 0
meth RightMarginFilter.process 2 0 0
attr RightMarginFilter.width 1 0 0
attr RightMarginFilter.line 1 0 0

sqlparse.filters.tokens (9 missing, 0 any)

Symbol Typable Typed Any
meth IdentifierCaseFilter.process 2 0 0
meth TruncateStringFilter.init 3 0 0
meth TruncateStringFilter.process 2 0 0
attr TruncateStringFilter.width 1 0 0
attr TruncateStringFilter.char 1 0 0

sqlparse.formatter (5 missing, 0 any)

Symbol Typable Typed Any
func build_filter_stack 3 0 0
func validate_options 2 0 0

sqlparse.keywords (1 missing, 0 any)

Symbol Typable Typed Any
attr PROCESS_AS_KEYWORD 1 0 0

sqlparse.lexer (16 missing, 0 any)

Symbol Typable Typed Any
meth Lexer.get_default_instance 1 0 0
meth Lexer.default_initialization 1 0 0
meth Lexer.clear 1 0 0
meth Lexer.set_SQL_REGEX 2 0 0
meth Lexer.add_keywords 2 0 0
meth Lexer.is_keyword 2 0 0
meth Lexer.get_tokens 3 0 0
attr Lexer._lock 1 0 0
func tokenize 3 0 0

sqlparse.sql (117 missing, 0 any)

Symbol Typable Typed Any
meth Comment.is_multiline 1 0 0
meth Statement.get_type 1 0 0
meth Token.init 3 0 0
meth Token.str 1 0 0
meth Token.repr 1 0 0
meth Token._get_repr_name 1 0 0
meth Token._get_repr_value 1 0 0
meth Token.flatten 1 0 0
meth Token.match 4 0 0
meth Token.within 2 0 0
meth Token.is_child_of 2 0 0
meth Token.has_ancestor 2 0 0
attr Token.value 1 0 0
attr Token.ttype 1 0 0
attr Token.parent 1 0 0
attr Token.is_group 1 0 0
attr Token.is_keyword 1 0 0
attr Token.is_whitespace 1 0 0
attr Token.is_newline 1 0 0
attr Token.normalized 1 0 0
meth IdentifierList.get_identifiers 1 0 0
meth TokenList.init 2 0 0
meth TokenList.str 1 0 0
meth TokenList.iter 1 0 0
meth TokenList.getitem 2 0 0
meth TokenList._get_repr_name 1 0 0
meth TokenList._pprint_tree 5 0 0
meth TokenList.get_token_at_offset 2 0 0
meth TokenList.flatten 1 0 0
meth TokenList.get_sublists 1 0 0
meth TokenList._token_matching 5 0 0
meth TokenList.token_first 3 0 0
meth TokenList.token_next_by 6 0 0
meth TokenList.token_not_matching 3 0 0
meth TokenList.token_matching 3 0 0
meth TokenList.token_prev 4 0 0
meth TokenList.token_next 5 0 0
meth TokenList.token_index 3 0 0
meth TokenList.group_tokens 6 0 0
meth TokenList.insert_before 3 0 0
meth TokenList.insert_after 4 0 0
meth TokenList.has_alias 1 0 0
meth TokenList.get_alias 1 0 0
meth TokenList.get_name 1 0 0
meth TokenList.get_real_name 1 0 0
meth TokenList.get_parent_name 1 0 0
meth TokenList._get_first_name 5 0 0
prop TokenList._groupable_tokens 1 0 0
attr TokenList.tokens 1 0 0
attr TokenList.is_group 1 0 0
prop SquareBrackets._groupable_tokens 1 0 0
meth Case.get_cases 2 0 0
meth Function.get_parameters 1 0 0
meth Function.get_window 1 0 0
prop Comparison.left 1 0 0
prop Comparison.right 1 0 0
meth NameAliasMixin.get_real_name 1 0 0
meth NameAliasMixin.get_alias 1 0 0
meth Identifier.is_wildcard 1 0 0
meth Identifier.get_typecast 1 0 0
meth Identifier.get_ordering 1 0 0
meth Identifier.get_array_indices 1 0 0
prop Parenthesis._groupable_tokens 1 0 0

sqlparse.tokens (1 missing, 0 any)

Symbol Typable Typed Any
attr Token 1 0 0

sqlparse.utils (22 missing, 0 any)

Symbol Typable Typed Any
attr SPLIT_REGEX 1 0 0
func offset 3 0 0
attr LINE_MATCH 1 0 0
func recurse 2 0 0
func imt 5 0 0
func split_unquoted_newlines 2 0 0
func indent 3 0 0
func remove_quotes 2 0 0
func consume 3 0 0

Type-Ignore Comments

No type-ignore comments.