reydb 1.2.16__py3-none-any.whl → 1.2.18__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/rconfig.py CHANGED
@@ -24,7 +24,7 @@ from .rbase import DatabaseBase
24
24
 
25
25
 
26
26
  __all__ = (
27
- 'DatabaseTableConfig',
27
+ 'DatabaseORMTableConfig',
28
28
  'DatabaseConfigSuper',
29
29
  'DatabaseConfig',
30
30
  'DatabaseConfigAsync'
@@ -38,9 +38,9 @@ ConfigValueT = TypeVar('T', bound=ConfigValue) # Any.
38
38
  DatabaseT = TypeVar('DatabaseT', 'rdb.Database', 'rdb.DatabaseAsync')
39
39
 
40
40
 
41
- class DatabaseTableConfig(rorm.Model, table=True):
41
+ class DatabaseORMTableConfig(rorm.Model, table=True):
42
42
  """
43
- Database `config` table model.
43
+ Database `config` table ORM model.
44
44
  """
45
45
 
46
46
  __name__ = 'config'
@@ -57,16 +57,9 @@ class DatabaseConfigSuper(DatabaseBase, Generic[DatabaseT]):
57
57
  """
58
58
  Database config super type.
59
59
  Can create database used `self.build_db` method.
60
-
61
- Attributes
62
- ----------
63
- db_names : Database table name mapping dictionary.
64
60
  """
65
61
 
66
- db_names = {
67
- 'config': 'config',
68
- 'stats_config': 'stats_config'
69
- }
62
+ _checked: bool = False
70
63
 
71
64
 
72
65
  def __init__(self, db: DatabaseT) -> None:
@@ -81,10 +74,18 @@ class DatabaseConfigSuper(DatabaseBase, Generic[DatabaseT]):
81
74
  # Build.
82
75
  self.db = db
83
76
 
77
+ # Build Database.
78
+ if not self._checked:
79
+ if type(self) == DatabaseConfig:
80
+ self.build_db()
81
+ elif type(self) == DatabaseConfigAsync:
82
+ db.sync_database.config.build_db()
83
+ self._checked = True
84
+
84
85
 
85
- def handle_build_db(self) -> tuple[list[type[DatabaseTableConfig]], list[dict[str, Any]]] :
86
+ def handle_build_db(self) -> tuple[list[type[DatabaseORMTableConfig]], list[dict[str, Any]]] :
86
87
  """
87
- Handle method of check and build database tables, by `self.db_names`.
88
+ Handle method of check and build database tables.
88
89
 
89
90
  Returns
90
91
  -------
@@ -92,21 +93,21 @@ class DatabaseConfigSuper(DatabaseBase, Generic[DatabaseT]):
92
93
  """
93
94
 
94
95
  # Parameter.
96
+ database = self.db.database
95
97
 
96
98
  ## Table.
97
- DatabaseTableConfig._set_name(self.db_names['config'])
98
- tables = [DatabaseTableConfig]
99
+ tables = [DatabaseORMTableConfig]
99
100
 
100
101
  ## View stats.
101
102
  views_stats = [
102
103
  {
103
- 'path': self.db_names['stats_config'],
104
+ 'path': 'stats_config',
104
105
  'items': [
105
106
  {
106
107
  'name': 'count',
107
108
  'select': (
108
109
  'SELECT COUNT(1)\n'
109
- f'FROM `{self.db.database}`.`{self.db_names['config']}`'
110
+ f'FROM `{database}`.`config`'
110
111
  ),
111
112
  'comment': 'Config count.'
112
113
  },
@@ -114,7 +115,7 @@ class DatabaseConfigSuper(DatabaseBase, Generic[DatabaseT]):
114
115
  'name': 'last_create_time',
115
116
  'select': (
116
117
  'SELECT MAX(`create_time`)\n'
117
- f'FROM `{self.db.database}`.`{self.db_names['config']}`'
118
+ f'FROM `{database}`.`config`'
118
119
  ),
119
120
  'comment': 'Config last record create time.'
120
121
  },
@@ -122,7 +123,7 @@ class DatabaseConfigSuper(DatabaseBase, Generic[DatabaseT]):
122
123
  'name': 'last_update_time',
123
124
  'select': (
124
125
  'SELECT MAX(`update_time`)\n'
125
- f'FROM `{self.db.database}`.`{self.db_names['config']}`'
126
+ f'FROM `{database}`.`config`'
126
127
  ),
127
128
  'comment': 'Config last record update time.'
128
129
  }
@@ -150,7 +151,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
150
151
 
151
152
  def build_db(self) -> None:
152
153
  """
153
- Check and build database tables, by `self.db_names`.
154
+ Check and build database tables.
154
155
  """
155
156
 
156
157
  # Parameter.
@@ -171,7 +172,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
171
172
 
172
173
  # Get.
173
174
  result = self.db.execute.select(
174
- self.db_names['config'],
175
+ 'config',
175
176
  ['key', 'value', 'note'],
176
177
  order='IFNULL(`update_time`, `create_time`) DESC'
177
178
  )
@@ -207,7 +208,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
207
208
  # Get.
208
209
  where = '`key` = :key'
209
210
  result = self.db.execute.select(
210
- self.db_names['config'],
211
+ 'config',
211
212
  '`value`',
212
213
  where,
213
214
  limit=1,
@@ -253,7 +254,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
253
254
  'note': note
254
255
  }
255
256
  result = self.db.execute.insert(
256
- self.db_names['config'],
257
+ 'config',
257
258
  data,
258
259
  'ignore'
259
260
  )
@@ -286,7 +287,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
286
287
 
287
288
  # Update.
288
289
  self.db.execute.insert(
289
- self.db_names['config'],
290
+ 'config',
290
291
  data,
291
292
  'update'
292
293
  )
@@ -309,7 +310,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
309
310
  where = '`key` in :key'
310
311
  limit = None
311
312
  result = self.db.execute.delete(
312
- self.db_names['base.config'],
313
+ 'config',
313
314
  where,
314
315
  limit=limit,
315
316
  key=key
@@ -331,7 +332,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
331
332
 
332
333
  # Get.
333
334
  result = self.db.execute.select(
334
- self.db_names['config'],
335
+ 'config',
335
336
  ['key', 'value']
336
337
  )
337
338
 
@@ -357,7 +358,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
357
358
 
358
359
  # Get.
359
360
  result = self.db.execute.select(
360
- self.db_names['config'],
361
+ 'config',
361
362
  '`key`'
362
363
  )
363
364
 
@@ -382,7 +383,7 @@ class DatabaseConfig(DatabaseConfigSuper['rdb.Database']):
382
383
 
383
384
  # Get.
384
385
  result = self.db.execute.select(
385
- self.db_names['config'],
386
+ 'config',
386
387
  '`value`'
387
388
  )
388
389
 
@@ -466,7 +467,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
466
467
 
467
468
  async def build_db(self) -> None:
468
469
  """
469
- Asynchronous check and build database tables, by `self.db_names`.
470
+ Asynchronous check and build database tables.
470
471
  """
471
472
 
472
473
  # Parameter.
@@ -487,7 +488,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
487
488
 
488
489
  # Get.
489
490
  result = await self.db.execute.select(
490
- self.db_names['config'],
491
+ 'config',
491
492
  ['key', 'value', 'note'],
492
493
  order='IFNULL(`update_time`, `create_time`) DESC'
493
494
  )
@@ -523,7 +524,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
523
524
  # Get.
524
525
  where = '`key` = :key'
525
526
  result = await self.db.execute.select(
526
- self.db_names['config'],
527
+ 'config',
527
528
  '`value`',
528
529
  where,
529
530
  limit=1,
@@ -569,7 +570,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
569
570
  'note': note
570
571
  }
571
572
  result = await self.db.execute.insert(
572
- self.db_names['config'],
573
+ 'config',
573
574
  data,
574
575
  'ignore'
575
576
  )
@@ -602,7 +603,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
602
603
 
603
604
  # Update.
604
605
  await self.db.execute.insert(
605
- self.db_names['config'],
606
+ 'config',
606
607
  data,
607
608
  'update'
608
609
  )
@@ -625,7 +626,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
625
626
  where = '`key` in :key'
626
627
  limit = None
627
628
  result = await self.db.execute.delete(
628
- self.db_names['config'],
629
+ 'config',
629
630
  where,
630
631
  limit=limit,
631
632
  key=key
@@ -647,7 +648,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
647
648
 
648
649
  # Get.
649
650
  result = await self.db.execute.select(
650
- self.db_names['config'],
651
+ 'config',
651
652
  ['key', 'value']
652
653
  )
653
654
 
@@ -673,7 +674,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
673
674
 
674
675
  # Get.
675
676
  result = await self.db.execute.select(
676
- self.db_names['config'],
677
+ 'config',
677
678
  '`key`'
678
679
  )
679
680
 
@@ -698,7 +699,7 @@ class DatabaseConfigAsync(DatabaseConfigSuper['rdb.DatabaseAsync']):
698
699
 
699
700
  # Get.
700
701
  result = await self.db.execute.select(
701
- self.db_names['config'],
702
+ 'config',
702
703
  '`value`'
703
704
  )
704
705
 
reydb/rdb.py CHANGED
@@ -9,7 +9,7 @@
9
9
  """
10
10
 
11
11
 
12
- from typing import TypeVar, Generic
12
+ from typing import TypeVar, Generic, overload
13
13
  from urllib.parse import quote as urllib_quote
14
14
  from pymysql.constants.CLIENT import MULTI_STATEMENTS
15
15
  from sqlalchemy import Engine, create_engine as sqlalchemy_create_engine
@@ -519,6 +519,30 @@ class Database(
519
519
  """
520
520
 
521
521
 
522
+ @property
523
+ def async_database(self) -> 'DatabaseAsync':
524
+ """
525
+ Same engine `DatabaseAsync` instance.
526
+ """
527
+
528
+ # Build.
529
+ db = DatabaseAsync(
530
+ self.host,
531
+ self.port,
532
+ self.username,
533
+ self.password,
534
+ self.database,
535
+ self.pool_size,
536
+ self.max_overflow,
537
+ self.pool_timeout,
538
+ self.pool_recycle,
539
+ self.echo,
540
+ **self.query
541
+ )
542
+
543
+ return db
544
+
545
+
522
546
  class DatabaseAsync(
523
547
  DatabaseSuper[
524
548
  AsyncEngine,
@@ -539,6 +563,30 @@ class DatabaseAsync(
539
563
  """
540
564
 
541
565
 
566
+ @property
567
+ def sync_database(self) -> Database:
568
+ """
569
+ Same engine `Database` instance.
570
+ """
571
+
572
+ # Build.
573
+ db = Database(
574
+ self.host,
575
+ self.port,
576
+ self.username,
577
+ self.password,
578
+ self.database,
579
+ self.pool_size,
580
+ self.max_overflow,
581
+ self.pool_timeout,
582
+ self.pool_recycle,
583
+ self.echo,
584
+ **self.query
585
+ )
586
+
587
+ return db
588
+
589
+
542
590
  async def dispose(self) -> None:
543
591
  """
544
592
  Dispose asynchronous connections.
reydb/rerror.py CHANGED
@@ -22,7 +22,7 @@ from .rbase import DatabaseBase
22
22
 
23
23
 
24
24
  __all__ = (
25
- 'DatabaseTableError',
25
+ 'DatabaseORMTableError',
26
26
  'DatabaseErrorSuper',
27
27
  'DatabaseError',
28
28
  'DatabaseErrorAsync'
@@ -32,9 +32,9 @@ __all__ = (
32
32
  DatabaseT = TypeVar('DatabaseT', 'rdb.Database', 'rdb.DatabaseAsync')
33
33
 
34
34
 
35
- class DatabaseTableError(rorm.Model, table=True):
35
+ class DatabaseORMTableError(rorm.Model, table=True):
36
36
  """
37
- Database `error` table model.
37
+ Database `error` table ORM model.
38
38
  """
39
39
 
40
40
  __name__ = 'error'
@@ -51,16 +51,9 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
51
51
  """
52
52
  Database error super type.
53
53
  Can create database used `self.build_db` method.
54
-
55
- Attributes
56
- ----------
57
- db_names : Database table name mapping dictionary.
58
54
  """
59
55
 
60
- db_names = {
61
- 'error': 'error',
62
- 'stats_error': 'stats_error'
63
- }
56
+ _checked: bool = False
64
57
 
65
58
 
66
59
  def __init__(self, db: DatabaseT) -> None:
@@ -75,10 +68,18 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
75
68
  # Build.
76
69
  self.db = db
77
70
 
71
+ # Build Database.
72
+ if not self._checked:
73
+ if type(self) == DatabaseError:
74
+ self.build_db()
75
+ elif type(self) == DatabaseErrorAsync:
76
+ db.sync_database.error.build_db()
77
+ self._checked = True
78
+
78
79
 
79
- def handle_build_db(self) -> tuple[list[type[DatabaseTableError]], list[dict[str, Any]]]:
80
+ def handle_build_db(self) -> tuple[list[type[DatabaseORMTableError]], list[dict[str, Any]]]:
80
81
  """
81
- Handle method of check and build database tables, by `self.db_names`.
82
+ Handle method of check and build database tables.
82
83
 
83
84
  Returns
84
85
  -------
@@ -86,21 +87,21 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
86
87
  """
87
88
 
88
89
  # Parameter.
90
+ database = self.db.database
89
91
 
90
92
  ## Table.
91
- DatabaseTableError._set_name(self.db_names['error'])
92
- tables = [DatabaseTableError]
93
+ tables = [DatabaseORMTableError]
93
94
 
94
95
  ## View stats.
95
96
  views_stats = [
96
97
  {
97
- 'path': self.db_names['stats_error'],
98
+ 'path': 'stats_error',
98
99
  'items': [
99
100
  {
100
101
  'name': 'count',
101
102
  'select': (
102
103
  'SELECT COUNT(1)\n'
103
- f'FROM `{self.db.database}`.`{self.db_names['error']}`'
104
+ f'FROM `{database}`.`error`'
104
105
  ),
105
106
  'comment': 'Error log count.'
106
107
  },
@@ -108,7 +109,7 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
108
109
  'name': 'past_day_count',
109
110
  'select': (
110
111
  'SELECT COUNT(1)\n'
111
- f'FROM `{self.db.database}`.`{self.db_names['error']}`\n'
112
+ f'FROM `{database}`.`error`\n'
112
113
  'WHERE TIMESTAMPDIFF(DAY, `create_time`, NOW()) = 0'
113
114
  ),
114
115
  'comment': 'Error log count in the past day.'
@@ -117,7 +118,7 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
117
118
  'name': 'past_week_count',
118
119
  'select': (
119
120
  'SELECT COUNT(1)\n'
120
- f'FROM `{self.db.database}`.`{self.db_names['error']}`\n'
121
+ f'FROM `{database}`.`error`\n'
121
122
  'WHERE TIMESTAMPDIFF(DAY, `create_time`, NOW()) <= 6'
122
123
  ),
123
124
  'comment': 'Error log count in the past week.'
@@ -126,7 +127,7 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
126
127
  'name': 'past_month_count',
127
128
  'select': (
128
129
  'SELECT COUNT(1)\n'
129
- f'FROM `{self.db.database}`.`{self.db_names['error']}`\n'
130
+ f'FROM `{database}`.`error`\n'
130
131
  'WHERE TIMESTAMPDIFF(DAY, `create_time`, NOW()) <= 29'
131
132
  ),
132
133
  'comment': 'Error log count in the past month.'
@@ -135,7 +136,7 @@ class DatabaseErrorSuper(DatabaseBase, Generic[DatabaseT]):
135
136
  'name': 'last_time',
136
137
  'select': (
137
138
  'SELECT MAX(`create_time`)\n'
138
- f'FROM `{self.db.database}`.`{self.db_names['error']}`'
139
+ f'FROM `{database}`.`error`'
139
140
  ),
140
141
  'comment': 'Error log last record create time.'
141
142
  }
@@ -193,7 +194,7 @@ class DatabaseError(DatabaseErrorSuper['rdb.Database']):
193
194
 
194
195
  def build_db(self) -> None:
195
196
  """
196
- Check and build database tables, by `self.db_names`.
197
+ Check and build database tables.
197
198
  """
198
199
 
199
200
  # Parameter.
@@ -224,7 +225,7 @@ class DatabaseError(DatabaseErrorSuper['rdb.Database']):
224
225
 
225
226
  # Insert.
226
227
  self.db.execute.insert(
227
- self.db_names['error'],
228
+ 'error',
228
229
  data=data
229
230
  )
230
231
 
@@ -371,7 +372,7 @@ class DatabaseErrorAsync(DatabaseErrorSuper['rdb.DatabaseAsync']):
371
372
 
372
373
  async def build_db(self) -> None:
373
374
  """
374
- Asynchronous check and build database tables, by `self.db_names`.
375
+ Asynchronous check and build database tables.
375
376
  """
376
377
 
377
378
  # Parameter.
@@ -402,7 +403,7 @@ class DatabaseErrorAsync(DatabaseErrorSuper['rdb.DatabaseAsync']):
402
403
 
403
404
  # Insert.
404
405
  await self.db.execute.insert(
405
- self.db_names['error'],
406
+ 'error',
406
407
  data=data
407
408
  )
408
409
 
reydb/rexec.py CHANGED
@@ -28,7 +28,6 @@ from .rbase import DatabaseBase, handle_sql, handle_data
28
28
 
29
29
  __all__ = (
30
30
  'Result',
31
- 'ResultORM',
32
31
  'DatabaseExecuteSuper',
33
32
  'DatabaseExecute',
34
33
  'DatabaseExecuteAsync'
reydb/rorm.py CHANGED
@@ -560,32 +560,12 @@ class DatabaseORMSuper(DatabaseORMBase, Generic[DatabaseT, DatabaseORMSessionT])
560
560
  class DatabaseORM(DatabaseORMSuper['rdb.Database', 'DatabaseORMSession']):
561
561
  """
562
562
  Database ORM type.
563
-
564
- Attributes
565
- ----------
566
- metaData : Registry metadata instance.
567
- DatabaseModel : Database ORM model type.
568
- Field : Database ORM model field type.
569
- Config : Database ORM model config type.
570
- types : Database ORM model filed types module.
571
- wrap_validate_model : Create decorator of validate database ORM model.
572
- wrap_validate_filed : Create decorator of validate database ORM model field.
573
563
  """
574
564
 
575
565
 
576
566
  class DatabaseORMAsync(DatabaseORMSuper['rdb.DatabaseAsync', 'DatabaseORMSessionAsync']):
577
567
  """
578
568
  Asynchronous database ORM type.
579
-
580
- Attributes
581
- ----------
582
- metaData : Registry metadata instance.
583
- DatabaseModel : Database ORM model type.
584
- Field : Database ORM model field type.
585
- Config : Database ORM model config type.
586
- types : Database ORM model filed types module.
587
- wrap_validate_model : Create decorator of validate database ORM model.
588
- wrap_validate_filed : Create decorator of validate database ORM model field.
589
569
  """
590
570
 
591
571
 
@@ -1607,13 +1587,10 @@ class DatabaseORMStatementAsync(DatabaseORMStatementSuper[DatabaseORMSessionAsyn
1607
1587
  class DatabaseORMStatementSelectSuper(DatabaseORMStatementSuper, Select):
1608
1588
  """
1609
1589
  Database ORM `select` statement super type.
1610
-
1611
- Attributes
1612
- ----------
1613
- inherit_cache : Compatible type.
1614
1590
  """
1615
1591
 
1616
1592
  inherit_cache: Final = True
1593
+ 'Compatible type.'
1617
1594
 
1618
1595
 
1619
1596
  def fields(self, *names: str) -> Self:
@@ -1672,13 +1649,10 @@ class DatabaseORMStatementSelectSuper(DatabaseORMStatementSuper, Select):
1672
1649
  class DatabaseORMStatementSelect(DatabaseORMStatement, DatabaseORMStatementSelectSuper, Generic[DatabaseORMModelT]):
1673
1650
  """
1674
1651
  Database ORM `select` statement type.
1675
-
1676
- Attributes
1677
- ----------
1678
- inherit_cache : Compatible type.
1679
1652
  """
1680
1653
 
1681
1654
  inherit_cache: Final = True
1655
+ 'Compatible type.'
1682
1656
 
1683
1657
 
1684
1658
  @overload
@@ -1690,13 +1664,10 @@ class DatabaseORMStatementSelect(DatabaseORMStatement, DatabaseORMStatementSelec
1690
1664
  class DatabaseORMStatementSelectAsync(DatabaseORMStatementAsync, DatabaseORMStatementSelectSuper, Generic[DatabaseORMModelT]):
1691
1665
  """
1692
1666
  Asynchronous database ORM `select` statement type.
1693
-
1694
- Attributes
1695
- ----------
1696
- inherit_cache : Compatible type.
1697
1667
  """
1698
1668
 
1699
1669
  inherit_cache: Final = True
1670
+ 'Compatible type.'
1700
1671
 
1701
1672
 
1702
1673
  @overload
@@ -1708,13 +1679,10 @@ class DatabaseORMStatementSelectAsync(DatabaseORMStatementAsync, DatabaseORMStat
1708
1679
  class DatabaseORMStatementInsertSuper(DatabaseORMStatementSuper, Insert):
1709
1680
  """
1710
1681
  Database ORM `select` statement super type.
1711
-
1712
- Attributes
1713
- ----------
1714
- inherit_cache : Compatible type.
1715
1682
  """
1716
1683
 
1717
1684
  inherit_cache: Final = True
1685
+ 'Compatible type.'
1718
1686
 
1719
1687
 
1720
1688
  def ignore(self) -> Self:
@@ -1794,37 +1762,28 @@ class DatabaseORMStatementInsertSuper(DatabaseORMStatementSuper, Insert):
1794
1762
  class DatabaseORMStatementInsert(DatabaseORMStatement, DatabaseORMStatementInsertSuper):
1795
1763
  """
1796
1764
  Database ORM `insert` statement type.
1797
-
1798
- Attributes
1799
- ----------
1800
- inherit_cache : Compatible type.
1801
1765
  """
1802
1766
 
1803
1767
  inherit_cache: Final = True
1768
+ 'Compatible type.'
1804
1769
 
1805
1770
 
1806
1771
  class DatabaseORMStatementInsertAsync(DatabaseORMStatementAsync, DatabaseORMStatementInsertSuper):
1807
1772
  """
1808
1773
  Asynchronous database ORM `insert` statement type.
1809
-
1810
- Attributes
1811
- ----------
1812
- inherit_cache : Compatible type.
1813
1774
  """
1814
1775
 
1815
1776
  inherit_cache: Final = True
1777
+ 'Compatible type.'
1816
1778
 
1817
1779
 
1818
1780
  class DatabaseORMStatementUpdateSuper(DatabaseORMStatementSuper, Update):
1819
1781
  """
1820
1782
  Database ORM `update` statement super type.
1821
-
1822
- Attributes
1823
- ----------
1824
- inherit_cache : Compatible type.
1825
1783
  """
1826
1784
 
1827
1785
  inherit_cache: Final = True
1786
+ 'Compatible type.'
1828
1787
 
1829
1788
 
1830
1789
  def where(self, *clauses: str | _ColumnExpressionArgument[bool]) -> Self:
@@ -1878,37 +1837,28 @@ class DatabaseORMStatementUpdateSuper(DatabaseORMStatementSuper, Update):
1878
1837
  class DatabaseORMStatementUpdate(DatabaseORMStatement, DatabaseORMStatementUpdateSuper):
1879
1838
  """
1880
1839
  Database ORM `update` statement type.
1881
-
1882
- Attributes
1883
- ----------
1884
- inherit_cache : Compatible type.
1885
1840
  """
1886
1841
 
1887
1842
  inherit_cache: Final = True
1843
+ 'Compatible type.'
1888
1844
 
1889
1845
 
1890
1846
  class DatabaseORMStatementUpdateAsync(DatabaseORMStatementAsync, DatabaseORMStatementUpdateSuper):
1891
1847
  """
1892
1848
  Asynchronous database ORM `update` statement type.
1893
-
1894
- Attributes
1895
- ----------
1896
- inherit_cache : Compatible type.
1897
1849
  """
1898
1850
 
1899
1851
  inherit_cache: Final = True
1852
+ 'Compatible type.'
1900
1853
 
1901
1854
 
1902
1855
  class DatabaseORMStatementDeleteSuper(DatabaseORMStatementSuper, Delete):
1903
1856
  """
1904
1857
  Database ORM `delete` statement super type.
1905
-
1906
- Attributes
1907
- ----------
1908
- inherit_cache : Compatible type.
1909
1858
  """
1910
1859
 
1911
1860
  inherit_cache: Final = True
1861
+ 'Compatible type.'
1912
1862
 
1913
1863
 
1914
1864
  def where(self, *clauses: str | _ColumnExpressionArgument[bool]) -> Self:
@@ -1962,25 +1912,19 @@ class DatabaseORMStatementDeleteSuper(DatabaseORMStatementSuper, Delete):
1962
1912
  class DatabaseORMStatementDelete(DatabaseORMStatement, DatabaseORMStatementDeleteSuper):
1963
1913
  """
1964
1914
  Database ORM `delete` statement type.
1965
-
1966
- Attributes
1967
- ----------
1968
- inherit_cache : Compatible type.
1969
1915
  """
1970
1916
 
1971
1917
  inherit_cache: Final = True
1918
+ 'Compatible type.'
1972
1919
 
1973
1920
 
1974
1921
  class DatabaseORMStatementDeleteAsync(DatabaseORMStatementAsync, DatabaseORMStatementDeleteSuper):
1975
1922
  """
1976
1923
  Asynchronous database ORM `delete` statement type.
1977
-
1978
- Attributes
1979
- ----------
1980
- inherit_cache : Compatible type.
1981
1924
  """
1982
1925
 
1983
1926
  inherit_cache: Final = True
1927
+ 'Compatible type.'
1984
1928
 
1985
1929
 
1986
1930
  # Simple path.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reydb
3
- Version: 1.2.16
3
+ Version: 1.2.18
4
4
  Summary: Database method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reydb/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -0,0 +1,15 @@
1
+ reydb/__init__.py,sha256=MJkZy2rOM2VSj_L2kaKe6CJfsg334vb3OLVUqavWKfM,558
2
+ reydb/rall.py,sha256=IxSPGh77xz7ndDC7J8kZ_66Gq_xTAztGtnELUku1Ouw,364
3
+ reydb/rbase.py,sha256=sl2lZWQVC5kXTJid2v5zmy1lMshYLm2NhEQi_dnY_Bw,8232
4
+ reydb/rbuild.py,sha256=QZF26KDL6oRb6RyMEtIJcbiX9TJzK2aUPqjqGjflF7s,80834
5
+ reydb/rconfig.py,sha256=cPFt9QI_lj0u4tChBJ0kHYf2G788epbT2oSYk2r24yo,18010
6
+ reydb/rconn.py,sha256=guRaR8N6RuzZzujwaeq7HhKWTizF9SrUBqEAFjfjpoo,6909
7
+ reydb/rdb.py,sha256=nieXxFqf07Dljl-12Ub8R8s-uNZjai7PN2rqlvOxyqw,15408
8
+ reydb/rerror.py,sha256=O7lbnkAamQa1OKz6WJPeBUkzDTP6LNGqBqCfrI02DO4,14722
9
+ reydb/rexec.py,sha256=uj87vAeKnqNg9tWCy0ycjI9uMj0IgZCS4waL9cC_mTY,52930
10
+ reydb/rinfo.py,sha256=1lMnD-eN97vHrQ1DM8X7mQIhyLmCg6V0P2QwSeF07_c,18127
11
+ reydb/rorm.py,sha256=-pb5SJBk2WOluWC0ci0OOCOKOj2MIxoy3oVRJ7whpFQ,49337
12
+ reydb-1.2.18.dist-info/METADATA,sha256=SCX11Jre4BRem7gUw8lqaZ495-pNgrqhz45C3-3V4Ws,1647
13
+ reydb-1.2.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ reydb-1.2.18.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
15
+ reydb-1.2.18.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- reydb/__init__.py,sha256=MJkZy2rOM2VSj_L2kaKe6CJfsg334vb3OLVUqavWKfM,558
2
- reydb/rall.py,sha256=IxSPGh77xz7ndDC7J8kZ_66Gq_xTAztGtnELUku1Ouw,364
3
- reydb/rbase.py,sha256=sl2lZWQVC5kXTJid2v5zmy1lMshYLm2NhEQi_dnY_Bw,8232
4
- reydb/rbuild.py,sha256=QZF26KDL6oRb6RyMEtIJcbiX9TJzK2aUPqjqGjflF7s,80834
5
- reydb/rconfig.py,sha256=etMaoZw2xDpxo975_W9jifqiO-k8B8jcow9CXNQk5BY,18300
6
- reydb/rconn.py,sha256=guRaR8N6RuzZzujwaeq7HhKWTizF9SrUBqEAFjfjpoo,6909
7
- reydb/rdb.py,sha256=s96XLLH8ZmJm-q4J9RRP6KGkxH3MGodPOcWqB-6-V4U,14356
8
- reydb/rerror.py,sha256=T3GMA2Eon26TuVHONe1BV25-et0c3d0fN6Qt7VxVJDI,14848
9
- reydb/rexec.py,sha256=DdmcJ6j4il06wEyvhttac2GpmGdsZJtOEljH7wUvca8,52948
10
- reydb/rinfo.py,sha256=1lMnD-eN97vHrQ1DM8X7mQIhyLmCg6V0P2QwSeF07_c,18127
11
- reydb/rorm.py,sha256=77QQgQglvA2b4fRH1xBqca7BQ-Hu2MudDopRPJ6E4J4,50761
12
- reydb-1.2.16.dist-info/METADATA,sha256=FVDt2gL0QWxO2pll-GHriXfcugoo9aePSaPHNnmAjfY,1647
13
- reydb-1.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- reydb-1.2.16.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
15
- reydb-1.2.16.dist-info/RECORD,,
File without changes