velocity-python 0.0.109__py3-none-any.whl → 0.0.161__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.
Files changed (120) hide show
  1. velocity/__init__.py +3 -1
  2. velocity/app/orders.py +3 -4
  3. velocity/app/tests/__init__.py +1 -0
  4. velocity/app/tests/test_email_processing.py +112 -0
  5. velocity/app/tests/test_payment_profile_sorting.py +191 -0
  6. velocity/app/tests/test_spreadsheet_functions.py +124 -0
  7. velocity/aws/__init__.py +3 -0
  8. velocity/aws/amplify.py +10 -6
  9. velocity/aws/handlers/__init__.py +2 -0
  10. velocity/aws/handlers/base_handler.py +248 -0
  11. velocity/aws/handlers/context.py +251 -2
  12. velocity/aws/handlers/exceptions.py +16 -0
  13. velocity/aws/handlers/lambda_handler.py +24 -85
  14. velocity/aws/handlers/mixins/__init__.py +16 -0
  15. velocity/aws/handlers/mixins/activity_tracker.py +181 -0
  16. velocity/aws/handlers/mixins/aws_session_mixin.py +192 -0
  17. velocity/aws/handlers/mixins/error_handler.py +192 -0
  18. velocity/aws/handlers/mixins/legacy_mixin.py +53 -0
  19. velocity/aws/handlers/mixins/standard_mixin.py +73 -0
  20. velocity/aws/handlers/response.py +1 -1
  21. velocity/aws/handlers/sqs_handler.py +28 -143
  22. velocity/aws/tests/__init__.py +1 -0
  23. velocity/aws/tests/test_lambda_handler_json_serialization.py +120 -0
  24. velocity/aws/tests/test_response.py +163 -0
  25. velocity/db/__init__.py +16 -4
  26. velocity/db/core/decorators.py +48 -13
  27. velocity/db/core/engine.py +187 -840
  28. velocity/db/core/result.py +33 -25
  29. velocity/db/core/row.py +15 -3
  30. velocity/db/core/table.py +493 -50
  31. velocity/db/core/transaction.py +28 -15
  32. velocity/db/exceptions.py +42 -18
  33. velocity/db/servers/base/__init__.py +9 -0
  34. velocity/db/servers/base/initializer.py +70 -0
  35. velocity/db/servers/base/operators.py +98 -0
  36. velocity/db/servers/base/sql.py +503 -0
  37. velocity/db/servers/base/types.py +135 -0
  38. velocity/db/servers/mysql/__init__.py +73 -0
  39. velocity/db/servers/mysql/operators.py +54 -0
  40. velocity/db/servers/{mysql_reserved.py → mysql/reserved.py} +2 -14
  41. velocity/db/servers/mysql/sql.py +718 -0
  42. velocity/db/servers/mysql/types.py +107 -0
  43. velocity/db/servers/postgres/__init__.py +59 -11
  44. velocity/db/servers/postgres/operators.py +34 -0
  45. velocity/db/servers/postgres/sql.py +474 -120
  46. velocity/db/servers/postgres/types.py +88 -2
  47. velocity/db/servers/sqlite/__init__.py +61 -0
  48. velocity/db/servers/sqlite/operators.py +52 -0
  49. velocity/db/servers/sqlite/reserved.py +20 -0
  50. velocity/db/servers/sqlite/sql.py +677 -0
  51. velocity/db/servers/sqlite/types.py +92 -0
  52. velocity/db/servers/sqlserver/__init__.py +73 -0
  53. velocity/db/servers/sqlserver/operators.py +47 -0
  54. velocity/db/servers/sqlserver/reserved.py +32 -0
  55. velocity/db/servers/sqlserver/sql.py +805 -0
  56. velocity/db/servers/sqlserver/types.py +114 -0
  57. velocity/db/servers/tablehelper.py +117 -91
  58. velocity/db/tests/__init__.py +1 -0
  59. velocity/db/tests/common_db_test.py +0 -0
  60. velocity/db/tests/postgres/__init__.py +1 -0
  61. velocity/db/tests/postgres/common.py +49 -0
  62. velocity/db/tests/postgres/test_column.py +29 -0
  63. velocity/db/tests/postgres/test_connections.py +25 -0
  64. velocity/db/tests/postgres/test_database.py +21 -0
  65. velocity/db/tests/postgres/test_engine.py +205 -0
  66. velocity/db/tests/postgres/test_general_usage.py +88 -0
  67. velocity/db/tests/postgres/test_imports.py +8 -0
  68. velocity/db/tests/postgres/test_result.py +19 -0
  69. velocity/db/tests/postgres/test_row.py +137 -0
  70. velocity/db/tests/postgres/test_row_comprehensive.py +720 -0
  71. velocity/db/tests/postgres/test_schema_locking.py +335 -0
  72. velocity/db/tests/postgres/test_schema_locking_unit.py +115 -0
  73. velocity/db/tests/postgres/test_sequence.py +34 -0
  74. velocity/db/tests/postgres/test_sql_comprehensive.py +462 -0
  75. velocity/db/tests/postgres/test_table.py +101 -0
  76. velocity/db/tests/postgres/test_table_comprehensive.py +646 -0
  77. velocity/db/tests/postgres/test_transaction.py +106 -0
  78. velocity/db/tests/sql/__init__.py +1 -0
  79. velocity/db/tests/sql/common.py +177 -0
  80. velocity/db/tests/sql/test_postgres_select_advanced.py +285 -0
  81. velocity/db/tests/sql/test_postgres_select_variances.py +517 -0
  82. velocity/db/tests/test_cursor_rowcount_fix.py +150 -0
  83. velocity/db/tests/test_db_utils.py +270 -0
  84. velocity/db/tests/test_postgres.py +448 -0
  85. velocity/db/tests/test_postgres_unchanged.py +81 -0
  86. velocity/db/tests/test_process_error_robustness.py +292 -0
  87. velocity/db/tests/test_result_caching.py +279 -0
  88. velocity/db/tests/test_result_sql_aware.py +117 -0
  89. velocity/db/tests/test_row_get_missing_column.py +72 -0
  90. velocity/db/tests/test_schema_locking_initializers.py +226 -0
  91. velocity/db/tests/test_schema_locking_simple.py +97 -0
  92. velocity/db/tests/test_sql_builder.py +165 -0
  93. velocity/db/tests/test_tablehelper.py +486 -0
  94. velocity/db/utils.py +129 -51
  95. velocity/misc/conv/__init__.py +2 -0
  96. velocity/misc/conv/iconv.py +5 -4
  97. velocity/misc/export.py +1 -4
  98. velocity/misc/merge.py +1 -1
  99. velocity/misc/tests/__init__.py +1 -0
  100. velocity/misc/tests/test_db.py +90 -0
  101. velocity/misc/tests/test_fix.py +78 -0
  102. velocity/misc/tests/test_format.py +64 -0
  103. velocity/misc/tests/test_iconv.py +203 -0
  104. velocity/misc/tests/test_merge.py +82 -0
  105. velocity/misc/tests/test_oconv.py +144 -0
  106. velocity/misc/tests/test_original_error.py +52 -0
  107. velocity/misc/tests/test_timer.py +74 -0
  108. velocity/misc/tools.py +0 -1
  109. {velocity_python-0.0.109.dist-info → velocity_python-0.0.161.dist-info}/METADATA +2 -2
  110. velocity_python-0.0.161.dist-info/RECORD +129 -0
  111. velocity/db/core/exceptions.py +0 -70
  112. velocity/db/servers/mysql.py +0 -641
  113. velocity/db/servers/sqlite.py +0 -968
  114. velocity/db/servers/sqlite_reserved.py +0 -208
  115. velocity/db/servers/sqlserver.py +0 -921
  116. velocity/db/servers/sqlserver_reserved.py +0 -314
  117. velocity_python-0.0.109.dist-info/RECORD +0 -56
  118. {velocity_python-0.0.109.dist-info → velocity_python-0.0.161.dist-info}/WHEEL +0 -0
  119. {velocity_python-0.0.109.dist-info → velocity_python-0.0.161.dist-info}/licenses/LICENSE +0 -0
  120. {velocity_python-0.0.109.dist-info → velocity_python-0.0.161.dist-info}/top_level.txt +0 -0
@@ -1,208 +0,0 @@
1
- reserved_words = [
2
- "ADMIN",
3
- "ALIAS",
4
- "ALL",
5
- "ALLOCATE",
6
- "ANALYSE",
7
- "ANALYZE",
8
- "AND",
9
- "ANY",
10
- "ARE",
11
- "ARRAY",
12
- "AS",
13
- "ASC",
14
- "AUTHORIZATION",
15
- "BETWEEN",
16
- "BINARY",
17
- "BLOB",
18
- "BOTH",
19
- "BREADTH",
20
- "CALL",
21
- "CASCADED",
22
- "CASE",
23
- "CAST",
24
- "CATALOG",
25
- "CHECK",
26
- "CLOB",
27
- "COLLATE",
28
- "COLLATION",
29
- "COLUMN",
30
- "COMPLETION",
31
- "CONNECT",
32
- "CONNECTION",
33
- "CONSTRAINT",
34
- "CONSTRUCTOR",
35
- "CONTINUE",
36
- "CORRESPONDING",
37
- "CREATE",
38
- "CROSS",
39
- "CUBE",
40
- "CURRENT",
41
- "CURRENT_DATE",
42
- "CURRENT_PATH",
43
- "CURRENT_ROLE",
44
- "CURRENT_TIME",
45
- "CURRENT_TIMESTAMP",
46
- "CURRENT_USER",
47
- "DATA",
48
- "DATE",
49
- "DEFAULT",
50
- "DEFERRABLE",
51
- "DEPTH",
52
- "DEREF",
53
- "DESC",
54
- "DESCRIBE",
55
- "DESCRIPTOR",
56
- "DESTROY",
57
- "DESTRUCTOR",
58
- "DETERMINISTIC",
59
- "DIAGNOSTICS",
60
- "DICTIONARY",
61
- "DISCONNECT",
62
- "DISTINCT",
63
- "DO",
64
- "DYNAMIC",
65
- "ELSE",
66
- "END",
67
- "END-EXEC",
68
- "EQUALS",
69
- "EVERY",
70
- "EXCEPT",
71
- "EXCEPTION",
72
- "EXEC",
73
- "FALSE",
74
- "FIRST",
75
- "FOR",
76
- "FOREIGN",
77
- "FOUND",
78
- "FREE",
79
- "FREEZE",
80
- "FROM",
81
- "FULL",
82
- "GENERAL",
83
- "GO",
84
- "GOTO",
85
- "GRANT",
86
- "GROUP",
87
- "GROUPING",
88
- "HAVING",
89
- "HOST",
90
- "IDENTITY",
91
- "IGNORE",
92
- "ILIKE",
93
- "IN",
94
- "INDICATOR",
95
- "INITIALIZE",
96
- "INITIALLY",
97
- "INNER",
98
- "INTERSECT",
99
- "INTO",
100
- "IS",
101
- "ISNULL",
102
- "ITERATE",
103
- "JOIN",
104
- "LARGE",
105
- "LAST",
106
- "LATERAL",
107
- "LEADING",
108
- "LEFT",
109
- "LESS",
110
- "LIKE",
111
- "LIMIT",
112
- "LOCALTIME",
113
- "LOCALTIMESTAMP",
114
- "LOCATOR",
115
- "MAP",
116
- "MODIFIES",
117
- "MODIFY",
118
- "MODULE",
119
- "NAME",
120
- "NATURAL",
121
- "NCLOB",
122
- "NEW",
123
- "NOT",
124
- "NOTNULL",
125
- "NULL",
126
- "OBJECT",
127
- "OFF",
128
- "OFFSET",
129
- "OLD",
130
- "ON",
131
- "ONLY",
132
- "OPEN",
133
- "OPERATION",
134
- "OR",
135
- "ORDER",
136
- "ORDINALITY",
137
- "OUTER",
138
- "OUTPUT",
139
- "OVERLAPS",
140
- "PAD",
141
- "PARAMETER",
142
- "PARAMETERS",
143
- "PLACING",
144
- "POSTFIX",
145
- "PREFIX",
146
- "PREORDER",
147
- "PRESERVE",
148
- "PRIMARY",
149
- "PUBLIC",
150
- "READS",
151
- "RECURSIVE",
152
- "REF",
153
- "REFERENCES",
154
- "REFERENCING",
155
- "RESULT",
156
- "RETURN",
157
- "RIGHT",
158
- "ROLE",
159
- "ROLLUP",
160
- "ROUTINE",
161
- "ROWS",
162
- "SAVEPOINT",
163
- "SCOPE",
164
- "SEARCH",
165
- "SECTION",
166
- "SELECT",
167
- "SESSION_USER",
168
- "SETS",
169
- "SIMILAR",
170
- "SIZE",
171
- "SOME",
172
- "SPACE",
173
- "SPECIFIC",
174
- "SPECIFICTYPE",
175
- "SQL",
176
- "SQLCODE",
177
- "SQLERROR",
178
- "SQLEXCEPTION",
179
- "SQLSTATE",
180
- "SQLWARNING",
181
- "STATE",
182
- "STATIC",
183
- "STRUCTURE",
184
- "SYSTEM_USER",
185
- "TABLE",
186
- "TERMINATE",
187
- "THAN",
188
- "THEN",
189
- "TIMESTAMP",
190
- "TIMEZONE_HOUR",
191
- "TIMEZONE_MINUTE",
192
- "TO",
193
- "TRAILING",
194
- "TRANSLATION",
195
- "TRUE",
196
- "UNDER",
197
- "UNION",
198
- "UNIQUE",
199
- "UNNEST",
200
- "USER",
201
- "USING",
202
- "VALUE",
203
- "VARIABLE",
204
- "VERBOSE",
205
- "WHEN",
206
- "WHENEVER",
207
- "WHERE",
208
- ]