https://github.com/deirror/simplesql145
[Console] A nice console application for SQL in C++
https://github.com/deirror/simplesql145
oop sql terminal
Last synced: about 1 month ago
JSON representation
[Console] A nice console application for SQL in C++
- Host: GitHub
- URL: https://github.com/deirror/simplesql145
- Owner: Deirror
- License: apache-2.0
- Created: 2024-06-21T06:10:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T19:19:48.000Z (over 1 year ago)
- Last Synced: 2025-10-10T07:16:13.017Z (8 months ago)
- Topics: oop, sql, terminal
- Language: C++
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleSQL145

Aim of project?
-
This project aims to demonstrate important concepts of the object-oriented programming - abstraction, encapsulation, inheritance, and polymorphism.
How does it work?
-
When starting the program, the user will need to enter a path to the folder where the database data files are located. The application will then enter dialog mode and allow execution of requests to the database. The database is stored in .ss145 format!
What about the field types?
-
There are currently four types:
| Type Name | Description |
|---|---|
| `Integer` | Represents signed integers |
| `Real` | Rrepresents double-precision floating-point numbers |
| `Text` | Stores character strings or textual information. It can contain any text of any length, including letters, numbers, symbols, and spaces |
| `Null` | It is equal to empty field |
What operations can be found?
-
This project supports most of the basic SQL commands like *select from*, *alter table*, *where expressions*, *delete from* and many other.
| Operation | Description |
|---|---|
| `show tables` | This command shows the names of all existing tables in the given directory |
| `select {, *} from ` | *select from* is used to retrieve specific data from a table in a database |
| `create table ( , ...)` | *create table* is used to define a new table in a database. It specifies the table name, column names, their data types |
| `insert into () values (), ...` | *insert into* is used to add new rows of data into a table. It specifies the table name, the columns to populate, and the corresponding values to insert |
| `alter table add ` | Using *alter table add*, you can add a new column to the table with a specified data type |
| `alter table drop column ` | *alter table* can be used to remove a column from an existing table using *drop column* |
| `alter table rename column to ` | *alter table* with *rename column* is used to rename an existing column in a table. This allows you to update the column name while retaining its data and properties |
| `update test_table set =` | *update set* is used to modify existing records in a table |
| `{update set, delete from, select from, join on} where {or, and} ...`| *where* filter rows based on specified conditions. It is absolutely powerful when combined with *join on* |
| ` join on =` | *join on* is used to combine rows from two or more tables based on a related column. The *on* keyword specifies the condition for joining the tables |
Description of the project
-
- [Project - SQL](https://docs.google.com/document/d/1plPlHe1RXmRjGrpx6Hq911mPP22FcsZgpEZixvR9Sj8/edit?tab=t.0) -//Note: That's my description of my task, it is written in Bulgarian.