CDBMS is a Java-based educational DBMS that demonstrates how a database system can be built from scratch. It provides a menu-driven console interface where users can perform common database operations such as inserting, querying, deleting, and backing up employee records.
- Insert new employee records
- View all records (
SELECT *) - Search employee by ID or Name
- Delete employee by ID
- Backup and restore data using serialization
- Menu-driven console application
CDBMS/
โโโ src/
โ โโโ cdbms/
โ โโโ Employee.java
โ โโโ CDBMS.java
โ โโโ CDBMSApplication.java
โ โโโ ... (other Java files)
โโโ practice/
โโโ Program831.java
โโโ *.java
โโโ Program847.java
โโโ Program847.java
โโโ docs/
โโโ HISTORY.md
โโโ README.md
src/cdbms/โ All Java source files.practice/โ All practice programs.docs/โ All docs related to the proejct.HISTORY.mdโ Keeps track of incremental changes made to each program.
-
Navigate to the
srcdirectory and compile the code into abinfolder:cd src javac cdbms/*.java
-
Run the application:
java cdbms.CDBMSApplication
Example menu:
-------- Welcome to CDBMS ----------
1: Insert into Employee
2: Select * from Employee
3: Take a backup of Table
4: Select * from Employee where EmpID
5: Select * from Employee where EmpName
6: Delete * from Employee where EmpID
20: Terminate the DBMS
- Insert an employee
- Query employees by ID or Name
- Delete records
- Take or restore backups
Check the full changelog in docs/HISTORY.md
- Implement
UPDATEqueries - Add more SQL-like syntax
- Support multiple tables
- Improve persistence with databases instead of file serialization
- Add more database-related logic incrementally.
- Convert Java programs to Python equivalents in later commits.
- Improve modularity and structure for easier experimentation.