gh-133390: sqlite3 CLI completion for tables, columns, indices, triggers, views, functions, schemata (GH-136101)

This commit is contained in:
Tan Long 2025-10-24 14:26:36 +08:00 committed by GitHub
parent 5d2edf72d2
commit 161b3064ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 202 additions and 15 deletions

View file

@ -143,7 +143,7 @@ def main(*args):
execute(con, args.sql, suppress_errors=False, theme=theme)
else:
# No SQL provided; start the REPL.
with completer():
with completer(con):
console = SqliteInteractiveConsole(con, use_color=True)
console.interact(banner, exitmsg="")
finally: