1
- <h1 align = " center " >
1
+ <center >< h1 >
2
2
ReallySimpleDB 🧩
3
-
4
- <img src =" assets/images/ReallySimpleDB.png " alt =" Icon " height =" 300 " > </img >
5
-
6
- [ ![ made-with-python] ( https://img.shields.io/badge/Made%20with-Python-1f425f.svg )] ( https://www.python.org/ ) [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/09b9e60691484c29b4cac87178b8aaae )] ( https://www.codacy.com/gh/truethari/ReallySimpleDB/dashboard?utm_source=github.com&utm_medium=referral&utm_content=truethari/ReallySimpleDB&utm_campaign=Badge_Grade )
7
-
8
3
</h1 >
9
4
10
- ---
11
-
12
- ** 🔧 This is still in development and may cause errors when using certain functions.**
5
+ <img src =" assets/images/ReallySimpleDB.png " alt =" Icon " height =" 300 " > </img >
13
6
14
- ---
7
+ [ ![ PyPI version ] ( https://img.shields.io/pypi/v/ReallySimpleDB.svg?logo=pypi&logoColor=FFE873 )] ( https://pypi.org/project/ReallySimpleDB/ ) [ ![ tests ] ( https://github.com/truethari/ReallySimpleDB/actions/workflows/tests.yml/badge.svg?branch=alpha )] ( https://github.com/truethari/ReallySimpleDB/actions/workflows/tests.yml ) [ ![ made-with-python ] ( https://img.shields.io/badge/Made%20with-Python-1f425f.svg )] ( https://www.python.org/ ) [ ![ Codacy Badge ] ( https://app.codacy.com/project/badge/Grade/09b9e60691484c29b4cac87178b8aaae )] ( https://www.codacy.com/gh/truethari/ReallySimpleDB/dashboard?utm_source=github.com&utm_medium=referral&utm_content=truethari/ReallySimpleDB&utm_campaign=Badge_Grade ) [ ![ PyPI downloads ] ( https://img.shields.io/pypi/dm/reallysimpledb.svg )] ( https://pypistats.org/packages/reallysimpledb )
15
8
16
9
## What is This
17
10
18
11
---
19
12
20
13
This is a Python application that can be used to manage ** sqlite** databases without using any sql command.
21
14
15
+ </center >
16
+
22
17
## 🚀 Installation
23
18
24
19
You can use pip:
25
20
26
- ~~ pip3 install ReallySimpleDB~~
21
+ ``` console
22
+ pip3 install ReallySimpleDB
23
+ ```
27
24
28
25
or
29
26
@@ -75,13 +72,15 @@ If you want to add columns to an existing table, read the **Add column to table*
75
72
76
73
``` console
77
74
>> all_tables = _dbmanager.all_tables()
75
+
78
76
["STUDENT", "EXAM"]
79
77
```
80
78
81
79
### Check table if exists
82
80
83
81
``` console
84
82
>> _dbmanager.is_table(database="test.db", table_name="STUDENTS")
83
+
85
84
True
86
85
```
87
86
@@ -101,27 +100,31 @@ True
101
100
102
101
``` console
103
102
>> _dbmanager.get_columns(table="STUDENTS")
103
+
104
104
["student_id", "name", "mark"]
105
105
```
106
106
107
107
### Get all columns with types
108
108
109
109
``` console
110
110
>> all_columns = _dbmanager.get_all_column_types(table="STUDENTS")
111
+
111
112
{"student_id": "TEXT", "name": "TEXT", "mark": "INT"}
112
113
```
113
114
114
115
### Get columns type
115
116
116
117
``` console
117
118
>> _dbmanager.get_column_type(table="STUDENTS", column="student_id")
119
+
118
120
"TEXT"
119
121
```
120
122
121
123
### Get primary key of a table
122
124
123
125
``` console
124
126
>> _dbmanager.get_primary_key(table="STUDENTS")
127
+
125
128
"student_id"
126
129
```
127
130
@@ -135,13 +138,15 @@ True
135
138
136
139
``` console
137
140
>> _dbmanager.get_all_records(table="STUDENTS", primary_key="1010")
141
+
138
142
[{'student_id': '1010', 'name': 'ABC', 'mark': 10, 'year': '2022'}, {'student_id': '1011', 'name': 'DEF', 'mark': 100, 'year': '2022'}]
139
143
```
140
144
141
145
### Get record from a table
142
146
143
147
``` console
144
148
>> _dbmanager.get_record(table="STUDENTS", primary_key="1010")
149
+
145
150
{'student_id': '1010', 'name': 'ABC', 'mark': 10, 'year': '2022'}
146
151
```
147
152
@@ -155,9 +160,12 @@ True
155
160
156
161
``` console
157
162
>> _dbmanager.filter_records(table="STUDENTS", values={"year":"2022"})
163
+
158
164
[{'student_id': '1010', 'name': 'ABC', 'mark': 10, 'year': '2022'}, {'student_id': '1011', 'name': 'DEF', 'mark': 100, 'year': '2022'}]
159
165
```
160
166
167
+ ---
168
+
161
169
## 🌱 Contributing Guide
162
170
163
171
- Fork the project from the ` alpha ` branch and submit a Pull Request (PR)
0 commit comments