Commit 68c84f8
authored
enh: move the taosws SQLAlchemy dialect into taos-ws-py (#387)
* feat: add AGENTS.md for project overview and setup instructions
* Refactor taos-ws-py integration and update SQLAlchemy dialect handling
- Removed TaosWsDialect from taos/sqlalchemy.py and moved it to taos-ws-py/taosws/sqlalchemy.py for better separation of concerns.
- Updated taos-ws-py/Cargo.toml to change the library name to _taosws for internal consistency.
- Adjusted import paths in examples and tests to reflect the new module structure.
- Added comprehensive tests for the taosws SQLAlchemy dialect to ensure compatibility and functionality.
- Updated AGENTS.md to clarify project structure and development setup for taos-ws-py.
- Removed deprecated taosws tests from the main test suite and integrated them into the new taos-ws-py test structure.
* chore: remove AGENTS.md as part of project restructuring
* refactor: clean up code formatting and remove unnecessary blank lines
* feat: update dependencies to include SQLAlchemy in workflow tests
* refactor: enhance native module loading and improve error handling in SQLAlchemy dialect
* fix: correct connection string formatting and enhance query parameter encoding in SQLAlchemy dialect tests
* Update dependency versions in pyproject.toml and clean up test script
- Adjusted requests and black dependencies to support specific Python versions.
- Updated pandas and sqlalchemy dependencies to ensure compatibility.
- Removed unnecessary newline in test_taospy.sh for cleaner script execution.
* fix: normalize handling of explicit empty passwords in connection args
* fix: correct SQL query formatting in get_indexes method
* feat: enhance SQLAlchemy dialect with improved SQL rendering and schema injection prevention
* fix: streamline classifiers in pyproject.toml by removing redundant entries
* fix: simplify native module loading logic in __init__.py
* refactor: simplify SQL execution and testing logic in sqlalchemy.py and test_sqlalchemy.py
* refactor: clean up comments and streamline code in sqlalchemy.py
* fix: update SQL query construction in BaseDialect to use f-strings for schema and table name
* refactor: remove unused tests and constants from test_sqlalchemy.py
* refactor: streamline test_sqlalchemy.py by removing unused code and enhancing test readability
* refactor: simplify assertions in test_decode_binary_in_tmq for clarity and correctness
* test: add test for legacy taosws submodule alias availability
* fix: update test_decode_binary_in_tmq to handle multiple values correctly
* refactor: remove unused import from sqlalchemy.py
* refactor: enhance test_read by parameterizing database name and improving resource management
* chore: update version to 0.6.7 and document enhancements in CHANGELOG1 parent 2fe2bb8 commit 68c84f8
24 files changed
Lines changed: 1471 additions & 559 deletions
File tree
- .github/workflows
- examples
- taos-ws-py
- examples
- src
- taosws
- tests
- taosrest
- taos
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments