reydb 1.1.26__py3-none-any.whl → 1.1.28__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.
- reydb/rdb.py +1 -3
- reydb/rfile.py +6 -15
- {reydb-1.1.26.dist-info → reydb-1.1.28.dist-info}/METADATA +1 -1
- {reydb-1.1.26.dist-info → reydb-1.1.28.dist-info}/RECORD +6 -6
- {reydb-1.1.26.dist-info → reydb-1.1.28.dist-info}/WHEEL +0 -0
- {reydb-1.1.26.dist-info → reydb-1.1.28.dist-info}/licenses/LICENSE +0 -0
reydb/rdb.py
CHANGED
@@ -9,17 +9,15 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from typing import Any, Literal,
|
12
|
+
from typing import Any, Literal, overload
|
13
13
|
from collections.abc import Iterable, Generator
|
14
14
|
from enum import EnumType
|
15
15
|
from urllib.parse import quote as urllib_quote
|
16
16
|
from sqlalchemy import create_engine as sqlalchemy_create_engine, text as sqlalchemy_text
|
17
17
|
from sqlalchemy.engine.base import Engine, Connection
|
18
|
-
from sqlalchemy.engine.cursor import CursorResult
|
19
18
|
from sqlalchemy.engine.url import URL
|
20
19
|
from sqlalchemy.sql.elements import TextClause
|
21
20
|
from sqlalchemy.exc import OperationalError
|
22
|
-
from pandas import DataFrame
|
23
21
|
from reykit.rbase import throw, is_iterable, get_first_notnone
|
24
22
|
from reykit.rdata import Generator, to_json
|
25
23
|
from reykit.rmonkey import monkey_sqlalchemy_result_more_fetch, monkey_sqlalchemy_row_index_field
|
reydb/rfile.py
CHANGED
@@ -213,35 +213,26 @@ class DBFile(BaseDatabase):
|
|
213
213
|
{
|
214
214
|
'name': 'size_sum',
|
215
215
|
'select': (
|
216
|
-
'SELECT
|
217
|
-
' ROUND(SUM(`size`) / 1024),\n'
|
218
|
-
" ' KB'\n"
|
219
|
-
')\n'
|
216
|
+
'SELECT FORMAT(SUM(`size`), 0)\n'
|
220
217
|
f'FROM `{self.db_names['file']}`.`{self.db_names['file.data']}`'
|
221
218
|
),
|
222
|
-
'comment': 'File total size.'
|
219
|
+
'comment': 'File total byte size.'
|
223
220
|
},
|
224
221
|
{
|
225
222
|
'name': 'size_avg',
|
226
223
|
'select': (
|
227
|
-
'SELECT
|
228
|
-
' ROUND(AVG(`size`) / 1024),\n'
|
229
|
-
" ' KB'\n"
|
230
|
-
')\n'
|
224
|
+
'SELECT FORMAT(AVG(`size`), 0)\n'
|
231
225
|
f'FROM `{self.db_names['file']}`.`{self.db_names['file.data']}`'
|
232
226
|
),
|
233
|
-
'comment': 'File average size.'
|
227
|
+
'comment': 'File average byte size.'
|
234
228
|
},
|
235
229
|
{
|
236
230
|
'name': 'size_max',
|
237
231
|
'select': (
|
238
|
-
'SELECT
|
239
|
-
' ROUND(MAX(`size`) / 1024),\n'
|
240
|
-
" ' KB'\n"
|
241
|
-
')\n'
|
232
|
+
'SELECT FORMAT(MAX(`size`), 0)\n'
|
242
233
|
f'FROM `{self.db_names['file']}`.`{self.db_names['file.data']}`'
|
243
234
|
),
|
244
|
-
'comment': 'File maximum size.'
|
235
|
+
'comment': 'File maximum byte size.'
|
245
236
|
},
|
246
237
|
{
|
247
238
|
'name': 'last_time',
|
@@ -3,12 +3,12 @@ reydb/rall.py,sha256=i6-ph2cahhTTF17DjUYf6KX3DNxhEvy6iedlSeF4ibI,341
|
|
3
3
|
reydb/rbase.py,sha256=HMhxr7_TyzAusrv5dcc1hf3PmxGWj7m63kKcr5Ikbf4,312
|
4
4
|
reydb/rbuild.py,sha256=LiYGOMZFnZi-aVGfWpKT2aEHks4ygbEubweB0-fczfQ,32344
|
5
5
|
reydb/rconn.py,sha256=XmT4IizNYxCNi1zl88HCgHwkLcWMRWWBcDLwuvjV6aE,6542
|
6
|
-
reydb/rdb.py,sha256=
|
6
|
+
reydb/rdb.py,sha256=fAWwiFgHinOCHnalzh3IdFTrmFhnvjThm_WPoYG45dw,60878
|
7
7
|
reydb/rexec.py,sha256=ezYqSxW6PvvILugnlWtq-BoxfBHAec9f2P5mgIp_heA,8910
|
8
|
-
reydb/rfile.py,sha256=
|
8
|
+
reydb/rfile.py,sha256=zZ9fbnwi4BpJbreRpOujwvE9J_rR_JWkH_5vbWPvKF4,13816
|
9
9
|
reydb/rinfo.py,sha256=p8_nlOHWqnJCD0NRgbsxqnM2VKTDNO9jj4vwgd1HvG0,14267
|
10
10
|
reydb/rparam.py,sha256=d8Ijn86ieYlWsHjAwIjrVujynfgKtMF1E-q41wGtd9Y,6855
|
11
|
-
reydb-1.1.
|
12
|
-
reydb-1.1.
|
13
|
-
reydb-1.1.
|
14
|
-
reydb-1.1.
|
11
|
+
reydb-1.1.28.dist-info/METADATA,sha256=6wDADfjrQBPNtwAxMIIVOQG9_bi3PVe3g4PmDdc_MJM,1550
|
12
|
+
reydb-1.1.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
13
|
+
reydb-1.1.28.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
14
|
+
reydb-1.1.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|