An open API service indexing awesome lists of open source software.

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.

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)

```