https://github.com/jkeresman01/jsql
Mini SQL shell working on an in memory database.
https://github.com/jkeresman01/jsql
cli cobra go postgres psql repl sql
Last synced: about 8 hours ago
JSON representation
Mini SQL shell working on an in memory database.
- Host: GitHub
- URL: https://github.com/jkeresman01/jsql
- Owner: jkeresman01
- License: mit
- Created: 2025-10-04T18:07:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-10T21:26:33.000Z (9 months ago)
- Last Synced: 2026-05-01T19:06:40.959Z (3 months ago)
- Topics: cli, cobra, go, postgres, psql, repl, sql
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsql
Mini SQL shell working on an in memory DB — for learning how real database shells work, one command at a time.
## Currently supported ##
```shell
jsql> CREATE DATABASE shop;
Database 'shop' created.
jsql> \connect shop
Connected to database 'shop'.
jsql> INSERT INTO users VALUES (1, 'Milica');
1 row inserted.
jsql> \disconnect
Disconnected from database 'shop'.
jsql> SELECT * FROM users;
Error: no database selected.
jsql> \connect shop
Connected to database 'shop'.
jsql(shop)> SELECT * FROM users;
+-------+--------+
| COL1 | COL2 |
+-------+--------+
| 1 | Milica |
+-------+--------+
(1 row)
```