Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mycli/packages/completion_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,5 @@ def suggest_based_on_last_token(token, text_before_cursor, full_text, identifier
return [{"type": "keyword"}]


def identifies(id, schema, table, alias):
return id == alias or id == table or (schema and (id == schema + "." + table))
def identifies(identifier, schema, table, alias):
return identifier == alias or identifier == table or (schema and (identifier == schema + "." + table))
4 changes: 2 additions & 2 deletions mycli/packages/special/delimitercommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def _split(self, sql):

return [stmt.replace(";", self._delimiter).replace(placeholder, ";") for stmt in split]

def queries_iter(self, input):
def queries_iter(self, input_str):
"""Iterate over queries in the input string."""

queries = self._split(input)
queries = self._split(input_str)
while queries:
for sql in queries:
delimiter = self._delimiter
Expand Down
4 changes: 2 additions & 2 deletions mycli/packages/special/iocommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,6 @@ def get_current_delimiter():


@export
def split_queries(input):
for query in delimiter_command.queries_iter(input):
def split_queries(input_str):
for query in delimiter_command.queries_iter(input_str):
yield query
2 changes: 1 addition & 1 deletion mycli/packages/special/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def show_keyword_help(cur, arg):

@special_command("exit", "\\q", "Exit.", arg_type=NO_QUERY, aliases=("\\q",))
@special_command("quit", "\\q", "Quit.", arg_type=NO_QUERY)
def quit(*_args):
def quit_(*_args):
raise EOFError


Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ ignore = [
'E117', # over-indented
'W191', # tab-indentation
# TODO
'A001', # todo enableme variable shadowing builtin
'A002', # todo enableme function argument shadowing builtin
'A004', # todo enableme import shadowing builtin
'PIE796', # todo enableme Enum contains duplicate value
]
Expand Down