Skip to content

Commit 7920c44

Browse files
committed
added readme
1 parent 9f68b31 commit 7920c44

File tree

9 files changed

+56
-5200
lines changed

9 files changed

+56
-5200
lines changed

liteDb/ReadMe.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

liteDb/readMe.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# LiteDB - A terminal-based Lightweight Database Management System
2+
LiteDB is a minified yet powerful terminal-based database management system (DBMS) written in Ruby. It's designed to handle SQL queries for database operations with both case-insensitive and case-sensitive support. This lightweight DBMS uses CSV files as its storage backend, making it easy to work with and perfect for small to medium-sized projects.
3+
4+
## Features
5+
- **SQL Query Support:** LiteDB supports essential SQL query commands like SELECT, INSERT, UPDATE, and DELETE.
6+
7+
- **Case Insensitivity:** You can use SQL queries in either uppercase or lowercase letters, making it user-friendly and flexible.
8+
9+
- **CSV-Based Storage:** LiteDB stores data in CSV files, making it easy to work with and suitable for small-scale projects.
10+
11+
- **Powerful Query Engine:** Utilizes regular expressions, hash manipulation, loops, block arguments, and merge sort algorithms for efficient query processing.
12+
13+
## Installation
14+
LiteDB requires Ruby to be installed on your system. You can install it using the following steps:
15+
16+
1. Clone this repository to your local machine:
17+
18+
```
19+
git clone https://github.com/yourusername/LiteDB.git
20+
21+
cd liteDb
22+
```
23+
24+
## Usage
25+
26+
1. On the terminal, run:
27+
28+
```
29+
ruby my_sqlite_cli.rb
30+
```
31+
2. Interact with LiteDB through the command-line interface (CLI). Here are some sample SQL queries:
32+
33+
**SELECT**
34+
35+
```
36+
SELECT name,email FROM nba_player_data WHERE name='Matt Zunic'
37+
```
38+
39+
**INSERT**
40+
41+
*specific columns*
42+
```
43+
INSERT INTO nba_player_data (name, year_start, year_end, position) VALUES ('Alaa Abdelnaby34', 1991, 1995, 'F-C')
44+
```
45+
*All columns*
46+
```
47+
INSERT INTO nba_player_data VALUES (Alaa Abdelnaby34,1991,1995,F-C,6-10,240,"June 24, 1968",Duke University)
48+
```
49+
**UPDATE**
50+
```
51+
UPDATE nba_player_data SET name = 'Bill Renamed', year_start = '2330' WHERE name = 'Bill Zopf', year_start = '1971'
52+
```
53+
**DELETE**
54+
```
55+
DELETE FROM nba_player_data WHERE name = 'John'
56+
```

mysqlite/ReadMe.md

Whitespace-only changes.

mysqlite/my_sqlite_cli.rb

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)