sql-to-graph 0.1.0__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.
- sql_to_graph-0.1.0/.github/workflows/CI.yml +148 -0
- sql_to_graph-0.1.0/.gitignore +79 -0
- sql_to_graph-0.1.0/Cargo.lock +3317 -0
- sql_to_graph-0.1.0/Cargo.toml +54 -0
- sql_to_graph-0.1.0/PKG-INFO +285 -0
- sql_to_graph-0.1.0/README.md +261 -0
- sql_to_graph-0.1.0/pyproject.toml +32 -0
- sql_to_graph-0.1.0/python/sql_to_graph/__init__.py +109 -0
- sql_to_graph-0.1.0/python/sql_to_graph/agent.py +321 -0
- sql_to_graph-0.1.0/python/sql_to_graph/cache.py +46 -0
- sql_to_graph-0.1.0/python/sql_to_graph/langchain_tools.py +283 -0
- sql_to_graph-0.1.0/python/sql_to_graph/llm.py +119 -0
- sql_to_graph-0.1.0/python/sql_to_graph/pipeline.py +95 -0
- sql_to_graph-0.1.0/src/agent.rs +177 -0
- sql_to_graph-0.1.0/src/chart.rs +704 -0
- sql_to_graph-0.1.0/src/dialect.rs +26 -0
- sql_to_graph-0.1.0/src/error.rs +52 -0
- sql_to_graph-0.1.0/src/executor.rs +534 -0
- sql_to_graph-0.1.0/src/export.rs +61 -0
- sql_to_graph-0.1.0/src/lib.rs +63 -0
- sql_to_graph-0.1.0/src/metadata.rs +268 -0
- sql_to_graph-0.1.0/src/optimizer.rs +252 -0
- sql_to_graph-0.1.0/src/parser.rs +152 -0
- sql_to_graph-0.1.0/src/renderer.rs +34 -0
- sql_to_graph-0.1.0/src/stats.rs +233 -0
- sql_to_graph-0.1.0/src/suggest.rs +216 -0
- sql_to_graph-0.1.0/src/types.rs +450 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
tags:
|
|
9
|
+
- '*'
|
|
10
|
+
pull_request:
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
linux:
|
|
18
|
+
runs-on: ubuntu-22.04
|
|
19
|
+
strategy:
|
|
20
|
+
matrix:
|
|
21
|
+
target: [x86_64, aarch64]
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v6
|
|
24
|
+
- uses: actions/setup-python@v6
|
|
25
|
+
with:
|
|
26
|
+
python-version: 3.x
|
|
27
|
+
- name: Build wheels
|
|
28
|
+
uses: PyO3/maturin-action@v1
|
|
29
|
+
with:
|
|
30
|
+
target: ${{ matrix.target }}
|
|
31
|
+
args: --release --out dist --find-interpreter
|
|
32
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
33
|
+
manylinux: auto
|
|
34
|
+
before-script-linux: |
|
|
35
|
+
# vendored openssl needs perl for ./Configure
|
|
36
|
+
yum install -y perl-core || apk add perl || true
|
|
37
|
+
- name: Upload wheels
|
|
38
|
+
uses: actions/upload-artifact@v6
|
|
39
|
+
with:
|
|
40
|
+
name: wheels-linux-${{ matrix.target }}
|
|
41
|
+
path: dist
|
|
42
|
+
|
|
43
|
+
musllinux:
|
|
44
|
+
runs-on: ubuntu-22.04
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v6
|
|
47
|
+
- uses: actions/setup-python@v6
|
|
48
|
+
with:
|
|
49
|
+
python-version: 3.x
|
|
50
|
+
- name: Build wheels
|
|
51
|
+
uses: PyO3/maturin-action@v1
|
|
52
|
+
with:
|
|
53
|
+
target: x86_64
|
|
54
|
+
args: --release --out dist --find-interpreter
|
|
55
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
56
|
+
manylinux: musllinux_1_2
|
|
57
|
+
before-script-linux: |
|
|
58
|
+
apk add perl || true
|
|
59
|
+
- name: Upload wheels
|
|
60
|
+
uses: actions/upload-artifact@v6
|
|
61
|
+
with:
|
|
62
|
+
name: wheels-musllinux-x86_64
|
|
63
|
+
path: dist
|
|
64
|
+
|
|
65
|
+
windows:
|
|
66
|
+
runs-on: windows-latest
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v6
|
|
69
|
+
- uses: actions/setup-python@v6
|
|
70
|
+
with:
|
|
71
|
+
python-version: 3.13
|
|
72
|
+
architecture: x64
|
|
73
|
+
- name: Build wheels
|
|
74
|
+
uses: PyO3/maturin-action@v1
|
|
75
|
+
with:
|
|
76
|
+
target: x64
|
|
77
|
+
args: --release --out dist --find-interpreter
|
|
78
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
79
|
+
- name: Upload wheels
|
|
80
|
+
uses: actions/upload-artifact@v6
|
|
81
|
+
with:
|
|
82
|
+
name: wheels-windows-x64
|
|
83
|
+
path: dist
|
|
84
|
+
|
|
85
|
+
macos:
|
|
86
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
87
|
+
strategy:
|
|
88
|
+
matrix:
|
|
89
|
+
platform:
|
|
90
|
+
- runner: macos-14
|
|
91
|
+
target: x86_64
|
|
92
|
+
- runner: macos-latest
|
|
93
|
+
target: aarch64
|
|
94
|
+
steps:
|
|
95
|
+
- uses: actions/checkout@v6
|
|
96
|
+
- uses: actions/setup-python@v6
|
|
97
|
+
with:
|
|
98
|
+
python-version: 3.x
|
|
99
|
+
- name: Build wheels
|
|
100
|
+
uses: PyO3/maturin-action@v1
|
|
101
|
+
with:
|
|
102
|
+
target: ${{ matrix.platform.target }}
|
|
103
|
+
args: --release --out dist --find-interpreter
|
|
104
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
105
|
+
- name: Upload wheels
|
|
106
|
+
uses: actions/upload-artifact@v6
|
|
107
|
+
with:
|
|
108
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
109
|
+
path: dist
|
|
110
|
+
|
|
111
|
+
sdist:
|
|
112
|
+
runs-on: ubuntu-latest
|
|
113
|
+
steps:
|
|
114
|
+
- uses: actions/checkout@v6
|
|
115
|
+
- name: Build sdist
|
|
116
|
+
uses: PyO3/maturin-action@v1
|
|
117
|
+
with:
|
|
118
|
+
command: sdist
|
|
119
|
+
args: --out dist
|
|
120
|
+
- name: Upload sdist
|
|
121
|
+
uses: actions/upload-artifact@v6
|
|
122
|
+
with:
|
|
123
|
+
name: wheels-sdist
|
|
124
|
+
path: dist
|
|
125
|
+
|
|
126
|
+
release:
|
|
127
|
+
name: Release
|
|
128
|
+
runs-on: ubuntu-latest
|
|
129
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
130
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
131
|
+
permissions:
|
|
132
|
+
id-token: write
|
|
133
|
+
contents: write
|
|
134
|
+
attestations: write
|
|
135
|
+
steps:
|
|
136
|
+
- uses: actions/download-artifact@v7
|
|
137
|
+
- name: Generate artifact attestation
|
|
138
|
+
uses: actions/attest-build-provenance@v3
|
|
139
|
+
with:
|
|
140
|
+
subject-path: 'wheels-*/*'
|
|
141
|
+
- name: Install uv
|
|
142
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
143
|
+
uses: astral-sh/setup-uv@v7
|
|
144
|
+
- name: Publish to PyPI
|
|
145
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
146
|
+
run: uv publish 'wheels-*/*'
|
|
147
|
+
env:
|
|
148
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/target/
|
|
2
|
+
*.dylib
|
|
3
|
+
*.pyd
|
|
4
|
+
*.dSYM/
|
|
5
|
+
|
|
6
|
+
# Byte-compiled / optimized / DLL files
|
|
7
|
+
__pycache__/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
|
|
11
|
+
# C extensions
|
|
12
|
+
*.so
|
|
13
|
+
|
|
14
|
+
# Distribution / packaging
|
|
15
|
+
.Python
|
|
16
|
+
.venv/
|
|
17
|
+
env/
|
|
18
|
+
bin/
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
eggs/
|
|
23
|
+
lib/
|
|
24
|
+
lib64/
|
|
25
|
+
parts/
|
|
26
|
+
sdist/
|
|
27
|
+
var/
|
|
28
|
+
include/
|
|
29
|
+
man/
|
|
30
|
+
venv/
|
|
31
|
+
*.egg-info/
|
|
32
|
+
.installed.cfg
|
|
33
|
+
*.egg
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
pip-selfcheck.json
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.coverage
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
|
|
48
|
+
# Translations
|
|
49
|
+
*.mo
|
|
50
|
+
|
|
51
|
+
# Mr Developer
|
|
52
|
+
.mr.developer.cfg
|
|
53
|
+
.project
|
|
54
|
+
.pydevproject
|
|
55
|
+
|
|
56
|
+
# Rope
|
|
57
|
+
.ropeproject
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
*.pot
|
|
62
|
+
|
|
63
|
+
.DS_Store
|
|
64
|
+
|
|
65
|
+
# Sphinx documentation
|
|
66
|
+
docs/_build/
|
|
67
|
+
|
|
68
|
+
# PyCharm
|
|
69
|
+
.idea/
|
|
70
|
+
|
|
71
|
+
# VSCode
|
|
72
|
+
.vscode/
|
|
73
|
+
|
|
74
|
+
# Pyenv
|
|
75
|
+
.python-version
|
|
76
|
+
|
|
77
|
+
# Environment files
|
|
78
|
+
.env
|
|
79
|
+
.env.*
|