InteractiveSQL is an interactive terminal-based SQL management tool.
- Node.js
- A MySQL database
Install the package dependencies:
npm installStart the interactive CLI:
npm startThe program asks for:
- SQL host
- SQL username
- Password
- Database name
After a successful connection, the prompt uses the format:
host@database ->
The prompt continues until the exit command is entered.
| Command | Description |
|---|---|
exit |
Exit the program |
opentable |
Open a table in the connected database |
exittable |
Exit the currently opened table |
listtable |
List all tables in the connected database |
listcolumn |
List all column in the opened table |
insert |
Insert data to table |
help |
Show the command list |
When a table is open, the prompt changes to:
host@database/table ->
You can contribute to this repo with fork and make pull request.
Free to use, modify, and all you want to do.
MIT License