reydb 1.1.48__py3-none-any.whl → 1.1.50__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/__init__.py +1 -0
- reydb/rall.py +1 -0
- reydb/rbase.py +101 -2
- reydb/rbuild.py +41 -46
- reydb/rconfig.py +16 -18
- reydb/rconn.py +23 -44
- reydb/rdb.py +113 -1454
- reydb/rerror.py +6 -12
- reydb/rexec.py +820 -183
- reydb/rfile.py +10 -17
- reydb/rinfo.py +77 -137
- reydb/rorm.py +39 -0
- reydb/rparam.py +13 -14
- {reydb-1.1.48.dist-info → reydb-1.1.50.dist-info}/METADATA +1 -1
- reydb-1.1.50.dist-info/RECORD +17 -0
- reydb-1.1.48.dist-info/RECORD +0 -16
- {reydb-1.1.48.dist-info → reydb-1.1.50.dist-info}/WHEEL +0 -0
- {reydb-1.1.48.dist-info → reydb-1.1.50.dist-info}/licenses/LICENSE +0 -0
reydb/rfile.py
CHANGED
@@ -11,11 +11,9 @@
|
|
11
11
|
|
12
12
|
from typing import TypedDict, overload
|
13
13
|
from datetime import datetime
|
14
|
-
from reykit.rbase import throw
|
15
14
|
from reykit.ros import File, Folder, get_md5
|
16
15
|
|
17
16
|
from .rbase import DatabaseBase
|
18
|
-
from .rconn import DatabaseConnection
|
19
17
|
from .rdb import Database
|
20
18
|
|
21
19
|
|
@@ -34,22 +32,17 @@ class DatabaseFile(DatabaseBase):
|
|
34
32
|
"""
|
35
33
|
|
36
34
|
|
37
|
-
def __init__(self,
|
35
|
+
def __init__(self, db: Database) -> None:
|
38
36
|
"""
|
39
37
|
Build instance attributes.
|
40
38
|
|
41
39
|
Parameters
|
42
40
|
----------
|
43
|
-
|
41
|
+
db: Database instance.
|
44
42
|
"""
|
45
43
|
|
46
|
-
# Check.
|
47
|
-
if database.backend == 'sqlite':
|
48
|
-
text = 'not suitable for SQLite databases'
|
49
|
-
throw(AssertionError, text=text)
|
50
|
-
|
51
44
|
# Build.
|
52
|
-
self.
|
45
|
+
self.db = db
|
53
46
|
|
54
47
|
## Database path name.
|
55
48
|
self.db_names = {
|
@@ -279,7 +272,7 @@ class DatabaseFile(DatabaseBase):
|
|
279
272
|
]
|
280
273
|
|
281
274
|
# Build.
|
282
|
-
self.
|
275
|
+
self.db.build.build(databases, tables, views, views_stats)
|
283
276
|
|
284
277
|
|
285
278
|
def upload(
|
@@ -307,7 +300,7 @@ class DatabaseFile(DatabaseBase):
|
|
307
300
|
"""
|
308
301
|
|
309
302
|
# Handle parameter.
|
310
|
-
conn = self.
|
303
|
+
conn = self.db.connect()
|
311
304
|
match source:
|
312
305
|
|
313
306
|
## File path.
|
@@ -333,7 +326,7 @@ class DatabaseFile(DatabaseBase):
|
|
333
326
|
file_size = len(file_bytes)
|
334
327
|
|
335
328
|
# Exist.
|
336
|
-
exist = conn.
|
329
|
+
exist = conn.execute.exist(
|
337
330
|
(self.db_names['file'], self.db_names['file.data']),
|
338
331
|
'`md5` = :file_md5',
|
339
332
|
file_md5=file_md5
|
@@ -348,7 +341,7 @@ class DatabaseFile(DatabaseBase):
|
|
348
341
|
'size': file_size,
|
349
342
|
'bytes': file_bytes
|
350
343
|
}
|
351
|
-
conn.
|
344
|
+
conn.execute.insert(
|
352
345
|
(self.db_names['file'], self.db_names['file.data']),
|
353
346
|
data,
|
354
347
|
'ignore'
|
@@ -360,7 +353,7 @@ class DatabaseFile(DatabaseBase):
|
|
360
353
|
'name': file_name,
|
361
354
|
'note': note
|
362
355
|
}
|
363
|
-
conn.
|
356
|
+
conn.execute.insert(
|
364
357
|
(self.db_names['file'], self.db_names['file.information']),
|
365
358
|
data
|
366
359
|
)
|
@@ -424,7 +417,7 @@ class DatabaseFile(DatabaseBase):
|
|
424
417
|
)
|
425
418
|
|
426
419
|
# Execute SQL.
|
427
|
-
result = self.
|
420
|
+
result = self.db.execute(sql, file_id=file_id)
|
428
421
|
|
429
422
|
# Check.
|
430
423
|
if result.empty:
|
@@ -476,7 +469,7 @@ class DatabaseFile(DatabaseBase):
|
|
476
469
|
)
|
477
470
|
|
478
471
|
# Execute SQL.
|
479
|
-
result = self.
|
472
|
+
result = self.db.execute(sql, file_id=file_id)
|
480
473
|
|
481
474
|
# Check.
|
482
475
|
if result.empty:
|
reydb/rinfo.py
CHANGED
@@ -11,10 +11,8 @@
|
|
11
11
|
|
12
12
|
from __future__ import annotations
|
13
13
|
from typing import Any, Literal, overload
|
14
|
-
from reykit.rbase import throw
|
15
14
|
|
16
15
|
from .rbase import DatabaseBase
|
17
|
-
from .rconn import DatabaseConnection
|
18
16
|
from .rdb import Database
|
19
17
|
|
20
18
|
|
@@ -151,11 +149,11 @@ class DatabaseInformation(DatabaseBase):
|
|
151
149
|
# Build.
|
152
150
|
match self:
|
153
151
|
case DatabaseInformationSchema():
|
154
|
-
table = DatabaseInformationDatabase(self.
|
152
|
+
table = DatabaseInformationDatabase(self.db, name)
|
155
153
|
case DatabaseInformationDatabase():
|
156
|
-
table = DatabaseInformationTable(self.
|
154
|
+
table = DatabaseInformationTable(self.db, self.database, name)
|
157
155
|
case DatabaseInformationTable():
|
158
|
-
table = DatabaseInformationColumn(self.
|
156
|
+
table = DatabaseInformationColumn(self.db, self.database, self.table, name)
|
159
157
|
case _:
|
160
158
|
raise AssertionError("class '%s' does not have this method" % type(self).__name__)
|
161
159
|
|
@@ -193,18 +191,18 @@ class DatabaseInformationSchema(DatabaseInformation):
|
|
193
191
|
|
194
192
|
def __init__(
|
195
193
|
self,
|
196
|
-
|
194
|
+
db: Database
|
197
195
|
) -> None:
|
198
196
|
"""
|
199
197
|
Build instance attributes.
|
200
198
|
|
201
199
|
Parameters
|
202
200
|
----------
|
203
|
-
|
201
|
+
db: Database instance.
|
204
202
|
"""
|
205
203
|
|
206
204
|
# Set parameter.
|
207
|
-
self.
|
205
|
+
self.db = db
|
208
206
|
|
209
207
|
|
210
208
|
def _get_info_table(self) -> list[dict]:
|
@@ -216,16 +214,11 @@ class DatabaseInformationSchema(DatabaseInformation):
|
|
216
214
|
Information table.
|
217
215
|
"""
|
218
216
|
|
219
|
-
# SQLite.
|
220
|
-
if self._rdatabase.backend == 'sqlite':
|
221
|
-
throw(AssertionError, self._rdatabase.drivername)
|
222
|
-
|
223
217
|
# Select.
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
)
|
218
|
+
result = self.db.execute.select(
|
219
|
+
'information_schema.SCHEMATA',
|
220
|
+
order='`schema_name`'
|
221
|
+
)
|
229
222
|
|
230
223
|
# Convert.
|
231
224
|
info_table = result.to_table()
|
@@ -261,28 +254,21 @@ class DatabaseInformationDatabase(DatabaseInformation):
|
|
261
254
|
|
262
255
|
def __init__(
|
263
256
|
self,
|
264
|
-
|
265
|
-
|
257
|
+
db: Database,
|
258
|
+
database: str
|
266
259
|
) -> None:
|
267
260
|
"""
|
268
261
|
Build instance attributes.
|
269
262
|
|
270
263
|
Parameters
|
271
264
|
----------
|
272
|
-
|
273
|
-
|
265
|
+
db: Database instance.
|
266
|
+
database : Database name.
|
274
267
|
"""
|
275
268
|
|
276
|
-
# SQLite.
|
277
|
-
if (
|
278
|
-
rdatabase.backend == 'sqlite'
|
279
|
-
and database_name != 'main'
|
280
|
-
):
|
281
|
-
throw(ValueError, database_name)
|
282
|
-
|
283
269
|
# Set parameter.
|
284
|
-
self.
|
285
|
-
self.
|
270
|
+
self.db = db
|
271
|
+
self.database = database
|
286
272
|
|
287
273
|
|
288
274
|
def _get_info_attrs(self) -> dict:
|
@@ -294,24 +280,20 @@ class DatabaseInformationDatabase(DatabaseInformation):
|
|
294
280
|
Information attribute dictionary.
|
295
281
|
"""
|
296
282
|
|
297
|
-
# SQLite.
|
298
|
-
if self._rdatabase.backend == 'sqlite':
|
299
|
-
throw(AssertionError, self._rdatabase.drivername)
|
300
|
-
|
301
283
|
# Select.
|
302
|
-
where = '`SCHEMA_NAME` = :
|
303
|
-
result = self.
|
284
|
+
where = '`SCHEMA_NAME` = :database'
|
285
|
+
result = self.db.execute.select(
|
304
286
|
'information_schema.SCHEMATA',
|
305
287
|
where=where,
|
306
288
|
limit=1,
|
307
|
-
|
289
|
+
database=self.database
|
308
290
|
)
|
309
291
|
|
310
292
|
# Convert.
|
311
293
|
info_table = result.to_table()
|
312
294
|
|
313
295
|
## Check.
|
314
|
-
assert len(info_table) != 0, "database '%s' not exist" % self.
|
296
|
+
assert len(info_table) != 0, "database '%s' not exist" % self.database
|
315
297
|
|
316
298
|
info_attrs = info_table[0]
|
317
299
|
|
@@ -328,26 +310,19 @@ class DatabaseInformationDatabase(DatabaseInformation):
|
|
328
310
|
"""
|
329
311
|
|
330
312
|
# Select.
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
where = '`TABLE_SCHEMA` = :database_name'
|
339
|
-
result = self._rdatabase.execute_select(
|
340
|
-
'information_schema.TABLES',
|
341
|
-
where=where,
|
342
|
-
order='`TABLE_NAME`',
|
343
|
-
database_name=self._database_name
|
344
|
-
)
|
313
|
+
where = '`TABLE_SCHEMA` = :database'
|
314
|
+
result = self.db.execute.select(
|
315
|
+
'information_schema.TABLES',
|
316
|
+
where=where,
|
317
|
+
order='`TABLE_NAME`',
|
318
|
+
database=self.database
|
319
|
+
)
|
345
320
|
|
346
321
|
# Convert.
|
347
322
|
info_table = result.to_table()
|
348
323
|
|
349
324
|
## Check.
|
350
|
-
assert len(info_table) != 0, "database '%s' not exist" % self.
|
325
|
+
assert len(info_table) != 0, "database '%s' not exist" % self.database
|
351
326
|
|
352
327
|
return info_table
|
353
328
|
|
@@ -374,24 +349,24 @@ class DatabaseInformationTable(DatabaseInformation):
|
|
374
349
|
|
375
350
|
def __init__(
|
376
351
|
self,
|
377
|
-
|
378
|
-
|
379
|
-
|
352
|
+
db: Database,
|
353
|
+
database: str,
|
354
|
+
table: str
|
380
355
|
) -> None:
|
381
356
|
"""
|
382
357
|
Build instance attributes.
|
383
358
|
|
384
359
|
Parameters
|
385
360
|
----------
|
386
|
-
|
387
|
-
|
388
|
-
|
361
|
+
db: Database instance.
|
362
|
+
database : Database name.
|
363
|
+
table : Table name.
|
389
364
|
"""
|
390
365
|
|
391
366
|
# Set parameter.
|
392
|
-
self.
|
393
|
-
self.
|
394
|
-
self.
|
367
|
+
self.db = db
|
368
|
+
self.database = database
|
369
|
+
self.table = table
|
395
370
|
|
396
371
|
|
397
372
|
def _get_info_attrs(self) -> dict:
|
@@ -404,33 +379,20 @@ class DatabaseInformationTable(DatabaseInformation):
|
|
404
379
|
"""
|
405
380
|
|
406
381
|
# Select.
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
where
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
name=self._table_name
|
416
|
-
)
|
417
|
-
|
418
|
-
## Other.
|
419
|
-
else:
|
420
|
-
where = '`TABLE_SCHEMA` = :database_name AND `TABLE_NAME` = :table_name'
|
421
|
-
result = self._rdatabase.execute_select(
|
422
|
-
'information_schema.TABLES',
|
423
|
-
where=where,
|
424
|
-
limit=1,
|
425
|
-
database_name=self._database_name,
|
426
|
-
table_name=self._table_name
|
427
|
-
)
|
382
|
+
where = '`TABLE_SCHEMA` = :database AND `TABLE_NAME` = :table_'
|
383
|
+
result = self.db.execute.select(
|
384
|
+
'information_schema.TABLES',
|
385
|
+
where=where,
|
386
|
+
limit=1,
|
387
|
+
database=self.database,
|
388
|
+
table_=self.table
|
389
|
+
)
|
428
390
|
|
429
391
|
# Convert.
|
430
392
|
info_table = result.to_table()
|
431
393
|
|
432
394
|
## Check.
|
433
|
-
assert len(info_table) != 0, "database '%s' or table '%s' not exist" % (self.
|
395
|
+
assert len(info_table) != 0, "database '%s' or table '%s' not exist" % (self.database, self.table)
|
434
396
|
|
435
397
|
info_attrs = info_table[0]
|
436
398
|
|
@@ -447,28 +409,20 @@ class DatabaseInformationTable(DatabaseInformation):
|
|
447
409
|
"""
|
448
410
|
|
449
411
|
# Select.
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
where = '`TABLE_SCHEMA` = :database_name AND `TABLE_NAME` = :table_name'
|
459
|
-
result = self._rdatabase.execute_select(
|
460
|
-
'information_schema.COLUMNS',
|
461
|
-
where=where,
|
462
|
-
order='`ORDINAL_POSITION`',
|
463
|
-
database_name=self._database_name,
|
464
|
-
table_name=self._table_name
|
465
|
-
)
|
412
|
+
where = '`TABLE_SCHEMA` = :database AND `TABLE_NAME` = :table_'
|
413
|
+
result = self.db.execute.select(
|
414
|
+
'information_schema.COLUMNS',
|
415
|
+
where=where,
|
416
|
+
order='`ORDINAL_POSITION`',
|
417
|
+
database=self.database,
|
418
|
+
table_=self.table
|
419
|
+
)
|
466
420
|
|
467
421
|
# Convert.
|
468
422
|
info_table = result.to_table()
|
469
423
|
|
470
424
|
## Check.
|
471
|
-
assert len(info_table) != 0, "database '%s' or table '%s' not exist" % (self.
|
425
|
+
assert len(info_table) != 0, "database '%s' or table '%s' not exist" % (self.database, self.table)
|
472
426
|
|
473
427
|
return info_table
|
474
428
|
|
@@ -489,27 +443,27 @@ class DatabaseInformationColumn(DatabaseInformation):
|
|
489
443
|
|
490
444
|
def __init__(
|
491
445
|
self,
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
446
|
+
db: Database,
|
447
|
+
database: str,
|
448
|
+
table: str,
|
449
|
+
column: str
|
496
450
|
) -> None:
|
497
451
|
"""
|
498
452
|
Build instance attributes.
|
499
453
|
|
500
454
|
Parameters
|
501
455
|
----------
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
456
|
+
db: Database instance.
|
457
|
+
database : Database name.
|
458
|
+
table : Table name.
|
459
|
+
column : Column name.
|
506
460
|
"""
|
507
461
|
|
508
462
|
# Set parameter.
|
509
|
-
self.
|
510
|
-
self.
|
511
|
-
self.
|
512
|
-
self.
|
463
|
+
self.db = db
|
464
|
+
self.database = database
|
465
|
+
self.table = table
|
466
|
+
self.column = column
|
513
467
|
|
514
468
|
|
515
469
|
def _get_info_attrs(self) -> dict:
|
@@ -522,35 +476,21 @@ class DatabaseInformationColumn(DatabaseInformation):
|
|
522
476
|
"""
|
523
477
|
|
524
478
|
# Select.
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
name=self._column_name
|
535
|
-
)
|
536
|
-
|
537
|
-
## Other.
|
538
|
-
else:
|
539
|
-
where = '`TABLE_SCHEMA` = :database_name AND `TABLE_NAME` = :table_name AND `COLUMN_NAME` = :column_name'
|
540
|
-
result = self._rdatabase.execute_select(
|
541
|
-
'information_schema.COLUMNS',
|
542
|
-
where=where,
|
543
|
-
limit=1,
|
544
|
-
database_name=self._database_name,
|
545
|
-
table_name=self._table_name,
|
546
|
-
column_name=self._column_name
|
547
|
-
)
|
479
|
+
where = '`TABLE_SCHEMA` = :database AND `TABLE_NAME` = :table_ AND `COLUMN_NAME` = :column'
|
480
|
+
result = self.db.execute.select(
|
481
|
+
'information_schema.COLUMNS',
|
482
|
+
where=where,
|
483
|
+
limit=1,
|
484
|
+
database=self.database,
|
485
|
+
table_=self.table,
|
486
|
+
column=self.column
|
487
|
+
)
|
548
488
|
|
549
489
|
# Convert.
|
550
490
|
info_table = result.to_table()
|
551
491
|
|
552
492
|
## Check.
|
553
|
-
assert len(info_table) != 0, "database '%s' or table '%s' or column '%s' not exist" % (self.
|
493
|
+
assert len(info_table) != 0, "database '%s' or table '%s' or column '%s' not exist" % (self.database, self.table, self.column)
|
554
494
|
|
555
495
|
info_attrs = info_table[0]
|
556
496
|
|
reydb/rorm.py
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# !/usr/bin/env python
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
|
4
|
+
"""
|
5
|
+
@Time : 2025-09-23 00:50:32
|
6
|
+
@Author : Rey
|
7
|
+
@Contact : reyxbo@163.com
|
8
|
+
@Explain : Database ORM methods.
|
9
|
+
"""
|
10
|
+
|
11
|
+
|
12
|
+
from sqlmodel import SQLModel, Session
|
13
|
+
|
14
|
+
from .rbase import DatabaseBase
|
15
|
+
from .rdb import Database
|
16
|
+
|
17
|
+
|
18
|
+
__all__ = (
|
19
|
+
'DatabaseORM',
|
20
|
+
)
|
21
|
+
|
22
|
+
|
23
|
+
class DatabaseORM(DatabaseBase):
|
24
|
+
"""
|
25
|
+
Database ORM type.
|
26
|
+
"""
|
27
|
+
|
28
|
+
|
29
|
+
def __init__(self, db: Database) -> None:
|
30
|
+
"""
|
31
|
+
Build instance attributes.
|
32
|
+
|
33
|
+
Parameters
|
34
|
+
----------
|
35
|
+
db: Database instance.
|
36
|
+
"""
|
37
|
+
|
38
|
+
# Build.
|
39
|
+
self.db = db
|
reydb/rparam.py
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
from typing import overload
|
13
13
|
|
14
14
|
from .rbase import DatabaseBase
|
15
|
-
from .rconn import DatabaseConnection
|
16
15
|
from .rdb import Database
|
17
16
|
|
18
17
|
|
@@ -32,7 +31,7 @@ class DatabaseParameters(DatabaseBase):
|
|
32
31
|
|
33
32
|
def __init__(
|
34
33
|
self,
|
35
|
-
|
34
|
+
db: Database,
|
36
35
|
global_: bool
|
37
36
|
) -> None:
|
38
37
|
"""
|
@@ -40,12 +39,12 @@ class DatabaseParameters(DatabaseBase):
|
|
40
39
|
|
41
40
|
Parameters
|
42
41
|
----------
|
43
|
-
|
42
|
+
db: Database instance.
|
44
43
|
global\\_ : Whether base global.
|
45
44
|
"""
|
46
45
|
|
47
46
|
# Set parameter.
|
48
|
-
self.
|
47
|
+
self.db = db
|
49
48
|
self.global_ = global_
|
50
49
|
|
51
50
|
|
@@ -126,13 +125,13 @@ class DatabaseParametersStatus(DatabaseParameters):
|
|
126
125
|
|
127
126
|
## Dictionary.
|
128
127
|
if key is None:
|
129
|
-
result = self.
|
128
|
+
result = self.db.execute(sql, key=key)
|
130
129
|
status = result.to_dict(val_field=1)
|
131
130
|
|
132
131
|
## Value.
|
133
132
|
else:
|
134
133
|
sql += ' LIKE :key'
|
135
|
-
result = self.
|
134
|
+
result = self.db.execute(sql, key=key)
|
136
135
|
row = result.first()
|
137
136
|
if row is None:
|
138
137
|
status = None
|
@@ -196,13 +195,13 @@ class DatabaseParametersVariable(DatabaseParameters):
|
|
196
195
|
|
197
196
|
## Dictionary.
|
198
197
|
if key is None:
|
199
|
-
result = self.
|
198
|
+
result = self.db.execute(sql, key=key)
|
200
199
|
variables = result.to_dict(val_field=1)
|
201
200
|
|
202
201
|
## Value.
|
203
202
|
else:
|
204
203
|
sql += ' LIKE :key'
|
205
|
-
result = self.
|
204
|
+
result = self.db.execute(sql, key=key)
|
206
205
|
row = result.first()
|
207
206
|
if row is None:
|
208
207
|
variables = None
|
@@ -244,7 +243,7 @@ class DatabaseParametersVariable(DatabaseParameters):
|
|
244
243
|
sql = f'SET {sql_set}'
|
245
244
|
|
246
245
|
# Execute SQL.
|
247
|
-
self.
|
246
|
+
self.db.execute(sql)
|
248
247
|
|
249
248
|
|
250
249
|
class DatabaseParametersPragma(DatabaseParameters):
|
@@ -255,18 +254,18 @@ class DatabaseParametersPragma(DatabaseParameters):
|
|
255
254
|
|
256
255
|
def __init__(
|
257
256
|
self,
|
258
|
-
|
257
|
+
db: Database
|
259
258
|
) -> None:
|
260
259
|
"""
|
261
260
|
Build instance attributes.
|
262
261
|
|
263
262
|
Parameters
|
264
263
|
----------
|
265
|
-
|
264
|
+
db: Database instance.
|
266
265
|
"""
|
267
266
|
|
268
267
|
# Set parameter.
|
269
|
-
self.
|
268
|
+
self.db = db
|
270
269
|
|
271
270
|
|
272
271
|
def get(self, key: str) -> str | None:
|
@@ -286,7 +285,7 @@ class DatabaseParametersPragma(DatabaseParameters):
|
|
286
285
|
sql = f'PRAGMA %s' % key
|
287
286
|
|
288
287
|
# Execute SQL.
|
289
|
-
result = self.
|
288
|
+
result = self.db.execute(sql)
|
290
289
|
row = result.first()
|
291
290
|
if row is None:
|
292
291
|
variables = None
|
@@ -320,4 +319,4 @@ class DatabaseParametersPragma(DatabaseParameters):
|
|
320
319
|
sql = ';\n'.join(sql_set_list)
|
321
320
|
|
322
321
|
# Execute SQL.
|
323
|
-
self.
|
322
|
+
self.db.execute(sql)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
reydb/__init__.py,sha256=vwShFPkCDpLTrVGCq1AZgKCGQ8tBBodCxrvrib9ptrs,574
|
2
|
+
reydb/rall.py,sha256=GsXHqvT1k--U53HpDY4SALjIHN8rwgSxeXpJjH5gq2E,409
|
3
|
+
reydb/rbase.py,sha256=A7or663TcrQyq56P813WsV4BlApZIzXOPdZLsT7KwWw,7040
|
4
|
+
reydb/rbuild.py,sha256=8sYuqYR3jKlPfIrCwXk9o-q8cx-VNU0XsIsA6XKIKPo,31850
|
5
|
+
reydb/rconfig.py,sha256=4vT0kKVdb9hJjHPQGtmvenPPRbtR1EP2k7jCgfPR0s8,12657
|
6
|
+
reydb/rconn.py,sha256=IGRiOkk0TzWj-NQ2o6A1FnMqYnDvg2G1Dd-7cA0dpP0,2765
|
7
|
+
reydb/rdb.py,sha256=Ijxja3lb73YmJfzpJBT3bQrqz9rV3TC5w2shQfwj0gQ,12919
|
8
|
+
reydb/rerror.py,sha256=TBAzMsf7BrmelhXr5hbqOYVmmRFQtFkyC2SZQx81oYA,9941
|
9
|
+
reydb/rexec.py,sha256=xIUbTULfmMkLBYZTPX6lyN5yob-eg6M7Xir1j3jf6PM,29071
|
10
|
+
reydb/rfile.py,sha256=k5y3U179NED3gWdyZQ_JRuHmzFTKsZ8aMhxg04ENuHg,15180
|
11
|
+
reydb/rinfo.py,sha256=aM3mMFwgT9pemrusS_YjXAVUCJOJ3V709bEWuB-fkuc,12737
|
12
|
+
reydb/rorm.py,sha256=ZdXPCeflshlg-ABFpEAI7UFJWdqdBYbbi5yrCAE8Fo8,625
|
13
|
+
reydb/rparam.py,sha256=M_tT8nesAResxoDVhk8cmG2N5woYMxXinSGIC2i_8ak,6799
|
14
|
+
reydb-1.1.50.dist-info/METADATA,sha256=JtY5fp1zwawCi2KPhLqytLCK_ze6ZxgJ91r5fjIKmmc,1550
|
15
|
+
reydb-1.1.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
16
|
+
reydb-1.1.50.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
17
|
+
reydb-1.1.50.dist-info/RECORD,,
|
reydb-1.1.48.dist-info/RECORD
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
reydb/__init__.py,sha256=SqjJEBMiUMnKkNfmOvw_jprZcj9Edi0jyBKt67xeYUE,544
|
2
|
-
reydb/rall.py,sha256=UWnbtl4oG4YqXyqTMN_5uqE-QqD5nb_-dvarotlTUeU,388
|
3
|
-
reydb/rbase.py,sha256=HYoFasGBAhXUUHNFP1doGnHBW3-xkgRc32O9KppGSak,4824
|
4
|
-
reydb/rbuild.py,sha256=iXJ76BNlUflJfMAAEbPuQLyVePyye8aDq7MaXD16Ktw,32419
|
5
|
-
reydb/rconfig.py,sha256=akY9zDQ7chmA5Hkf7Q7F_Oqqjn6gDk9B88dyLQEYMak,12886
|
6
|
-
reydb/rconn.py,sha256=UyYx-134b8KwlhBl3D3y5PdXrGceL3n9Oc7bk8xWek0,3475
|
7
|
-
reydb/rdb.py,sha256=iThWa2afN0NUkrcsp4_JXGJwPsyp6Xu-l3Qsl5xxaeY,54288
|
8
|
-
reydb/rerror.py,sha256=UFz9RnuQX83Ki-fAv9ihrRorVMKlUbawaxAwhnS-dVw,10232
|
9
|
-
reydb/rexec.py,sha256=dGdRkG1XR0Z66T0r4nPCSdQzSRWc_Q3t6TPSSrDTIxY,9042
|
10
|
-
reydb/rfile.py,sha256=CeRMdAyVEPrHEYfYb1cPubLn5EWYEHkqezyaEZ1fif8,15507
|
11
|
-
reydb/rinfo.py,sha256=KXTkcpTGAD3p9RVKKcnmc_FjJtiKRPk-K5ZepPOnphQ,15253
|
12
|
-
reydb/rparam.py,sha256=6cnSjNlX54iPS1uxMQdpazPM5XL4J87vVgfL6CIYG3U,7031
|
13
|
-
reydb-1.1.48.dist-info/METADATA,sha256=8zJUpAS0pGVWu_72FQstiWP96_dtTr3a34kb7XS-5kQ,1550
|
14
|
-
reydb-1.1.48.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
-
reydb-1.1.48.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
-
reydb-1.1.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|