sqlakit 0.1.0__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.
- sqlakit/__init__.py +99 -0
- sqlakit/_base.py +995 -0
- sqlakit/_db.py +540 -0
- sqlakit/_discovery.py +79 -0
- sqlakit/_model.py +275 -0
- sqlakit/_query.py +1156 -0
- sqlakit/_recording.py +385 -0
- sqlakit/_registry.py +69 -0
- sqlakit/_routing.py +43 -0
- sqlakit/_sql.py +408 -0
- sqlakit/asyncio/__init__.py +4 -0
- sqlakit/asyncio/_db.py +552 -0
- sqlakit/asyncio/_registry.py +57 -0
- sqlakit/asyncio/orm.py +662 -0
- sqlakit/asyncio/sql.py +222 -0
- sqlakit/exceptions.py +423 -0
- sqlakit/orm.py +645 -0
- sqlakit/py.typed +0 -0
- sqlakit/sql.py +211 -0
- sqlakit/testing.py +91 -0
- sqlakit/types.py +104 -0
- sqlakit-0.1.0.dist-info/METADATA +408 -0
- sqlakit-0.1.0.dist-info/RECORD +25 -0
- sqlakit-0.1.0.dist-info/WHEEL +4 -0
- sqlakit-0.1.0.dist-info/licenses/LICENSE +21 -0
sqlakit/__init__.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
from ._base import DEFAULT_ENGINE_ARGS, DEFAULT_SESSION_ARGS
|
|
2
|
+
from ._db import Database, RetryingTransaction, Transaction
|
|
3
|
+
from ._discovery import import_models, import_string
|
|
4
|
+
from ._query import CursorPage, OrderBy, Page
|
|
5
|
+
from ._recording import Recording, Statement
|
|
6
|
+
from ._registry import Databases, db
|
|
7
|
+
from ._routing import Router
|
|
8
|
+
from .exceptions import (
|
|
9
|
+
DEFAULT_ALIAS,
|
|
10
|
+
AsyncFilterError,
|
|
11
|
+
BulkQueryError,
|
|
12
|
+
ConflictingDatabaseUrlError,
|
|
13
|
+
DatabaseAlreadyConfiguredError,
|
|
14
|
+
DatabaseNotConfiguredError,
|
|
15
|
+
DetachedInstanceError,
|
|
16
|
+
InstanceNotFoundError,
|
|
17
|
+
InvalidCursorError,
|
|
18
|
+
InvalidDatabaseConfigError,
|
|
19
|
+
InvalidOrderFieldError,
|
|
20
|
+
KeyLookupError,
|
|
21
|
+
MissingConnectionError,
|
|
22
|
+
MissingDatabaseUrlError,
|
|
23
|
+
MissingDefaultDatabaseError,
|
|
24
|
+
MissingDependencyError,
|
|
25
|
+
MissingSessionError,
|
|
26
|
+
MultipleInstancesFoundError,
|
|
27
|
+
NullCursorValueError,
|
|
28
|
+
PageItemsMismatchError,
|
|
29
|
+
RawStatementError,
|
|
30
|
+
RetryNotSupportedError,
|
|
31
|
+
SQLAKitError,
|
|
32
|
+
SQLNotConfiguredError,
|
|
33
|
+
StrayParameterError,
|
|
34
|
+
TemplateNotFoundError,
|
|
35
|
+
TransactionRolledBackError,
|
|
36
|
+
UncomparableOrderingError,
|
|
37
|
+
UnknownDatabaseError,
|
|
38
|
+
UnknownFieldError,
|
|
39
|
+
UnknownImportPathError,
|
|
40
|
+
UnknownOrderFieldError,
|
|
41
|
+
UnorderedPageError,
|
|
42
|
+
)
|
|
43
|
+
from .types import DatabaseConfig, EngineArgs, QueryStats, SessionArgs, UrlParts
|
|
44
|
+
|
|
45
|
+
__all__ = [
|
|
46
|
+
"DEFAULT_ALIAS",
|
|
47
|
+
"DEFAULT_ENGINE_ARGS",
|
|
48
|
+
"DEFAULT_SESSION_ARGS",
|
|
49
|
+
"AsyncFilterError",
|
|
50
|
+
"BulkQueryError",
|
|
51
|
+
"ConflictingDatabaseUrlError",
|
|
52
|
+
"CursorPage",
|
|
53
|
+
"Database",
|
|
54
|
+
"DatabaseAlreadyConfiguredError",
|
|
55
|
+
"DatabaseConfig",
|
|
56
|
+
"DatabaseNotConfiguredError",
|
|
57
|
+
"Databases",
|
|
58
|
+
"DetachedInstanceError",
|
|
59
|
+
"EngineArgs",
|
|
60
|
+
"InstanceNotFoundError",
|
|
61
|
+
"InvalidCursorError",
|
|
62
|
+
"InvalidDatabaseConfigError",
|
|
63
|
+
"InvalidOrderFieldError",
|
|
64
|
+
"KeyLookupError",
|
|
65
|
+
"MissingConnectionError",
|
|
66
|
+
"MissingDatabaseUrlError",
|
|
67
|
+
"MissingDefaultDatabaseError",
|
|
68
|
+
"MissingDependencyError",
|
|
69
|
+
"MissingSessionError",
|
|
70
|
+
"MultipleInstancesFoundError",
|
|
71
|
+
"NullCursorValueError",
|
|
72
|
+
"OrderBy",
|
|
73
|
+
"Page",
|
|
74
|
+
"PageItemsMismatchError",
|
|
75
|
+
"QueryStats",
|
|
76
|
+
"RawStatementError",
|
|
77
|
+
"Recording",
|
|
78
|
+
"RetryNotSupportedError",
|
|
79
|
+
"RetryingTransaction",
|
|
80
|
+
"Router",
|
|
81
|
+
"SQLAKitError",
|
|
82
|
+
"SQLNotConfiguredError",
|
|
83
|
+
"SessionArgs",
|
|
84
|
+
"Statement",
|
|
85
|
+
"StrayParameterError",
|
|
86
|
+
"TemplateNotFoundError",
|
|
87
|
+
"Transaction",
|
|
88
|
+
"TransactionRolledBackError",
|
|
89
|
+
"UncomparableOrderingError",
|
|
90
|
+
"UnknownDatabaseError",
|
|
91
|
+
"UnknownFieldError",
|
|
92
|
+
"UnknownImportPathError",
|
|
93
|
+
"UnknownOrderFieldError",
|
|
94
|
+
"UnorderedPageError",
|
|
95
|
+
"UrlParts",
|
|
96
|
+
"db",
|
|
97
|
+
"import_models",
|
|
98
|
+
"import_string",
|
|
99
|
+
]
|