Sqlite using command line

前端 未结 6 1529
北恋
北恋 2021-01-01 18:18

Sqlite is kinda frustrating. Each time I run a command, I\'m not able to use the up down left right arrows to retrieve my previously typed commands. Is there any way to enab

6条回答
  •  死守一世寂寞
    2021-01-01 18:57

    A quick solution is to launch SQLite with ReadLine support like following:

    rlwrap sqlite3 database.db
    

    If rlwrap is not installed, you can do so on Ubuntu using the command:

    sudo apt-get install rlwrap
    

    For other Linux versions, check here.

    rlwrap is a ReadLine wrapper, a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command.

提交回复
热议问题