{"id":20054678,"url":"https://github.com/mahmudhmh/shellscript-dbms","last_synced_at":"2026-04-18T19:31:50.424Z","repository":{"id":213824524,"uuid":"734676767","full_name":"mahmudhmh/ShellScript-DBMS","owner":"mahmudhmh","description":"The goal of this project is to develop a simple Database Management System (DBMS) using a Bash shell script. ","archived":false,"fork":false,"pushed_at":"2023-12-22T15:46:27.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T00:52:19.725Z","etag":null,"topics":["awk","bash-script","cli","dbms","redhat","sed","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahmudhmh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-22T10:03:51.000Z","updated_at":"2024-03-18T18:57:20.000Z","dependencies_parsed_at":"2023-12-23T12:50:18.547Z","dependency_job_id":"f5632f96-eee1-406c-a711-d345fbc7786c","html_url":"https://github.com/mahmudhmh/ShellScript-DBMS","commit_stats":null,"previous_names":["mahmudhmh/shellscript-dbms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mahmudhmh/ShellScript-DBMS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudhmh%2FShellScript-DBMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudhmh%2FShellScript-DBMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudhmh%2FShellScript-DBMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudhmh%2FShellScript-DBMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmudhmh","download_url":"https://codeload.github.com/mahmudhmh/ShellScript-DBMS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudhmh%2FShellScript-DBMS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awk","bash-script","cli","dbms","redhat","sed","shell-script"],"created_at":"2024-11-13T12:42:38.496Z","updated_at":"2026-04-18T19:31:50.382Z","avatar_url":"https://github.com/mahmudhmh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash Shell Script Database Management System (DBMS)\n![MainMenu](https://github.com/mahmudhmh/ShellScript-DBMS/assets/54104161/ef1e390e-513a-48aa-838b-602c1b542915)\n\n## Project Overview:\n\nThe goal of this project is to develop a simple Database Management System (DBMS) using a Bash shell script. The system allows users to store and retrieve data from the hard disk through a Command Line Interface (CLI) menu.\n\n## Project Features:\n\n### Main Menu:\n\n1. **Create Database:**\n   - Allows users to create a new database, which will be stored as a directory next to the script file.\n\n2. **List Databases:**\n   - Displays a list of existing databases.\n\n3. **Connect To Database:**\n   - Allows users to connect to a specific database, leading to a new screen with additional menu options.\n\n4. **Drop Database:**\n   - Permits users to delete a database along with its contents.\n\n### Database Menu:\n\n1. **Create Table:**\n   - Enables users to define a new table within the connected database, specifying column names and data types.\n\n2. **List Tables:**\n   - Displays a list of tables in the connected database.\n\n3. **Drop Table:**\n   - Allows users to remove a table and its data from the connected database.\n\n4. **Insert into Table:**\n   - Facilitates the insertion of new records into a specified table, validating data types and checking for primary key constraints.\n\n5. **Select From Table:**\n   - Retrieves and displays rows from a specified table in an accepted/good format.\n\n6. **Delete From Table:**\n   - Permits users to delete specific rows from a table based on specified conditions.\n\n7. **Update Table:**\n   - Allows users to update existing records in a table, checking for valid data types and primary key constraints.\n\n## Implementation Details:\n\n- **Database Storage:**\n  - Databases are stored as directories adjacent to the script file.\n\n- **Column Datatypes:**\n  - Users are prompted for column data types during table creation and validated during data insertion and updating.\n\n- **Primary Key:**\n  - Users are prompted to define a primary key during table creation, and the system enforces this constraint during data insertion.\n\n## Bonus Features:\n\n- **GUI Integration:**\n  - A graphical user interface (GUI) could be implemented as an alternative to the menu-based CLI, providing a more user-friendly experience.\n\n## How to Run the Script:\n\n1. **Ensure Bash is Installed:**\n   - Make sure that Bash is installed on your system.\n\n2. **Execute the Script:**\n   - Run the script using the command: `./main.sh`\n\n3. **Follow On-Screen Instructions:**\n   - Follow the on-screen menu instructions to interact with the DBMS.\n\n4. **Explore Database Operations:**\n   - Create, connect, and manipulate databases and tables as needed.\n\n## Contributors:\n\n- [Mahmoud Hussien Mahmoud](https://www.github.com/mahmudhmh)\n\n## License:\n\nThis project is licensed under the [Open Software License 3.0].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmudhmh%2Fshellscript-dbms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmudhmh%2Fshellscript-dbms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmudhmh%2Fshellscript-dbms/lists"}