sqlite-database 0.7.10__tar.gz → 0.7.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.github/workflows/python-publish.yml +2 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/PKG-INFO +76 -29
- sqlite_database-0.7.13/README.md +131 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/check.sh +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/install.bash +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/need-installed/pre-commit +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/pyproject.toml +33 -32
- sqlite_database-0.7.13/requirements.txt +1 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/setup.cfg +2 -2
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database/__init__.py +44 -39
- sqlite_database-0.7.13/sqlite_database/_debug.py +4 -0
- sqlite_database-0.7.13/sqlite_database/column.py +4 -0
- sqlite_database-0.7.13/sqlite_database/csv.py +5 -0
- sqlite_database-0.7.13/sqlite_database/database.py +5 -0
- sqlite_database-0.7.13/sqlite_database/errors.py +5 -0
- sqlite_database-0.7.13/sqlite_database/functions.py +5 -0
- sqlite_database-0.7.13/sqlite_database/index.py +5 -0
- sqlite_database-0.7.13/sqlite_database/locals.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/__init__.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/errors.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/helpers.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/mixin.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/query_builder.py +5 -0
- sqlite_database-0.7.13/sqlite_database/models/type_checkers.py +5 -0
- sqlite_database-0.7.13/sqlite_database/operators.py +6 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/__init__.py +12 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/core.py +5 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/engine.py +5 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/table_creation.py +5 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/typings.py +5 -0
- sqlite_database-0.7.13/sqlite_database/query_builder/utils.py +5 -0
- sqlite_database-0.7.13/sqlite_database/signature.py +5 -0
- sqlite_database-0.7.13/sqlite_database/subquery.py +5 -0
- sqlite_database-0.7.13/sqlite_database/table.py +5 -0
- sqlite_database-0.7.13/sqlite_database/typings.py +4 -0
- sqlite_database-0.7.13/sqlite_database/utils.py +6 -0
- sqlite_database-0.7.13/sqlite_database/workers/connection.py +5 -0
- sqlite_database-0.7.13/sqlite_database/workers/database.py +5 -0
- sqlite_database-0.7.13/sqlite_database/workers/worker.py +5 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/PKG-INFO +76 -29
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/SOURCES.txt +10 -53
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/requires.txt +1 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/model_api/test_model_api.py +1 -1
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_others.py +19 -6
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/test_custom.py +0 -8
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/test_internals.py +1 -1
- sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/bug_report.md +0 -31
- sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/question.md +0 -11
- sqlite_database-0.7.10/.github/workflows/pylint.yml +0 -31
- sqlite_database-0.7.10/.github/workflows/pytest.yml +0 -39
- sqlite_database-0.7.10/.readthedocs.yaml +0 -29
- sqlite_database-0.7.10/.vscode/settings.json +0 -10
- sqlite_database-0.7.10/History.md +0 -79
- sqlite_database-0.7.10/README.md +0 -85
- sqlite_database-0.7.10/TODO.md +0 -60
- sqlite_database-0.7.10/docs/DatabaseModes.md +0 -8
- sqlite_database-0.7.10/docs/Makefile +0 -20
- sqlite_database-0.7.10/docs/ModelAPI.md +0 -267
- sqlite_database-0.7.10/docs/SimpleGuide.md +0 -192
- sqlite_database-0.7.10/docs/_.md +0 -251
- sqlite_database-0.7.10/docs/api_reference.rst +0 -12
- sqlite_database-0.7.10/docs/conf.py +0 -54
- sqlite_database-0.7.10/docs/index.rst +0 -36
- sqlite_database-0.7.10/docs/make.bat +0 -35
- sqlite_database-0.7.10/docs/modules.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.column.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.config.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.csv.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.database.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.errors.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.functions.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.locals.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.model.errors.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.model.helpers.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.model.query_builder.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.model.rst +0 -37
- sqlite_database-0.7.10/docs/sqlite_database.models.errors.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.models.helpers.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.models.mixin.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.models.query_builder.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.models.rst +0 -22
- sqlite_database-0.7.10/docs/sqlite_database.models.type_checkers.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.operators.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.query_builder.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.rst +0 -39
- sqlite_database-0.7.10/docs/sqlite_database.signature.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.subexp.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.subquery.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.table.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.typings.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.utils.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.workers.connection.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.workers.database.rst +0 -7
- sqlite_database-0.7.10/docs/sqlite_database.workers.rst +0 -19
- sqlite_database-0.7.10/project-init.bash +0 -31
- sqlite_database-0.7.10/sqlite_database/_debug.py +0 -46
- sqlite_database-0.7.10/sqlite_database/_utils.py +0 -175
- sqlite_database-0.7.10/sqlite_database/column.py +0 -299
- sqlite_database-0.7.10/sqlite_database/csv.py +0 -79
- sqlite_database-0.7.10/sqlite_database/database.py +0 -230
- sqlite_database-0.7.10/sqlite_database/errors.py +0 -43
- sqlite_database-0.7.10/sqlite_database/functions.py +0 -59
- sqlite_database-0.7.10/sqlite_database/locals.py +0 -26
- sqlite_database-0.7.10/sqlite_database/models/__init__.py +0 -419
- sqlite_database-0.7.10/sqlite_database/models/errors.py +0 -12
- sqlite_database-0.7.10/sqlite_database/models/helpers.py +0 -215
- sqlite_database-0.7.10/sqlite_database/models/mixin.py +0 -64
- sqlite_database-0.7.10/sqlite_database/models/query_builder.py +0 -103
- sqlite_database-0.7.10/sqlite_database/models/type_checkers.py +0 -27
- sqlite_database-0.7.10/sqlite_database/operators.py +0 -53
- sqlite_database-0.7.10/sqlite_database/query_builder.py +0 -757
- sqlite_database-0.7.10/sqlite_database/signature.py +0 -150
- sqlite_database-0.7.10/sqlite_database/subquery.py +0 -63
- sqlite_database-0.7.10/sqlite_database/table.py +0 -670
- sqlite_database-0.7.10/sqlite_database/typings.py +0 -28
- sqlite_database-0.7.10/sqlite_database/utils.py +0 -20
- sqlite_database-0.7.10/sqlite_database/workers/connection.py +0 -214
- sqlite_database-0.7.10/sqlite_database/workers/database.py +0 -62
- sqlite_database-0.7.10/transient/README.md +0 -1
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.editorconfig +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.github/dependabot.yml +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.gitignore +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/LICENSE +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/activate +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/check.bat +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/include/utility.bash +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/need-installed/activate +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/summarize-pylint.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/black.toml +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/pylint.toml +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/pytest.ini +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-requirements.txt +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/docs-requirements.txt +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/setup.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database/workers/__init__.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/dependency_links.txt +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/top_level.txt +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/zip-safe +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/__init__.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/__init__.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/model_api/__init__.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/setup.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/__init__.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_csv.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_delete.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_insert.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_select.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_update.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/manual_test_performances.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/user_benchmark.py +0 -0
- {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/user_helpers.py +0 -0
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlite_database
|
|
3
|
-
Version: 0.7.
|
|
4
|
-
Summary: Easy to use SQLite wrapper
|
|
5
|
-
Home-page: https://github.com/RimuEirnarn/
|
|
3
|
+
Version: 0.7.13
|
|
4
|
+
Summary: Easy to use SQLite wrapper (this project is renamed to LuminaDB)
|
|
5
|
+
Home-page: https://github.com/RimuEirnarn/LuminaDB
|
|
6
6
|
Author: RimuEirnarn
|
|
7
7
|
Author-email: Rimu Eirnarn <rimuru720@proton.me>
|
|
8
8
|
License-Expression: BSD-3-Clause
|
|
9
|
-
Project-URL: Homepage, https://github.com/RimuEirnarn/
|
|
9
|
+
Project-URL: Homepage, https://github.com/RimuEirnarn/LuminaDB-mirror
|
|
10
10
|
Project-URL: Documentation, https://sqlite-database.rtfd.io
|
|
11
|
-
Project-URL: Repository, https://github.com/RimuEirnarn/
|
|
11
|
+
Project-URL: Repository, https://github.com/RimuEirnarn/LuminaDB-mirror.git
|
|
12
12
|
Keywords: sqlite,sqlite3
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
15
|
Requires-Python: >=3.11
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
+
Requires-Dist: LuminaDB
|
|
18
19
|
Provides-Extra: dev
|
|
19
20
|
Requires-Dist: pytest; extra == "dev"
|
|
20
21
|
Requires-Dist: pylint; extra == "dev"
|
|
@@ -44,68 +45,114 @@ Dynamic: license-file
|
|
|
44
45
|

|
|
45
46
|
|
|
46
47
|

|
|
47
|
-

|
|
48
49
|

|
|
49
50
|

|
|
51
|
+
%20downloads%20daily)
|
|
52
|
+
|
|
50
53
|
|
|
51
54
|
</div>
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
**NOTICE!**: This project is renamed to [LuminaDB](https://github.com/RimuEirnarn/LuminaDB), please use LuminaDB instead of this~
|
|
57
|
+
|
|
58
|
+
**SQLite Database** is a lightweight, developer-friendly wrapper for SQLite—designed to feel as intuitive as Laravel's Eloquent ORM, but in Python.
|
|
54
59
|
|
|
55
60
|
> [!WARNING]
|
|
56
|
-
> This
|
|
61
|
+
> ⚠️ This library is still pre-1.0, which means it's not optimized for high performance or low memory usage (yet). Use with care. If you run into serious issues, feel free to open an issue—we’re listening.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 🚀 Usage & Demo
|
|
66
|
+
|
|
67
|
+
Curious how it works in action?
|
|
68
|
+
Check out the live example here: [sqlite-database demo](https://github.com/RimuEirnarn/sqlite_database_demo)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 📦 Installation
|
|
73
|
+
|
|
74
|
+
The library is available via PyPI:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
pip install sqlite-database
|
|
78
|
+
```
|
|
57
79
|
|
|
58
|
-
|
|
80
|
+
Prefer to install directly from GitHub? You can still do this the old-school way:
|
|
59
81
|
|
|
60
|
-
|
|
82
|
+
```sh
|
|
83
|
+
pip install https://github.com/RimuEirnarn/sqlite_database/archive/refs/tags/<latest-version>.zip
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
61
87
|
|
|
62
|
-
##
|
|
88
|
+
## ✨ Features
|
|
63
89
|
|
|
64
|
-
|
|
90
|
+
A quick feature overview is available in [Features.md](https://github.com/RimuEirnarn/sqlite_database/blob/main/docs/SimpleGuide.md)
|
|
65
91
|
|
|
66
|
-
|
|
92
|
+
Or check out the full short docs at:
|
|
93
|
+
📚 [sqlite-database.rtfd.io](https://sqlite-database.rtfd.io/)
|
|
67
94
|
|
|
68
|
-
|
|
95
|
+
---
|
|
69
96
|
|
|
70
|
-
|
|
97
|
+
## 📖 Origin Story & Acknowledgements
|
|
71
98
|
|
|
72
|
-
|
|
99
|
+
Wondering why this exists?
|
|
100
|
+
Read the [History.md](History.md) to learn what led to the birth of this project.
|
|
73
101
|
|
|
74
|
-
|
|
102
|
+
> Pre-contributor: just ChatGPT—so blame the AI if anything’s weird.
|
|
75
103
|
|
|
76
|
-
|
|
104
|
+
---
|
|
77
105
|
|
|
78
|
-
## Contributing
|
|
106
|
+
## 🤝 Contributing
|
|
79
107
|
|
|
80
|
-
|
|
108
|
+
Found a bug? Got an idea? Want to improve something?
|
|
81
109
|
|
|
82
|
-
|
|
110
|
+
- Open an issue for anything noteworthy.
|
|
111
|
+
- PRs are welcome—as long as they align with the project's vision and design goals.
|
|
83
112
|
|
|
84
|
-
|
|
113
|
+
---
|
|
85
114
|
|
|
86
|
-
|
|
115
|
+
## 🛠️ Development Setup
|
|
87
116
|
|
|
88
|
-
|
|
117
|
+
Thanks for considering contributing to `sqlite_database`! Here's what you'll need:
|
|
89
118
|
|
|
90
|
-
|
|
119
|
+
- **Testing**: `pytest`
|
|
120
|
+
- **Linting**: `pylint`
|
|
121
|
+
- **Docs**: `sphinx`
|
|
122
|
+
|
|
123
|
+
Dependencies are split between:
|
|
124
|
+
- `dev-requirements.txt` (core development)
|
|
125
|
+
- `docs-requirements.txt` (documentation)
|
|
126
|
+
|
|
127
|
+
To get started:
|
|
91
128
|
|
|
92
129
|
```sh
|
|
93
130
|
git clone https://github.com/RimuEirnarn/sqlite_database
|
|
94
131
|
cd sqlite_database
|
|
95
132
|
|
|
96
133
|
python -m venv .venv
|
|
97
|
-
.venv/bin/activate
|
|
134
|
+
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
|
|
98
135
|
|
|
99
136
|
pip install -r ./dev-requirements.txt
|
|
100
137
|
./bin/check.sh
|
|
138
|
+
```
|
|
101
139
|
|
|
102
|
-
|
|
140
|
+
The `check.sh` script will run:
|
|
141
|
+
|
|
142
|
+
```sh
|
|
103
143
|
pylint --rcfile ./dev-config/pylint.toml sqlite_database
|
|
104
144
|
pytest --config-file ./dev-config/pytest.ini
|
|
105
145
|
```
|
|
106
146
|
|
|
107
|
-
|
|
147
|
+
Simple and clean.
|
|
148
|
+
|
|
149
|
+
---
|
|
108
150
|
|
|
109
|
-
|
|
151
|
+
## 📄 License
|
|
110
152
|
|
|
153
|
+
This project is licensed under the **BSD 3-Clause "New" or "Revised" License**.
|
|
154
|
+
|
|
155
|
+
Read the full license here:
|
|
111
156
|
[LICENSE](https://github.com/RimuEirnarn/sqlite_database/blob/main/LICENSE)
|
|
157
|
+
|
|
158
|
+
---
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# SQLite Database
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+
[](https://sqlite-database.readthedocs.io/en/latest/?badge=latest)
|
|
17
|
+

|
|
18
|
+

|
|
19
|
+
|
|
20
|
+

|
|
21
|
+

|
|
22
|
+

|
|
23
|
+

|
|
24
|
+
%20downloads%20daily)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
**NOTICE!**: This project is renamed to [LuminaDB](https://github.com/RimuEirnarn/LuminaDB), please use LuminaDB instead of this~
|
|
30
|
+
|
|
31
|
+
**SQLite Database** is a lightweight, developer-friendly wrapper for SQLite—designed to feel as intuitive as Laravel's Eloquent ORM, but in Python.
|
|
32
|
+
|
|
33
|
+
> [!WARNING]
|
|
34
|
+
> ⚠️ This library is still pre-1.0, which means it's not optimized for high performance or low memory usage (yet). Use with care. If you run into serious issues, feel free to open an issue—we’re listening.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🚀 Usage & Demo
|
|
39
|
+
|
|
40
|
+
Curious how it works in action?
|
|
41
|
+
Check out the live example here: [sqlite-database demo](https://github.com/RimuEirnarn/sqlite_database_demo)
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 📦 Installation
|
|
46
|
+
|
|
47
|
+
The library is available via PyPI:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pip install sqlite-database
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Prefer to install directly from GitHub? You can still do this the old-school way:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
pip install https://github.com/RimuEirnarn/sqlite_database/archive/refs/tags/<latest-version>.zip
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## ✨ Features
|
|
62
|
+
|
|
63
|
+
A quick feature overview is available in [Features.md](https://github.com/RimuEirnarn/sqlite_database/blob/main/docs/SimpleGuide.md)
|
|
64
|
+
|
|
65
|
+
Or check out the full short docs at:
|
|
66
|
+
📚 [sqlite-database.rtfd.io](https://sqlite-database.rtfd.io/)
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 📖 Origin Story & Acknowledgements
|
|
71
|
+
|
|
72
|
+
Wondering why this exists?
|
|
73
|
+
Read the [History.md](History.md) to learn what led to the birth of this project.
|
|
74
|
+
|
|
75
|
+
> Pre-contributor: just ChatGPT—so blame the AI if anything’s weird.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🤝 Contributing
|
|
80
|
+
|
|
81
|
+
Found a bug? Got an idea? Want to improve something?
|
|
82
|
+
|
|
83
|
+
- Open an issue for anything noteworthy.
|
|
84
|
+
- PRs are welcome—as long as they align with the project's vision and design goals.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 🛠️ Development Setup
|
|
89
|
+
|
|
90
|
+
Thanks for considering contributing to `sqlite_database`! Here's what you'll need:
|
|
91
|
+
|
|
92
|
+
- **Testing**: `pytest`
|
|
93
|
+
- **Linting**: `pylint`
|
|
94
|
+
- **Docs**: `sphinx`
|
|
95
|
+
|
|
96
|
+
Dependencies are split between:
|
|
97
|
+
- `dev-requirements.txt` (core development)
|
|
98
|
+
- `docs-requirements.txt` (documentation)
|
|
99
|
+
|
|
100
|
+
To get started:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
git clone https://github.com/RimuEirnarn/sqlite_database
|
|
104
|
+
cd sqlite_database
|
|
105
|
+
|
|
106
|
+
python -m venv .venv
|
|
107
|
+
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
|
|
108
|
+
|
|
109
|
+
pip install -r ./dev-requirements.txt
|
|
110
|
+
./bin/check.sh
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The `check.sh` script will run:
|
|
114
|
+
|
|
115
|
+
```sh
|
|
116
|
+
pylint --rcfile ./dev-config/pylint.toml sqlite_database
|
|
117
|
+
pytest --config-file ./dev-config/pytest.ini
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Simple and clean.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 📄 License
|
|
125
|
+
|
|
126
|
+
This project is licensed under the **BSD 3-Clause "New" or "Revised" License**.
|
|
127
|
+
|
|
128
|
+
Read the full license here:
|
|
129
|
+
[LICENSE](https://github.com/RimuEirnarn/sqlite_database/blob/main/LICENSE)
|
|
130
|
+
|
|
131
|
+
---
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools", "setuptools-scm"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "sqlite_database"
|
|
7
|
-
description = "Easy to use SQLite wrapper"
|
|
8
|
-
authors = [
|
|
9
|
-
{name = "Rimu Eirnarn", email = "rimuru720@proton.me"}
|
|
10
|
-
]
|
|
11
|
-
keywords = ["sqlite", "sqlite3"]
|
|
12
|
-
readme = "README.md"
|
|
13
|
-
requires-python = ">=3.11"
|
|
14
|
-
license = "BSD-3-Clause"
|
|
15
|
-
classifiers = [
|
|
16
|
-
"Programming Language :: Python :: 3.11",
|
|
17
|
-
"Programming Language :: Python :: Implementation :: CPython"
|
|
18
|
-
]
|
|
19
|
-
dynamic = ["version"]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools", "setuptools-scm"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sqlite_database"
|
|
7
|
+
description = "Easy to use SQLite wrapper (this project is renamed to LuminaDB)"
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "Rimu Eirnarn", email = "rimuru720@proton.me"}
|
|
10
|
+
]
|
|
11
|
+
keywords = ["sqlite", "sqlite3"]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.11"
|
|
14
|
+
license = "BSD-3-Clause"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: Implementation :: CPython"
|
|
18
|
+
]
|
|
19
|
+
dynamic = ["version"]
|
|
20
|
+
dependencies = ['LuminaDB']
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://github.com/RimuEirnarn/LuminaDB-mirror"
|
|
24
|
+
Documentation = "https://sqlite-database.rtfd.io"
|
|
25
|
+
Repository = "https://github.com/RimuEirnarn/LuminaDB-mirror.git"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools]
|
|
28
|
+
zip-safe = true
|
|
29
|
+
packages = ["sqlite_database", "sqlite_database.models", "sqlite_database.workers"]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = ["pytest", "pylint", "black"]
|
|
33
|
+
docs = ['sphinx', 'myst_parser']
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LuminaDB
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name = sqlite_database
|
|
3
3
|
version = attr: sqlite_database.__version__
|
|
4
4
|
license_files = LICENSE
|
|
5
|
-
url = https://github.com/RimuEirnarn/
|
|
5
|
+
url = https://github.com/RimuEirnarn/LuminaDB
|
|
6
6
|
author = RimuEirnarn
|
|
7
7
|
author_email = rimuru720@proton.me
|
|
8
8
|
description = A weird wrapper for SQLite Connection
|
|
9
9
|
long_description = file: README.md
|
|
10
10
|
long_description_content_type = text/markdown
|
|
11
11
|
project_urls =
|
|
12
|
-
Source Code = https://github.com/RimuEirnarn/
|
|
12
|
+
Source Code = https://github.com/RimuEirnarn/LuminaDB
|
|
13
13
|
|
|
14
14
|
[options]
|
|
15
15
|
packages = sqlite_database
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
"""Database"""
|
|
2
|
-
|
|
3
|
-
from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
from .
|
|
7
|
-
from .
|
|
8
|
-
from .
|
|
9
|
-
from .
|
|
10
|
-
from .
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
1
|
+
"""Database"""
|
|
2
|
+
|
|
3
|
+
from warnings import warn
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
from . import models
|
|
7
|
+
from .models import BaseModel, model, Foreign, Primary, Unique, hook, validate
|
|
8
|
+
from .database import Database
|
|
9
|
+
from .utils import Row, Null
|
|
10
|
+
from .column import Column, text, integer, blob, real
|
|
11
|
+
from .signature import op
|
|
12
|
+
from .operators import this
|
|
13
|
+
from .table import Table
|
|
14
|
+
from .index import Index
|
|
15
|
+
|
|
16
|
+
def test_installed():
|
|
17
|
+
"""Is the module installed?"""
|
|
18
|
+
return True
|
|
19
|
+
|
|
20
|
+
warn("This package is now renamed to LuminaDB. Please upgrade to LuminaDB", DeprecationWarning)
|
|
21
|
+
|
|
22
|
+
__version__ = "0.7.13"
|
|
23
|
+
__all__ = [
|
|
24
|
+
"Database",
|
|
25
|
+
"Table",
|
|
26
|
+
"this",
|
|
27
|
+
"op",
|
|
28
|
+
"Column",
|
|
29
|
+
"Null",
|
|
30
|
+
"Row",
|
|
31
|
+
"text",
|
|
32
|
+
"integer",
|
|
33
|
+
"real",
|
|
34
|
+
"blob",
|
|
35
|
+
"BaseModel",
|
|
36
|
+
"models",
|
|
37
|
+
"Foreign",
|
|
38
|
+
"Primary",
|
|
39
|
+
"Unique",
|
|
40
|
+
"model",
|
|
41
|
+
"hook",
|
|
42
|
+
"validate",
|
|
43
|
+
"Index"
|
|
44
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Query Builder"""
|
|
2
|
+
|
|
3
|
+
from .core import build_delete, build_insert, build_select, build_update
|
|
4
|
+
from .engine import build_update_data, SubQuery
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"build_delete",
|
|
8
|
+
"build_insert",
|
|
9
|
+
"build_select",
|
|
10
|
+
"build_update",
|
|
11
|
+
"build_update_data",
|
|
12
|
+
]
|