velocity-python 0.0.100__py3-none-any.whl → 0.0.102__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.
Potentially problematic release.
This version of velocity-python might be problematic. Click here for more details.
- velocity/db/__init__.py +4 -1
- velocity/db/core/exceptions.py +16 -0
- velocity/db/exceptions.py +112 -0
- velocity/db/servers/postgres/sql.py +1 -1
- {velocity_python-0.0.100.dist-info → velocity_python-0.0.102.dist-info}/METADATA +1 -1
- {velocity_python-0.0.100.dist-info → velocity_python-0.0.102.dist-info}/RECORD +9 -8
- {velocity_python-0.0.100.dist-info → velocity_python-0.0.102.dist-info}/WHEEL +0 -0
- {velocity_python-0.0.100.dist-info → velocity_python-0.0.102.dist-info}/licenses/LICENSE +0 -0
- {velocity_python-0.0.100.dist-info → velocity_python-0.0.102.dist-info}/top_level.txt +0 -0
velocity/db/__init__.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
from velocity.db
|
|
1
|
+
from velocity.db import exceptions
|
|
2
2
|
from velocity.db.servers import postgres
|
|
3
3
|
from velocity.db.servers import mysql
|
|
4
4
|
from velocity.db.servers import sqlite
|
|
5
5
|
from velocity.db.servers import sqlserver
|
|
6
|
+
|
|
7
|
+
# Export exceptions at the package level for backward compatibility
|
|
8
|
+
from velocity.db.exceptions import *
|
velocity/db/core/exceptions.py
CHANGED
|
@@ -52,3 +52,19 @@ class DbDataIntegrityError(DbException):
|
|
|
52
52
|
|
|
53
53
|
class DuplicateRowsFoundError(Exception):
|
|
54
54
|
pass
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class DbQueryError(DbException):
|
|
58
|
+
"""Database query error"""
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class DbTransactionError(DbException):
|
|
63
|
+
"""Database transaction error"""
|
|
64
|
+
pass
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Add aliases for backward compatibility with engine.py
|
|
68
|
+
class DatabaseError(DbException):
|
|
69
|
+
"""Generic database error - alias for DbException"""
|
|
70
|
+
pass
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Database exceptions for the velocity library.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DbException(Exception):
|
|
7
|
+
"""Base class for all database exceptions."""
|
|
8
|
+
pass
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DbApplicationError(DbException):
|
|
12
|
+
"""Application-level database error."""
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DbForeignKeyMissingError(DbException):
|
|
17
|
+
"""Foreign key constraint violation."""
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DbDatabaseMissingError(DbException):
|
|
22
|
+
"""Database does not exist."""
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DbTableMissingError(DbException):
|
|
27
|
+
"""Table does not exist."""
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class DbColumnMissingError(DbException):
|
|
32
|
+
"""Column does not exist."""
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class DbTruncationError(DbException):
|
|
37
|
+
"""Data truncation error."""
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class DbConnectionError(DbException):
|
|
42
|
+
"""Database connection error."""
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class DbDuplicateKeyError(DbException):
|
|
47
|
+
"""Duplicate key constraint violation."""
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class DbObjectExistsError(DbException):
|
|
52
|
+
"""Database object already exists."""
|
|
53
|
+
pass
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class DbLockTimeoutError(DbException):
|
|
57
|
+
"""Lock timeout error."""
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class DbRetryTransaction(DbException):
|
|
62
|
+
"""Transaction should be retried."""
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class DbDataIntegrityError(DbException):
|
|
67
|
+
"""Data integrity constraint violation."""
|
|
68
|
+
pass
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class DbQueryError(DbException):
|
|
72
|
+
"""Database query error."""
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class DbTransactionError(DbException):
|
|
77
|
+
"""Database transaction error."""
|
|
78
|
+
pass
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class DuplicateRowsFoundError(Exception):
|
|
82
|
+
"""Multiple rows found when expecting single result."""
|
|
83
|
+
pass
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Add aliases for backward compatibility with engine.py
|
|
87
|
+
class DatabaseError(DbException):
|
|
88
|
+
"""Generic database error - alias for DbException."""
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
__all__ = [
|
|
92
|
+
# Base exceptions
|
|
93
|
+
'DbException',
|
|
94
|
+
'DatabaseError',
|
|
95
|
+
|
|
96
|
+
# Specific exceptions
|
|
97
|
+
'DbApplicationError',
|
|
98
|
+
'DbForeignKeyMissingError',
|
|
99
|
+
'DbDatabaseMissingError',
|
|
100
|
+
'DbTableMissingError',
|
|
101
|
+
'DbColumnMissingError',
|
|
102
|
+
'DbTruncationError',
|
|
103
|
+
'DbConnectionError',
|
|
104
|
+
'DbDuplicateKeyError',
|
|
105
|
+
'DbObjectExistsError',
|
|
106
|
+
'DbLockTimeoutError',
|
|
107
|
+
'DbRetryTransaction',
|
|
108
|
+
'DbDataIntegrityError',
|
|
109
|
+
'DbQueryError',
|
|
110
|
+
'DbTransactionError',
|
|
111
|
+
'DuplicateRowsFoundError',
|
|
112
|
+
]
|
|
@@ -11,13 +11,14 @@ velocity/aws/handlers/context.py,sha256=UIjNR83y2NSIyK8HMPX8t5tpJHFNabiZvNgmmdQL
|
|
|
11
11
|
velocity/aws/handlers/lambda_handler.py,sha256=0KrT6UIxDILzBRpoRSvwDgHpQ-vWfubcZFOCbJsewDc,6516
|
|
12
12
|
velocity/aws/handlers/response.py,sha256=LXhtizLKnVBWjtHyE0h0bk-NYDrRpj7CHa7tRz9KkC4,9324
|
|
13
13
|
velocity/aws/handlers/sqs_handler.py,sha256=nqt8NMOc5yO-L6CZo7NjgR8Q4KPKTDFBO-0eHu6oxkY,7149
|
|
14
|
-
velocity/db/__init__.py,sha256=
|
|
14
|
+
velocity/db/__init__.py,sha256=Xr-kN98AKgjDic1Lxi0yLiobsEpN5a6ZjDMS8KHSTlE,301
|
|
15
|
+
velocity/db/exceptions.py,sha256=oTXzdxP0GrraGrqRD1JgIVP5urO5yNN7A3IzTiAtNJ0,2173
|
|
15
16
|
velocity/db/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
17
|
velocity/db/core/column.py,sha256=tAr8tL3a2nyaYpNHhGl508FrY_pGZTzyYgjAV5CEBv4,4092
|
|
17
18
|
velocity/db/core/database.py,sha256=3zNGItklu9tZCKsbx2T2vCcU1so8AL9PPL0DLjvaz6s,3554
|
|
18
19
|
velocity/db/core/decorators.py,sha256=76Jkr9XptXt8cvcgp1zbHfuL8uHzWy8lwfR29u-DVu4,4574
|
|
19
20
|
velocity/db/core/engine.py,sha256=UmaYwVCDBtvDHdHdKNsZ4kZ0GpZ7uMp1MaqpfOHblNI,19311
|
|
20
|
-
velocity/db/core/exceptions.py,sha256=
|
|
21
|
+
velocity/db/core/exceptions.py,sha256=tuDniRqTX8Opc2d033LPJOI3Ux4NSwUcHqW729n-HXA,1027
|
|
21
22
|
velocity/db/core/result.py,sha256=OVqoMwlx3CHNNwr-JGWRx5I8u_YX6hlUpecx99UT5nE,6164
|
|
22
23
|
velocity/db/core/row.py,sha256=aliLYTTFirgJsOvmUsANwJMyxaATuhpGpFJhcu_twwY,6709
|
|
23
24
|
velocity/db/core/sequence.py,sha256=VMBc0ZjGnOaWTwKW6xMNTdP8rZ2umQ8ml4fHTTwuGq4,3904
|
|
@@ -34,7 +35,7 @@ velocity/db/servers/tablehelper.py,sha256=qOHHKgQgUC0t_AUcY5oaPfjkRJS9wnMI4YJCDI
|
|
|
34
35
|
velocity/db/servers/postgres/__init__.py,sha256=FUvXO3R5CtKCTGRim1geisIxXbiG_aQ_VFSQX9HGsjw,529
|
|
35
36
|
velocity/db/servers/postgres/operators.py,sha256=A2T1qFwhzPl0fdXVhLZJhh5Qfx-qF8oZsDnxnq2n_V8,389
|
|
36
37
|
velocity/db/servers/postgres/reserved.py,sha256=5tKLaqFV-HrWRj-nsrxl5KGbmeM3ukn_bPZK36XEu8M,3648
|
|
37
|
-
velocity/db/servers/postgres/sql.py,sha256=
|
|
38
|
+
velocity/db/servers/postgres/sql.py,sha256=vcdzj5PtlF3Qnt4Lh3y2OtaSuq4iLIUKyGP5F9vULE8,41576
|
|
38
39
|
velocity/db/servers/postgres/types.py,sha256=Wa45ppVf_pdWul-jYWFRGMl6IdSq8dAp10SKnhL7osQ,3757
|
|
39
40
|
velocity/misc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
41
|
velocity/misc/db.py,sha256=MPgt-kkukKR_Wh_S_5W-MyDgaeoZ4YLoDJ54wU2ppm4,2830
|
|
@@ -47,8 +48,8 @@ velocity/misc/tools.py,sha256=_bGneHHA_BV-kUonzw5H3hdJ5AOJRCKfzhgpkFbGqIo,1502
|
|
|
47
48
|
velocity/misc/conv/__init__.py,sha256=MLYF58QHjzfDSxb1rdnmLnuEQCa3gnhzzZ30CwZVvQo,40
|
|
48
49
|
velocity/misc/conv/iconv.py,sha256=d4_BucW8HTIkGNurJ7GWrtuptqUf-9t79ObzjJ5N76U,10603
|
|
49
50
|
velocity/misc/conv/oconv.py,sha256=h5Lo05DqOQnxoD3y6Px_MQP_V-pBbWf8Hkgkb9Xp1jk,6032
|
|
50
|
-
velocity_python-0.0.
|
|
51
|
-
velocity_python-0.0.
|
|
52
|
-
velocity_python-0.0.
|
|
53
|
-
velocity_python-0.0.
|
|
54
|
-
velocity_python-0.0.
|
|
51
|
+
velocity_python-0.0.102.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
|
|
52
|
+
velocity_python-0.0.102.dist-info/METADATA,sha256=OWZ2EgBtgok62DzEOHW0tLMexelmqJUgvadHjhNNe4M,33023
|
|
53
|
+
velocity_python-0.0.102.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
54
|
+
velocity_python-0.0.102.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
|
|
55
|
+
velocity_python-0.0.102.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|