Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 8bb5598

Browse files
committed
Update README.md
1 parent 450084b commit 8bb5598

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# sqlite3worker.py
2-
Module for simplified sqlite3 in Python
1+
# What is it?
2+
Module with basic functionality to work with SQLite3.
3+
4+
# Installation
5+
```cmd
6+
pip install --upgrade https://github.com/romanin-rf/sqlite3worker.py/releases/download/v1.0.0.0-release/sqlite3worker-1.0.0.0_release-py3-none-any.whl
7+
```
8+
9+
# Example
10+
```python
11+
import sqlite3worker
12+
13+
db = sqlite3worker.SQLite3Worker("main.sqlite3") # "FILEPATH" | ":memory:"
14+
15+
db.create_table(
16+
"users",
17+
{
18+
"id": (int, True), # "id": (int, True) -> "COLON_NAME": (PYTHON_TYPE, IS_PRIMARY_KEY)
19+
"nick": (str, False),
20+
"desc": (str, False)
21+
"birthday": (float, False)
22+
}
23+
)
24+
25+
db.add_data(
26+
"users",
27+
[0, "Roman", "...", 1]
28+
)
29+
```

0 commit comments

Comments
 (0)