daplug-sql 1.0.0b1__tar.gz → 1.0.0b2__tar.gz
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.
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/PKG-INFO +25 -12
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/README.md +18 -2
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql.egg-info/PKG-INFO +25 -12
- daplug_sql-1.0.0b2/daplug_sql.egg-info/requires.txt +8 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/setup.py +6 -9
- daplug_sql-1.0.0b1/daplug_sql.egg-info/requires.txt +0 -7
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/LICENSE +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/__init__.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/adapter.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/exception.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/sql_connection.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/sql_connector.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql/types/__init__.py +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql.egg-info/SOURCES.txt +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql.egg-info/dependency_links.txt +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql.egg-info/not-zip-safe +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/daplug_sql.egg-info/top_level.txt +0 -0
- {daplug_sql-1.0.0b1 → daplug_sql-1.0.0b2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: daplug-sql
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b2
|
|
4
4
|
Summary: Shared schema, merge, and SNS helpers powering daplug adapters.
|
|
5
5
|
Home-page: https://github.com/dual/daplug-sql
|
|
6
6
|
Author: Paul Cruse III
|
|
@@ -23,20 +23,17 @@ Classifier: Topic :: Database :: Front-Ends
|
|
|
23
23
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
24
|
Classifier: Programming Language :: Python
|
|
25
25
|
Classifier: Programming Language :: Python :: 3
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: boto3
|
|
34
|
-
Requires-Dist: daplug-core
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist: psycopg2-binary>=2.9
|
|
38
|
-
Requires-Dist: PyYAML>=5.3
|
|
39
|
-
Requires-Dist: simplejson>=3.17
|
|
33
|
+
Requires-Dist: boto3<2,>=1.43.15; python_version >= "3.10"
|
|
34
|
+
Requires-Dist: daplug-core<2,>=1.0.0b7; python_version >= "3.10"
|
|
35
|
+
Requires-Dist: psycopg2-binary<3,>=2.9.12; python_version >= "3.9"
|
|
36
|
+
Requires-Dist: mysql-connector-python<10,>=9.7.0; python_version >= "3.10"
|
|
40
37
|
Dynamic: author
|
|
41
38
|
Dynamic: author-email
|
|
42
39
|
Dynamic: classifier
|
|
@@ -60,7 +57,7 @@ Dynamic: summary
|
|
|
60
57
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
61
58
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
62
59
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
63
|
-
[](https://www.python.org/downloads/)
|
|
64
61
|
[](https://pypi.org/project/daplug-sql/)
|
|
65
62
|
[](LICENSE)
|
|
66
63
|
[](https://github.com/paulcruse3/daplug-sql/issues)
|
|
@@ -143,6 +140,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
|
|
|
143
140
|
| `debug` | Log SQL statements via the adapter logger when `True`. |
|
|
144
141
|
| `sns_attributes` | Per-call attributes merged with defaults before publish. |
|
|
145
142
|
| `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
|
|
143
|
+
| `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
|
|
144
|
+
| `publish_data` | Replace the published payload entirely (the row write is unchanged). |
|
|
146
145
|
|
|
147
146
|
### SNS Publishing
|
|
148
147
|
|
|
@@ -177,7 +176,21 @@ sql.insert(
|
|
|
177
176
|
)
|
|
178
177
|
```
|
|
179
178
|
|
|
180
|
-
If `sns_arn` is omitted, publish calls are skipped automatically.
|
|
179
|
+
If `sns_arn` is omitted, publish calls are skipped automatically. To skip
|
|
180
|
+
a single call while keeping defaults intact, pass `publish=False`. To
|
|
181
|
+
publish a different payload than the row that was written, pass
|
|
182
|
+
`publish_data={...}`.
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
|
|
186
|
+
|
|
187
|
+
sql.update(
|
|
188
|
+
data=row,
|
|
189
|
+
table="customers",
|
|
190
|
+
identifier="customer_id",
|
|
191
|
+
publish_data={"id": row["customer_id"], "event": "updated"},
|
|
192
|
+
)
|
|
193
|
+
```
|
|
181
194
|
|
|
182
195
|
---
|
|
183
196
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
7
7
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
8
8
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
9
|
-
[](https://www.python.org/downloads/)
|
|
10
10
|
[](https://pypi.org/project/daplug-sql/)
|
|
11
11
|
[](LICENSE)
|
|
12
12
|
[](https://github.com/paulcruse3/daplug-sql/issues)
|
|
@@ -89,6 +89,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
|
|
|
89
89
|
| `debug` | Log SQL statements via the adapter logger when `True`. |
|
|
90
90
|
| `sns_attributes` | Per-call attributes merged with defaults before publish. |
|
|
91
91
|
| `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
|
|
92
|
+
| `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
|
|
93
|
+
| `publish_data` | Replace the published payload entirely (the row write is unchanged). |
|
|
92
94
|
|
|
93
95
|
### SNS Publishing
|
|
94
96
|
|
|
@@ -123,7 +125,21 @@ sql.insert(
|
|
|
123
125
|
)
|
|
124
126
|
```
|
|
125
127
|
|
|
126
|
-
If `sns_arn` is omitted, publish calls are skipped automatically.
|
|
128
|
+
If `sns_arn` is omitted, publish calls are skipped automatically. To skip
|
|
129
|
+
a single call while keeping defaults intact, pass `publish=False`. To
|
|
130
|
+
publish a different payload than the row that was written, pass
|
|
131
|
+
`publish_data={...}`.
|
|
132
|
+
|
|
133
|
+
```python
|
|
134
|
+
sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
|
|
135
|
+
|
|
136
|
+
sql.update(
|
|
137
|
+
data=row,
|
|
138
|
+
table="customers",
|
|
139
|
+
identifier="customer_id",
|
|
140
|
+
publish_data={"id": row["customer_id"], "event": "updated"},
|
|
141
|
+
)
|
|
142
|
+
```
|
|
127
143
|
|
|
128
144
|
---
|
|
129
145
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: daplug-sql
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b2
|
|
4
4
|
Summary: Shared schema, merge, and SNS helpers powering daplug adapters.
|
|
5
5
|
Home-page: https://github.com/dual/daplug-sql
|
|
6
6
|
Author: Paul Cruse III
|
|
@@ -23,20 +23,17 @@ Classifier: Topic :: Database :: Front-Ends
|
|
|
23
23
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
24
|
Classifier: Programming Language :: Python
|
|
25
25
|
Classifier: Programming Language :: Python :: 3
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
License-File: LICENSE
|
|
33
|
-
Requires-Dist: boto3
|
|
34
|
-
Requires-Dist: daplug-core
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist: psycopg2-binary>=2.9
|
|
38
|
-
Requires-Dist: PyYAML>=5.3
|
|
39
|
-
Requires-Dist: simplejson>=3.17
|
|
33
|
+
Requires-Dist: boto3<2,>=1.43.15; python_version >= "3.10"
|
|
34
|
+
Requires-Dist: daplug-core<2,>=1.0.0b7; python_version >= "3.10"
|
|
35
|
+
Requires-Dist: psycopg2-binary<3,>=2.9.12; python_version >= "3.9"
|
|
36
|
+
Requires-Dist: mysql-connector-python<10,>=9.7.0; python_version >= "3.10"
|
|
40
37
|
Dynamic: author
|
|
41
38
|
Dynamic: author-email
|
|
42
39
|
Dynamic: classifier
|
|
@@ -60,7 +57,7 @@ Dynamic: summary
|
|
|
60
57
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
61
58
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
62
59
|
[](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
|
|
63
|
-
[](https://www.python.org/downloads/)
|
|
64
61
|
[](https://pypi.org/project/daplug-sql/)
|
|
65
62
|
[](LICENSE)
|
|
66
63
|
[](https://github.com/paulcruse3/daplug-sql/issues)
|
|
@@ -143,6 +140,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
|
|
|
143
140
|
| `debug` | Log SQL statements via the adapter logger when `True`. |
|
|
144
141
|
| `sns_attributes` | Per-call attributes merged with defaults before publish. |
|
|
145
142
|
| `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
|
|
143
|
+
| `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
|
|
144
|
+
| `publish_data` | Replace the published payload entirely (the row write is unchanged). |
|
|
146
145
|
|
|
147
146
|
### SNS Publishing
|
|
148
147
|
|
|
@@ -177,7 +176,21 @@ sql.insert(
|
|
|
177
176
|
)
|
|
178
177
|
```
|
|
179
178
|
|
|
180
|
-
If `sns_arn` is omitted, publish calls are skipped automatically.
|
|
179
|
+
If `sns_arn` is omitted, publish calls are skipped automatically. To skip
|
|
180
|
+
a single call while keeping defaults intact, pass `publish=False`. To
|
|
181
|
+
publish a different payload than the row that was written, pass
|
|
182
|
+
`publish_data={...}`.
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
|
|
186
|
+
|
|
187
|
+
sql.update(
|
|
188
|
+
data=row,
|
|
189
|
+
table="customers",
|
|
190
|
+
identifier="customer_id",
|
|
191
|
+
publish_data={"id": row["customer_id"], "event": "updated"},
|
|
192
|
+
)
|
|
193
|
+
```
|
|
181
194
|
|
|
182
195
|
---
|
|
183
196
|
|
|
@@ -20,15 +20,12 @@ setup(
|
|
|
20
20
|
long_description=read_long_description(),
|
|
21
21
|
long_description_content_type="text/markdown",
|
|
22
22
|
packages=find_packages(include=["daplug_sql", "daplug_sql.*"]),
|
|
23
|
-
python_requires=">=3.
|
|
23
|
+
python_requires=">=3.10",
|
|
24
24
|
install_requires=[
|
|
25
|
-
"boto3>=1.
|
|
26
|
-
"daplug-core>=0.
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"psycopg2-binary>=2.9",
|
|
30
|
-
"PyYAML>=5.3",
|
|
31
|
-
"simplejson>=3.17",
|
|
25
|
+
"boto3>=1.43.15,<2; python_version >= '3.10'",
|
|
26
|
+
"daplug-core>=1.0.0b7,<2; python_version >= '3.10'",
|
|
27
|
+
"psycopg2-binary>=2.9.12,<3; python_version >= '3.9'",
|
|
28
|
+
"mysql-connector-python>=9.7.0,<10; python_version >= '3.10'",
|
|
32
29
|
],
|
|
33
30
|
keywords=[
|
|
34
31
|
"daplug",
|
|
@@ -57,9 +54,9 @@ setup(
|
|
|
57
54
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
58
55
|
"Programming Language :: Python",
|
|
59
56
|
"Programming Language :: Python :: 3",
|
|
60
|
-
"Programming Language :: Python :: 3.9",
|
|
61
57
|
"Programming Language :: Python :: 3.10",
|
|
62
58
|
"Programming Language :: Python :: 3.11",
|
|
59
|
+
"Programming Language :: Python :: 3.12",
|
|
63
60
|
"Programming Language :: Python :: 3 :: Only",
|
|
64
61
|
],
|
|
65
62
|
license="Apache License 2.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|