Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kerciu/sqlite-clone
๐ Simple Database in C ๐ โ A lightweight and intuitive database system built in C ๐๏ธ. This project covers essential database operations and is designed to be easy to understand and use. ๐ก๐
https://github.com/kerciu/sqlite-clone
c database database-management memory-management scratch-implementation sqlite
Last synced: 5 days ago
JSON representation
๐ Simple Database in C ๐ โ A lightweight and intuitive database system built in C ๐๏ธ. This project covers essential database operations and is designed to be easy to understand and use. ๐ก๐
- Host: GitHub
- URL: https://github.com/kerciu/sqlite-clone
- Owner: Kerciu
- License: mit
- Created: 2024-06-16T11:27:01.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T20:00:23.000Z (2 months ago)
- Last Synced: 2024-09-07T21:20:25.188Z (2 months ago)
- Topics: c, database, database-management, memory-management, scratch-implementation, sqlite
- Language: C
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐๏ธ KacperSQL
KacperSQL is a simple SQL database engine written in C. It allows creating, modifying, and querying a database. ๐ฅ๏ธ๐พ
## ๐ Table of Contents
- [Project Description](#project-description)
- [Installation](#installation)
- [Usage](#usage)
- [Available Commands](#available-commands)
- [Examples](#examples)## ๐ Project Description
KacperSQL is a database project written in C that implements basic SQL operations such as inserting, updating, deleting, and selecting data. It also supports table management and helper commands. ๐ ๏ธ๐
## ๐ง Installation
1. Clone the repository:
```bash
git clone https://github.com/Kerciu/sqlite-clone.git
```2. Navigate to the project directory:
```bash
cd kacpersql
```3. Build the project using Makefile:
```bash
make
```## ๐ Usage
1. Run the program as it is or choose a working file:
```bash
./KacperSql
```
```bash
./KacperSql
```2. Enter a command to open or create a table:
```sql
OPEN TABLE
```3. Use the available SQL commands to interact with the database. ๐
## ๐ ๏ธ Available Commands
### `HELP`
Displays available commands and details for each command:
- `INSERT `: Inserts a new row into the table. ๐
- `SELECT *`: Selects all rows from the table. ๐
- `SELECT LIMIT `: Selects rows up to the specified id. ๐
- `SELECT BETWEEN AND `: Selects rows between two ids. ๐
- `DELETE `: Deletes the row with the specified id. โ
- `UPDATE `: Updates the row with the specified id. โ๏ธ
- `OPEN TABLE `: Opens an existing table or creates a new one with the specified file name. ๐
- `DROP`: Clears the currently working table. ๐๏ธ### `HELP `
Displays details for a specific command. โ
## ๐ Examples
1. **Creating a Table:**
```sql
OPEN TABLE
```2. **Inserting a Record:**
```sql
INSERT 1 Kacper [email protected]
```3. **Selecting Records:**
```sql
SELECT *
```4. **Updating a Record:**
```sql
UPDATE 1 Kacper [email protected]
```5. **Deleting a Record:**
```sql
DELETE 1
```## ๐ License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. ๐
## ๐ฌ Contact
If you have any questions, feedback, or suggestions, feel free to reach out through the following channels:
- **Author**: [Kacper Gรณrski](mailto:[email protected]) ๐งโ๐ป
- **LinkedIn**: [Kacper Gรณrski](https://www.linkedin.com/in/kacper-gorski-se/) ๐
- **Instagram**: [@kxcper.gorski](https://www.instagram.com/kxcper.gorski/) ๐ธ
- **X**: [@Kerciuu](https://x.com/Kerciuu) ๐ฆ
- **GitHub**: [Kerciu](https://github.com/Kerciu) ๐งโ๐ป
- **Support**: For technical support, please email [[email protected]](mailto:[email protected]) ๐งFor issues, please open a [GitHub Issue](https://github.com/Kerciu/sqlite-clone/issues). ๐
---