Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kishyassin/crud-using-text-files-in-c
CRUD operations using just text files in C/CPP >>>> build my mini SGBD from scratch :)
https://github.com/kishyassin/crud-using-text-files-in-c
cpp crud sgbd text-files
Last synced: 1 day ago
JSON representation
CRUD operations using just text files in C/CPP >>>> build my mini SGBD from scratch :)
- Host: GitHub
- URL: https://github.com/kishyassin/crud-using-text-files-in-c
- Owner: kishyassin
- License: mit
- Created: 2024-12-17T20:21:32.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2024-12-29T18:11:29.000Z (16 days ago)
- Last Synced: 2024-12-29T19:17:47.194Z (16 days ago)
- Topics: cpp, crud, sgbd, text-files
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CRUD Application
This project is a simple CRUD (Create, Read, Update, Delete) application implemented in C++. It allows users to manage records with an interactive menu. The records are stored in a text file, and an index file is used to keep track of the positions of the records.
## Features
- **Create Record**: Add a new record with an ID and data.
- **Read Record**: Retrieve a record by its ID.
- **Update Record**: Modify the data of an existing record.
- **Delete Record**: Remove a record by its ID.
- **Persistent Storage**: Records and their indices are stored in text files.## File Structure
- `source/main.cpp`: Contains the main function and the interactive menu.
- `source/logic/crud.cpp`: Implements the CRUD operations.
- `source/logic/crud.h`: Declares the CRUD operations and defines the `Record` structure.
- `source/index/index.cpp`: Manages the index of records.
- `source/index/index.h`: Declares the index management functions and defines the `IndexEntry` structure.
- `indexing.txt`: Stores the index of records.
- `data.txt`: Stores the actual records.### Prerequisites
- C++ compiler (supporting C++20)
- CMake (version 3.29 or higher)## Contributions
Contributions are welcome!For feature requests and bug reports