Skip to content

Commit b63af6c

Browse files
authored
Update readme.md
1 parent deb5cab commit b63af6c

File tree

1 file changed

+47
-41
lines changed

1 file changed

+47
-41
lines changed

readme.md

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,62 @@
1-
# DATABASE OPERATIONS
1+
# 📁 DirectoryDB
22

3-
`CreateDB`
4-
`DeleteDB`
5-
`EmptyDB`
3+
DirectoryDB is a lightweight Python-based database system designed to simplify database operations within Python projects. It offers a comprehensive set of functions covering various aspects of database management. This project provides a convenient way to import and seamlessly integrate a database system without relying on complex queries.
64

5+
## Project Overview
76

8-
# TABLE OPERATIONS
7+
DirectoryDB is constructed from the ground up, leveraging file system CSV This database system is built from scratch, and utilizing essential Python libraries such as Pandas, os, shutil, matplotlib, and datetime. The project strictly adheres to Python conventions, ensuring type-defined variables, functions, and return types. This adherence enhances readability and maintainability, making it a robust choice for Python developers.
98

10-
`CreateTable`
11-
`AddColumnToTable`
12-
`RenameColumn`
13-
`RemoveColumnFromTable`
14-
`RenameTable`
15-
`DeleteTable`
9+
## Features
1610

17-
## CHECK EXISTS
11+
### Database Operations
12+
- `CreateDB`: Create a new database.
13+
- `DeleteDB`: Delete an existing database.
14+
- `EmptyDB`: Empty the contents of a database.
1815

19-
`CheckTableExists`
20-
`CheckDBExists`
21-
`CheckDBTable`
16+
### Table Operations
17+
- `CreateTable`: Create a new table within a database.
18+
- `AddColumnToTable`: Add a new column to an existing table.
19+
- `RenameColumn`: Rename a column in a table.
20+
- `RemoveColumnFromTable`: Remove a column from a table.
21+
- `RenameTable`: Rename an existing table.
22+
- `DeleteTable`: Delete an existing table.
2223

23-
## INSERT ROWS
24+
### Check Exists
25+
- `CheckTableExists`: Check if a table exists in a database.
26+
- `CheckDBExists`: Check if a database exists.
27+
- `CheckDBTable`: Check if a database and table combination exists.
2428

25-
`InsertRows`
29+
### Insert Rows
30+
- `InsertRows`: Insert new rows into a table.
2631

27-
## FETCH ROWS
32+
### Fetch Rows
33+
- `FetchFirstRow`: Retrieve the first row from a table.
34+
- `FetchLastRow`: Retrieve the last row from a table.
35+
- `FetchAllRows`: Retrieve all rows from a table.
36+
- `FetchRowsOnCondition`: Retrieve rows based on a specified condition.
37+
- `FetchRowViaIndex`: Retrieve a row by its index.
38+
- `FetchRowInRange`: Retrieve rows within a specified range.
2839

29-
`FetchFirstRow`
30-
`FetchLastRow `
31-
`FetchAllRows`
32-
`FetchRowsOnCondition `
33-
`FetchRowViaIndex `
34-
`FetchRowInRange`
40+
### Update Rows
41+
- `UpdateLastRow`: Update the last row in a table.
42+
- `UpdateRowsInRange`: Update rows within a specified range.
43+
- `UpdateRowsByIndex`: Update rows based on their index.
44+
- `UpdateRowsOnCondition`: Update rows based on a specified condition.
45+
- `SaveConditionedUpdatedData`: Save the updated data after applying a condition.
3546

36-
## UPDATE ROWS
47+
### Drop/Delete Rows
48+
- `DropRowInRange`: Drop rows within a specified range.
49+
- `DropRowViaIndex`: Drop a row based on its index.
50+
- `DropLastRow`: Drop the last row from a table.
51+
- `DropFirstRow`: Drop the first row from a table.
52+
- `DropRowByCondition`: Drop rows based on a specified condition.
3753

38-
`UpdateLastRow `
39-
`UpdateRowsInRange `
40-
`UpdateRowsByIndex `
41-
`UpdateRowsOnCondition `
42-
`SaveConditionedUpdatedData`
54+
### Show Data in Graph
55+
- `GetTableGraph`: Generate a graph for visualizing the data in a table.
4356

44-
## DROP/DELETE ROW
57+
## Installation
4558

46-
`DropRowInRange `
47-
`DropRowViaIndex `
48-
`DropLastRow `
49-
`DropFirstRow `
50-
`DropRowByCondition`
51-
52-
53-
# SHOW DATA IN GRAPH
54-
55-
`GetTableGraph`
59+
To use DirectoryDB in your Python project, clone the GitHub repository:
5660

61+
```bash
62+
git clone https://github.com/codeterrayt/DirectoryDB.git

0 commit comments

Comments
 (0)