PicoDB is a small file-based database with standalone and client-server modes.
- Author: Ekramul Hoque
- Program: 3rd Semester Final Project, IIT, University of Dhaka
- Supervisor: Kazi Muheymin-Us-Sakib
- Title: Professor, University of Dhaka
From the project root, run:
makeThis creates:
picodbfor standalone modepicodb_serverfor server modepicodb_clientfor client mode
Run the database directly:
./picodbThen choose the index type:
1= Hashing2= B+ Tree
Terminal 1:
./picodb_server 8080Terminal 2, 3, 4...:
./picodb_client 127.0.0.1 8080You can open many client windows on the same machine and connect them to the same server.
On the server PC, run:
./picodb_server 8080Find the server PC IP address, then on each client PC run:
./picodb_client <server-ip> 8080Make sure both PCs are on the same network and the server port is open.
Short list of supported commands:
CREATE TABLE- create a new tableINSERT INTO- add a recordSHOW TABLE- show table dataSELECT- read records with a conditionUPDATE- change matching recordsDELETE- remove matching recordsquit/exit/\q- close the client or standalone shell
CREATE TABLE student(id INT PRIMARY, name TEXT, dept TEXT);
INSERT INTO student VALUES(1, "Ekram", "IIT");
SHOW TABLE student;
SELECT * FROM student WHERE id = 1;- In standalone mode, PicoDB asks for the index type at startup.