Skip to content

pavi2410/sequel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microSQL - Simple ever SQL DB

Supported SQL Syntax:

  • DDL
create table table_name (cols, ...)
drop table table_name
  • DML
select cols, ... from table_name [where ...]
insert into table_name (cols, ...) values (v, ...)
delete from table_name [where ...]

Demo

>select name, age from demo
┏━━━┳━━━━━━┳━━━━━┓
┃   ┃ name ┃ age ┃
┡━━━╇━━━━━━╇━━━━━┩
│ 1 │ foo  │ 12  │
│ 2 │ bar  │ 16  │
│ 3 │ baz  │ 6   │
└───┴──────┴─────┘

Available commands:

Command Description
.showdb Prints the DB
.help Prints this help menu and exits
.exit Exits the REPL
.debug [on|off] Turns debug mode on or off
.db [filename] Changes db file location

Releases

No releases published

Packages

No packages published

Languages