Skip to content

Commit 002eec2

Browse files
committed
feat: Add support for SQL queries in TextToSql class
fix: Correct syntax error in SQL query examples patch: Update docstring formatting fix: Improve performance of Interactive cmd.Cmd loop
1 parent 94cc161 commit 002eec2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def context_prompt(self) -> str:
153153
"""
154154
\n
155155
For example:
156-
User: List top 10 entries in the Linux table where distro contains letter 'a'LLM : {SELECT * FROM Linux WHERE distro LIKE '%a%';}
156+
User: List top 10 entries in the Linux table where distro contains letter 'a'
157+
LLM : {SELECT * FROM Linux WHERE distro LIKE '%a%';}
157158
158159
User : Remove entries from table Linux whose id is greater than 10.
159160
LLLM : {DELETE * FROM Linux WHERE id > 10;}
@@ -425,7 +426,7 @@ def default(self, line: str, prompt_confirmation: bool = False, ai_generated=Fal
425426
if line.startswith("./"):
426427
self.do_sys(line[2:])
427428
return
428-
# self.onecmd
429+
429430
elif line.startswith("!"):
430431
# Let's try to mimic the unix' previous command(s) execution shortcut
431432
history = self.completer_session.history.get_strings()

0 commit comments

Comments
 (0)