{"id":19213610,"url":"https://github.com/bazilsuhail/flexibase","last_synced_at":"2026-05-09T14:02:08.510Z","repository":{"id":248442682,"uuid":"828674625","full_name":"BazilSuhail/FlexiBase","owner":"BazilSuhail","description":"FlexiBase Shell (a close to real database inspired by MongoDb) that is a testament to the power of C++ and custom-built data structures from scratch.","archived":false,"fork":false,"pushed_at":"2024-12-23T19:06:56.000Z","size":497,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T11:01:57.376Z","etag":null,"topics":["btree-indexes","custom","database","database-management","hashmaps","query-language"],"latest_commit_sha":null,"homepage":"https://entitysafe.netlify.app/pages/AppDetails/-O2Lqfm-dWrxvRaaP_pW","language":"C++","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/BazilSuhail.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-14T21:26:26.000Z","updated_at":"2025-05-23T11:17:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9a29c5e-33d3-4f87-9836-3ef849e9502b","html_url":"https://github.com/BazilSuhail/FlexiBase","commit_stats":null,"previous_names":["bazilsuhail/flexibase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BazilSuhail/FlexiBase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BazilSuhail%2FFlexiBase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BazilSuhail%2FFlexiBase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BazilSuhail%2FFlexiBase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BazilSuhail%2FFlexiBase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BazilSuhail","download_url":"https://codeload.github.com/BazilSuhail/FlexiBase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BazilSuhail%2FFlexiBase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259453453,"owners_count":22860081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["btree-indexes","custom","database","database-management","hashmaps","query-language"],"created_at":"2024-11-09T14:06:38.041Z","updated_at":"2026-05-09T14:02:03.465Z","avatar_url":"https://github.com/BazilSuhail.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# FlexiBase Shell\n\n#### Welcome to FlexiBase Shell, a simple and efficient database management tool I created as a semester project in my 3rd semster under supervision of [Dr. Khawaja Umar Suleman](https://www.linkedin.com/in/umar-suleman/).\n\nFlexiBase Shell is a lightweight, efficient database management tool designed for simplicity and performance. Built from the ground up, all database structures, including indexing, retrieval, and key-value storage, are custom-designed to meet the needs of modern data management.\n\n### 🤖 Tech Stack \n \u003ca href=\"#\"\u003e \n\u003cimg alt=\"C++\" src=\"https://img.shields.io/badge/c++%20-%2300599C.svg?\u0026style=for-the-badge\u0026logo=c%2B%2B\u0026ogoColor=white\"/\u003e\n\u003cimg alt=\"Data Structures and Algorithms\" src=\"https://img.shields.io/badge/Data%20Structures%20%26%20Algorithms-%23007ACC.svg?\u0026style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4gPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSIjMDA3QUNDIiBzdHlsZT0icm91bmQ6IDEuNXB4OyIgLz4gPC9zdmc+\" /\u003e\n\u003cimg alt=\"B-Tree\" src=\"https://img.shields.io/badge/B--Tree-%231FAB89.svg?\u0026style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4gPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSIjMUZBQjg5IiBzdHlsZT0icm91bmQ6IDEuNXB4OyIgLz4gPC9zdmc+\" /\u003e\n\u003cimg alt=\"Hashmaps\" src=\"https://img.shields.io/badge/Hashmaps-%23D97706.svg?\u0026style=for-the-badge\u0026logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4gPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSIjRDk3NzA2IiBzdHlsZT0icm91bmQ6IDEuNXB4OyIgLz4gPC9zdmc+\" /\u003e\n \u003c/a\u003e\n\n### Live Demo\nCheck out the all details of this shell at [Flexibase](https://entitysafe.netlify.app/pages/AppList/-O2Lqfm-dWrxvRaaP_pW). \n\n### Key Features\n- Custom-Built Structures: All data structures, including B-trees for indexing and hashmaps for key-value search, are implemented from scratch to ensure optimal performance and flexibility.\n- Intuitive Shell Commands: FlexiBase Shell offers an easy-to-use command-line interface, allowing users to perform various database operations efficiently.\n- Efficient Data Management: With B-trees for indexing and hashmaps for key-value searches, FlexiBase Shell ensures fast and reliable data retrieval.\n- Compact and Detailed Views: Users can display data in both compact and detailed formats, making it easier to manage and analyze stored information.\n\n\n\n## Tech Stack\n\n**Language:** C++ **_(all data-structures build from scratch)_**\n\n## Installation\nClone the repository\n\n```bash\n   git clone https://github.com/BazilSuhail/FlexiBase.git\n   cd my-project\n```\nThen compile the **Source.cpp** with any Compiler and the shell will appear\n\n## Shell Commands\n\nAt first you can type **help** in the shell to know about the offered query commands\n\n### Create a database\n```bash\n  create \u003cdatabase_name\u003e\n```\n#### Example:\n```bash\n  create students_db\n```\n \n ### Use a Database\n```bash\n  Use a Database\n```\n#### Example:\n```bash\n  use \u003cdatabase_name\u003e\n```\n### Exit the Database\n```bash\n  exit db\n\n``` \n### Insert a New Object in Databse\n```bash\n  db.insert([key1: value1], [key2: value2], ...)\n\n```\n#### Example:\n```bash\n  db.insert([Name: John], [Semester: 2], [CGPA: 3.45], [University: MIT], [Status: Current])\n```\n### Insert or Update a Key-Value Pair in a Document\n```bash\n  db.insertkey(\u003cid\u003e, \u003ckey\u003e, \u003cvalue\u003e)\n\n```\n#### Example:\n```bash\n  db.insertkey(1055, Address, 123 Main St)\n\n```\n### Delete a Key-Value Pair in a Document\n```bash\n  db.deletekey(\u003cid\u003e, \u003ckey\u003e)\n```\n#### Example:\n```bash\n  db.deletekey(1055, Address)\n``` \n### Find an Object by ID\n```bash\n  db.find(\u003cid\u003e)\n\n```\n#### Example:\n```bash\n  db.find(1055)\n```\n\n### Show All Objects (Compact Format)\n```bash\n  db.show()\n``` \n### Show All Objects (Detailed Format)\n```bash\n  db.show.pretty()\n```\n### Find Objects by Key-Value Pair\n```bash\n  db.findbyvalue(\u003ckey\u003e, \u003cvalue\u003e)\n\n```\n#### Example:\n```bash\n  db.findbyvalue(Name, John)\n\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazilsuhail%2Fflexibase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazilsuhail%2Fflexibase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazilsuhail%2Fflexibase/lists"}