https://github.com/rdev32/simple-db
A very basic database
https://github.com/rdev32/simple-db
Last synced: 9 days ago
JSON representation
A very basic database
- Host: GitHub
- URL: https://github.com/rdev32/simple-db
- Owner: rdev32
- Created: 2023-11-16T19:41:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-02T15:13:51.000Z (over 2 years ago)
- Last Synced: 2025-02-15T04:36:07.553Z (over 1 year ago)
- Language: C++
- Homepage: https://rdev32.github.io/simple-db/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DBMS Project
Welcome to the Database Management System (DBMS) project! This lightweight DBMS is designed to support basic operations such as writing, reading, editing, and deleting data. Additionally, it allows for the creation of tables and subsets of tables (databases). The project aims to be a simplified version of popular systems like SQLite.
## Installation
### Linux
To install the DBMS on a Linux system, follow these steps:
1. Clone the repository:
`git clone https://github.com/your-username/dbms-project.git`
2. Navigate to the project directory:
`cd dbms-project`
3. Run the installation script:
`./install.sh`
## Setup
This database does not suport users so everything is managed as root
## Command Line
### Exporting databases
To export a database, use the following command:
```bash
dbms export -d database_name -f export_file.sql
```
### Loading databases
To load a database from an export file, use the following command:
```bash
dbms load -d database_name -f export_file.sql
```
### Databases
#### Create database
```bash
dbms create_database -d new_database
```
#### Update database
```bash
dbms update_database -d existing_database -n new_database_name
```
#### Read database
```bash
dbms read_database -d database_name
```
#### Delete database
```bash
dbms delete_database -d database_name
```
### Tables
#### Create table
```bash
dbms create_table -d database_name -t new_table
```
#### Update table
```bash
dbms update_table -d database_name -t existing_table -n new_table_name
```
#### Read table
```bash
dbms read_table -d database_name -t table_name
```
#### Delete table
```bash
dbms delete_table -d database_name -t table_name
```
## Info
The following explain the purpose of each file
- `console.hpp` the client that process everything on the console from input to output
- `query.hpp` transforms the SQL queries to operate in this database
- `engine.hpp` manages data with operations like storing, serializing and proccessing
- `task.hpp` balances processes and make sure all querys execute without any conflicts
- `main.cpp` application startup
## Contribute
We welcome contributions to enhance the functionality and usability of this DBMS. If you'd like to contribute, please follow our Contribution Guidelines.
## About
This project is a simple yet powerful database management system aimed at providing essential features similar to SQLite. It is maintained by [Your Name] and is open for contributions from the community. Feel free to reach out with any questions or feedback!