{"id":26053460,"url":"https://github.com/jeninsutradhar/hexadb","last_synced_at":"2025-04-11T00:13:26.044Z","repository":{"id":287288543,"uuid":"956976475","full_name":"JeninSutradhar/HexaDB","owner":"JeninSutradhar","description":"An AI-powered in-memory relational database system that supports SQL-like operations, enhanced with AI-based natural language processing","archived":false,"fork":false,"pushed_at":"2025-03-29T11:35:22.000Z","size":286,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T00:13:25.301Z","etag":null,"topics":["ai-powered","database","db","json","natural-language-processing","nlp","sql"],"latest_commit_sha":null,"homepage":"https://hexadb.vercel.app","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/JeninSutradhar.png","metadata":{},"created_at":"2025-03-29T09:00:21.000Z","updated_at":"2025-04-01T05:23:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JeninSutradhar/HexaDB","commit_stats":null,"previous_names":["jeninsutradhar/hexadb"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeninSutradhar%2FHexaDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeninSutradhar%2FHexaDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeninSutradhar%2FHexaDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeninSutradhar%2FHexaDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeninSutradhar","download_url":"https://codeload.github.com/JeninSutradhar/HexaDB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317730,"owners_count":21083530,"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":["ai-powered","database","db","json","natural-language-processing","nlp","sql"],"created_at":"2025-03-08T07:28:34.988Z","updated_at":"2025-04-11T00:13:26.021Z","avatar_url":"https://github.com/JeninSutradhar.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/1c1e56ac-e524-4c19-af68-847736e6e80d\" alt=\"logo\" width=500\u003e\n\u003c/p\u003e\n\n\nA very simple and Fast **in-memory** database implemented in **C++**.\n\n\n## Description\n\nHexaDB is a basic command-line database system that supports creating tables, inserting, selecting, updating, and deleting rows. It also supports indexing and saving/loading databases to/from files.\n\n## Compilation and Running\n\nTo compile and run the code, you'll need a C++ compiler that supports C++17 (or later).  g++ is recommended.\n\n```bash\ng++ -o hexadb main -std=c++17\n./hexadb\n```\n\n# Architecture\n![Architecture of HexaDB - visual selection](https://github.com/user-attachments/assets/8c2fb406-8bbc-424c-a732-2d4abcaae504)\n\n## Features\n\n*   **Tables:** Create and manage tables with columns of type INT, TEXT, or REAL.\n*   **CRUD Operations:**  Supports INSERT, SELECT, UPDATE, and DELETE operations with basic WHERE clause filtering.\n*   **Indexing:**  Create indexes on columns to potentially speed up queries.\n*   **Persistence:** Save and load databases to/from files.\n*   **SQL:** Interact with the database using SQL-like commands.\n\n## Example Usage\n\n```sql\nCREATE TABLE users (id INT, name TEXT, age INT);\nINSERT INTO users (id, name, age) VALUES (1, 'Alice', 30);\nINSERT INTO users (id, name, age) VALUES (2, 'Bob', 25);\nSELECT * FROM users;\nSELECT name, age FROM users WHERE age \u003e 28;\nUPDATE users SET age = 31 WHERE name = 'Alice';\nDELETE FROM users WHERE id = 2;\nPRINT TABLE users;\nSAVE DB my_database.data\nLOAD DB my_database.data\n```\n\nType `help` in the HexaDB terminal for a list of commands. Type `exit` to quit.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeninsutradhar%2Fhexadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeninsutradhar%2Fhexadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeninsutradhar%2Fhexadb/lists"}