mirror of https://github.com/python/cpython
gh-109151: Enable readline in the sqlite3 CLI (GH-109152)
This commit is contained in:
parent
e9f2352b7b
commit
254e30c487
|
@ -116,6 +116,10 @@ def main(*args):
|
|||
else:
|
||||
# No SQL provided; start the REPL.
|
||||
console = SqliteInteractiveConsole(con)
|
||||
try:
|
||||
import readline
|
||||
except ImportError:
|
||||
pass
|
||||
console.interact(banner, exitmsg="")
|
||||
finally:
|
||||
con.close()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Enable ``readline`` editing features in the :ref:`sqlite3 command-line interface <sqlite3-cli>` (``python -m sqlite3``).
|
Loading…
Reference in New Issue