hdx-python-database 1.3.7__py3-none-any.whl → 1.3.8__py3-none-any.whl
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.
- hdx/database/_version.py +16 -3
- hdx/database/database.py +4 -6
- {hdx_python_database-1.3.7.dist-info → hdx_python_database-1.3.8.dist-info}/METADATA +1 -1
- {hdx_python_database-1.3.7.dist-info → hdx_python_database-1.3.8.dist-info}/RECORD +6 -6
- {hdx_python_database-1.3.7.dist-info → hdx_python_database-1.3.8.dist-info}/WHEEL +0 -0
- {hdx_python_database-1.3.7.dist-info → hdx_python_database-1.3.8.dist-info}/licenses/LICENSE +0 -0
hdx/database/_version.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '1.3.
|
|
21
|
-
__version_tuple__ = version_tuple = (1, 3,
|
|
31
|
+
__version__ = version = '1.3.8'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 3, 8)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
hdx/database/database.py
CHANGED
|
@@ -244,12 +244,10 @@ class Database:
|
|
|
244
244
|
Returns:
|
|
245
245
|
Tuple[Session, Any]: (SQLAlchemy session, base)
|
|
246
246
|
"""
|
|
247
|
-
|
|
248
|
-
for
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
batch_rows = rows[start_row:end_row]
|
|
252
|
-
self._session.execute(insert(dbtable), batch_rows)
|
|
247
|
+
|
|
248
|
+
for i in range(0, len(rows), batch_size):
|
|
249
|
+
batch = rows[i : i + batch_size]
|
|
250
|
+
self._session.execute(insert(dbtable), batch)
|
|
253
251
|
self._session.commit()
|
|
254
252
|
|
|
255
253
|
@staticmethod
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
hdx/database/__init__.py,sha256=sG2OYV5LHskgiDkB4IeVeQyPHL22Ta1kuxf-xN92-5E,155
|
|
2
|
-
hdx/database/_version.py,sha256=
|
|
3
|
-
hdx/database/database.py,sha256=
|
|
2
|
+
hdx/database/_version.py,sha256=_hPMnsWQOeGw9lqV0fueN3y4Gw7vLcBaoT0Bio9pJWo,704
|
|
3
|
+
hdx/database/database.py,sha256=pOmshEfhkvlVN-cWJ9LX8ZL99TyZnwPAHOC-v0nF1pM,12926
|
|
4
4
|
hdx/database/dburi.py,sha256=rw8RuLpU85vxYl5-Zk1SdZRAz-tqre_ot5aEnkjhxAQ,2977
|
|
5
5
|
hdx/database/no_timezone.py,sha256=Lw087G3qOf8H70o8Hq_VvOMZ3ANei-lIA_sUlpFU_Uo,1130
|
|
6
6
|
hdx/database/postgresql.py,sha256=5xmGFbzjTPTr9clQw4rOD1ZQEzYuY25Ho2hhz-WdCC8,2923
|
|
7
7
|
hdx/database/utils.py,sha256=nzChgDj2_Mq8GS6xWaNmqOgpAiwK9tGYV_skKbErEVA,401
|
|
8
8
|
hdx/database/views.py,sha256=U4BN9tbjlr93qKkeNbZNo_PCIwGsng09mQ2xFqh5CH0,1636
|
|
9
9
|
hdx/database/with_timezone.py,sha256=GUUylmTwQHp22yedmCVKpVJzvjWgdS9lg9KeqciNJkY,235
|
|
10
|
-
hdx_python_database-1.3.
|
|
11
|
-
hdx_python_database-1.3.
|
|
12
|
-
hdx_python_database-1.3.
|
|
13
|
-
hdx_python_database-1.3.
|
|
10
|
+
hdx_python_database-1.3.8.dist-info/METADATA,sha256=fC99IRhtjoty5SpmkVDobyMMYS3SYhs68ftDUoxOrZM,2841
|
|
11
|
+
hdx_python_database-1.3.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
hdx_python_database-1.3.8.dist-info/licenses/LICENSE,sha256=wc-4GpMn-ODs-U_bTe1YCiPVgvcjzrpYOx2wPuyAeII,1079
|
|
13
|
+
hdx_python_database-1.3.8.dist-info/RECORD,,
|
|
File without changes
|
{hdx_python_database-1.3.7.dist-info → hdx_python_database-1.3.8.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|