reydb 1.1.58__py3-none-any.whl → 1.1.60__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/rbase.py +4 -5
- reydb/rbuild.py +677 -177
- reydb/rconfig.py +34 -90
- reydb/rconn.py +109 -105
- reydb/rdb.py +36 -15
- reydb/rerror.py +2 -2
- reydb/rexec.py +64 -45
- reydb/rfile.py +4 -4
- reydb/rorm.py +746 -170
- reydb/rparam.py +5 -2
- {reydb-1.1.58.dist-info → reydb-1.1.60.dist-info}/METADATA +1 -1
- reydb-1.1.60.dist-info/RECORD +17 -0
- reydb-1.1.58.dist-info/RECORD +0 -17
- {reydb-1.1.58.dist-info → reydb-1.1.60.dist-info}/WHEEL +0 -0
- {reydb-1.1.58.dist-info → reydb-1.1.60.dist-info}/licenses/LICENSE +0 -0
reydb/rbase.py
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
from typing import Any, TypedDict, Literal, TypeVar
|
13
13
|
from enum import EnumType
|
14
14
|
from sqlalchemy import Engine, Connection, Transaction, text as sqlalchemy_text
|
15
|
-
from sqlalchemy.
|
15
|
+
from sqlalchemy.orm import Session, SessionTransaction
|
16
|
+
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncConnection, AsyncTransaction, AsyncSession, AsyncSessionTransaction
|
16
17
|
from sqlalchemy.engine.url import URL
|
17
18
|
from sqlalchemy.sql.elements import TextClause
|
18
19
|
from reykit.rbase import Base, throw
|
@@ -36,10 +37,8 @@ __all__ = (
|
|
36
37
|
EngineT = TypeVar('EngineT', Engine, AsyncEngine)
|
37
38
|
ConnectionT = TypeVar('ConnectionT', Connection, AsyncConnection)
|
38
39
|
TransactionT = TypeVar('TransactionT', Transaction, AsyncTransaction)
|
39
|
-
|
40
|
-
|
41
|
-
DatabaseExecuteT = TypeVar('DatabaseExecuteT')
|
42
|
-
DatabaseSchemaT = TypeVar('DatabaseSchemaT')
|
40
|
+
SessionT = TypeVar('SessionT', Session, AsyncSession)
|
41
|
+
SessionTransactionT = TypeVar('SessionTransactionT', SessionTransaction, AsyncSessionTransaction)
|
43
42
|
|
44
43
|
|
45
44
|
URLParameters = TypedDict(
|