querymodelling 0.0.15__tar.gz → 0.0.16__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.
- {querymodelling-0.0.15 → querymodelling-0.0.16}/PKG-INFO +1 -1
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/_version.py +3 -3
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/sql.py +15 -3
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/PKG-INFO +1 -1
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/SOURCES.txt +2 -0
- querymodelling-0.0.16/querymodelling.egg-info/scm_file_list.json +34 -0
- querymodelling-0.0.16/querymodelling.egg-info/scm_version.json +8 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.github/workflows/run-publish.yml +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.github/workflows/run-tests.yml +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.gitignore +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.readthedocs.yaml +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.vscode/extensions.json +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/.vscode/settings.json +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/AUTHORS.rst +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/HISTORY.md +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/LICENSE +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/README.md +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/Makefile +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/conf.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/index.rst +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/make.bat +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/requirements.txt +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/docs/user/install.rst +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/pyproject.toml +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/__helper__.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/__init__.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/__version__.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/base.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/fields.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/model.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/pydantic.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling/redis_om.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/dependency_links.txt +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/requires.txt +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/top_level.txt +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/setup.cfg +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/setup.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/tests/__init__.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/tests/__main__.py +0 -0
- {querymodelling-0.0.15 → querymodelling-0.0.16}/tests/basic_test.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.0.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 0,
|
|
21
|
+
__version__ = version = '0.0.16'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 0, 16)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g1c20fef9c'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from sqlmodel import Session, select, func, and_
|
|
3
2
|
from sqlmodel.sql.expression import Select
|
|
3
|
+
from sqlmodel import Session, select, func, and_, or_
|
|
4
4
|
from sqlalchemy.orm.attributes import InstrumentedAttribute
|
|
5
5
|
from typing import TypeVar, Sequence, Type, Callable, ParamSpec
|
|
6
6
|
|
|
@@ -48,7 +48,13 @@ def retrieve_paged_entries(
|
|
|
48
48
|
t_index = [t_index]
|
|
49
49
|
|
|
50
50
|
sub_statement = select(*t_index)
|
|
51
|
-
|
|
51
|
+
|
|
52
|
+
if order_clause:
|
|
53
|
+
order_clause = [
|
|
54
|
+
*order_clause,
|
|
55
|
+
*[index.asc() for index in t_index]
|
|
56
|
+
]
|
|
57
|
+
|
|
52
58
|
if search_clause:
|
|
53
59
|
sub_statement = sub_statement.where(*search_clause)
|
|
54
60
|
|
|
@@ -64,7 +70,13 @@ def retrieve_paged_entries(
|
|
|
64
70
|
|
|
65
71
|
statement = select(t).join(
|
|
66
72
|
sub_query, and_(*[
|
|
67
|
-
|
|
73
|
+
or_(
|
|
74
|
+
getattr(t, idx.key) == getattr(sub_query.c, idx.key),
|
|
75
|
+
and_(
|
|
76
|
+
getattr(t, idx.key).is_(None),
|
|
77
|
+
getattr(sub_query.c, idx.key).is_(None)
|
|
78
|
+
)
|
|
79
|
+
)
|
|
68
80
|
for idx in t_index
|
|
69
81
|
])
|
|
70
82
|
).order_by(*order_clause)
|
|
@@ -30,6 +30,8 @@ querymodelling.egg-info/PKG-INFO
|
|
|
30
30
|
querymodelling.egg-info/SOURCES.txt
|
|
31
31
|
querymodelling.egg-info/dependency_links.txt
|
|
32
32
|
querymodelling.egg-info/requires.txt
|
|
33
|
+
querymodelling.egg-info/scm_file_list.json
|
|
34
|
+
querymodelling.egg-info/scm_version.json
|
|
33
35
|
querymodelling.egg-info/top_level.txt
|
|
34
36
|
tests/__init__.py
|
|
35
37
|
tests/__main__.py
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".github/workflows/run-publish.yml",
|
|
4
|
+
".github/workflows/run-tests.yml",
|
|
5
|
+
".gitignore",
|
|
6
|
+
".readthedocs.yaml",
|
|
7
|
+
".vscode/extensions.json",
|
|
8
|
+
".vscode/settings.json",
|
|
9
|
+
"AUTHORS.rst",
|
|
10
|
+
"HISTORY.md",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md",
|
|
13
|
+
"docs/Makefile",
|
|
14
|
+
"docs/conf.py",
|
|
15
|
+
"docs/index.rst",
|
|
16
|
+
"docs/make.bat",
|
|
17
|
+
"docs/requirements.txt",
|
|
18
|
+
"docs/user/install.rst",
|
|
19
|
+
"pyproject.toml",
|
|
20
|
+
"querymodelling/__helper__.py",
|
|
21
|
+
"querymodelling/__init__.py",
|
|
22
|
+
"querymodelling/__version__.py",
|
|
23
|
+
"querymodelling/base.py",
|
|
24
|
+
"querymodelling/fields.py",
|
|
25
|
+
"querymodelling/model.py",
|
|
26
|
+
"querymodelling/pydantic.py",
|
|
27
|
+
"querymodelling/redis_om.py",
|
|
28
|
+
"querymodelling/sql.py",
|
|
29
|
+
"setup.py",
|
|
30
|
+
"tests/__init__.py",
|
|
31
|
+
"tests/__main__.py",
|
|
32
|
+
"tests/basic_test.py"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{querymodelling-0.0.15 → querymodelling-0.0.16}/querymodelling.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|