sqlparse-rs 0.1.0__cp39-abi3-win_amd64.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.
@@ -0,0 +1,174 @@
1
+ """Rust-accelerated lexer and statement splitter for sqlparse.
2
+
3
+ Usage::
4
+
5
+ import sqlparse_rs
6
+ sqlparse_rs.patch() # sqlparse.split / parse / format now use the Rust lexer
7
+ sqlparse_rs.unpatch() # restore the original implementation
8
+
9
+ or call ``sqlparse_rs.split`` / ``sqlparse_rs.tokenize`` directly. Anything the Rust core does
10
+ not handle (bytes input, lone surrogates, customised lexers, ...) is passed to the original
11
+ sqlparse implementation, so results are identical.
12
+ """
13
+ from __future__ import annotations
14
+
15
+ import unicodedata
16
+
17
+ import sqlparse
18
+ from sqlparse import keywords as _kw
19
+ from sqlparse import lexer as _lexer
20
+ from sqlparse import tokens as T
21
+
22
+ from . import _core
23
+
24
+ __all__ = ["patch", "unpatch", "split", "split_many", "tokenize", "is_patched"]
25
+
26
+ _FALLBACK = (UnicodeError, TypeError, ValueError)
27
+
28
+ # Fixed order, shared with src/lib.rs (T_* constants).
29
+ _FIXED = [
30
+ T.Comment.Single.Hint, T.Comment.Single, T.Newline, T.Whitespace, T.Assignment,
31
+ T.Punctuation, T.Wildcard, T.Name, T.Name.Placeholder, T.Command, T.Keyword,
32
+ T.Number.Hexadecimal, T.Number.Float, T.Number.Integer, T.String.Single,
33
+ T.String.Symbol, T.Keyword.Order, T.Keyword.DDL, T.Name.Builtin, T.Keyword.TZCast,
34
+ T.Operator.Comparison, T.Operator, T.Literal, T.Comment.Multiline,
35
+ T.Comment.Multiline.Hint, T.Error,
36
+ ]
37
+
38
+ # The Rust tables follow the Unicode database of the Python that generated them; for any other
39
+ # version, non-ASCII input goes through the original implementation.
40
+ _UNICODE_OK = unicodedata.unidata_version == _core.UNIDATA_VERSION
41
+
42
+ _orig_get_tokens = _lexer.Lexer.get_tokens
43
+ _orig_split = sqlparse.split
44
+ _orig_regex_list = None
45
+ _state = {"sig": None, "core": None}
46
+
47
+
48
+ def _flags(tt) -> int:
49
+ f = 0
50
+ if tt in T.Keyword:
51
+ f |= 1
52
+ if tt is T.Keyword:
53
+ f |= 2
54
+ if tt is T.Keyword.DDL:
55
+ f |= 4
56
+ if tt is T.Name:
57
+ f |= 8
58
+ if tt is T.Punctuation:
59
+ f |= 16
60
+ if any(tt is x or tt == x for x in (T.Whitespace, T.Comment.Single)):
61
+ f |= 32
62
+ if any(tt is x or tt == x for x in (T.Whitespace, T.Newline, T.Comment.Single, T.Comment.Multiline)):
63
+ f |= 64
64
+ if tt in T.Whitespace:
65
+ f |= 128
66
+ return f
67
+
68
+
69
+ def _signature(inst):
70
+ kws = inst._keywords
71
+ return (tuple(id(d) for d in kws), tuple(len(d) for d in kws))
72
+
73
+
74
+ def _build(inst):
75
+ types = list(_FIXED)
76
+ index = {id(t): i for i, t in enumerate(types)}
77
+ merged = {}
78
+ for d in inst._keywords: # is_keyword() returns the first dictionary that has the key
79
+ for k, tt in d.items():
80
+ if k != k.upper() or k in merged:
81
+ continue
82
+ if id(tt) not in index:
83
+ index[id(tt)] = len(types)
84
+ types.append(tt)
85
+ merged[k] = index[id(tt)]
86
+ return _core.Core(types, [_flags(t) for t in types], list(merged.items()), inst.is_keyword)
87
+
88
+
89
+ def _core_for(inst):
90
+ """The Rust core for `inst`, or None if the lexer was customised in a way we can't mirror."""
91
+ global _orig_regex_list
92
+ if _orig_regex_list is None:
93
+ _orig_regex_list = inst._SQL_REGEX
94
+ if inst._SQL_REGEX is not _orig_regex_list or len(inst._SQL_REGEX) != len(_kw.SQL_REGEX):
95
+ return None
96
+ sig = _signature(inst)
97
+ if _state["sig"] != sig:
98
+ _state["core"] = _build(inst)
99
+ _state["sig"] = sig
100
+ return _state["core"]
101
+
102
+
103
+ def _usable(text, inst):
104
+ return type(text) is str and (_UNICODE_OK or text.isascii()) and _core_for(inst) is not None
105
+
106
+
107
+ def tokenize(sql, encoding=None):
108
+ """Drop-in for ``sqlparse.lexer.tokenize`` (returns a list-backed iterator when fast)."""
109
+ inst = _lexer.Lexer.get_default_instance()
110
+ if _usable(sql, inst):
111
+ try:
112
+ return iter(_state["core"].tokenize(sql))
113
+ except _FALLBACK:
114
+ pass
115
+ return _orig_get_tokens(inst, sql, encoding)
116
+
117
+
118
+ def _fast_get_tokens(self, text, encoding=None):
119
+ if self is _lexer.Lexer._default_instance and _usable(text, self):
120
+ try:
121
+ toks = _state["core"].tokenize(text)
122
+ except _FALLBACK:
123
+ toks = None
124
+ if toks is not None:
125
+ yield from toks
126
+ return
127
+ yield from _orig_get_tokens(self, text, encoding)
128
+
129
+
130
+ def split(sql, encoding=None, strip_semicolon=False):
131
+ """Drop-in for ``sqlparse.split``."""
132
+ inst = _lexer.Lexer.get_default_instance()
133
+ if _usable(sql, inst):
134
+ try:
135
+ res = _state["core"].split(sql, bool(strip_semicolon))
136
+ except _FALLBACK:
137
+ res = None
138
+ if res is not None:
139
+ return res
140
+ return _orig_split(sql, encoding, strip_semicolon)
141
+
142
+
143
+ def split_many(sqls, strip_semicolon=False):
144
+ """Split many scripts in parallel (GIL released); returns one list of statements per input."""
145
+ sqls = list(sqls)
146
+ inst = _lexer.Lexer.get_default_instance()
147
+ out = [None] * len(sqls)
148
+ idx = [i for i, s in enumerate(sqls) if _usable(s, inst)]
149
+ if idx:
150
+ try:
151
+ res = _state["core"].split_many([sqls[i] for i in idx], bool(strip_semicolon))
152
+ except _FALLBACK:
153
+ res = [None] * len(idx)
154
+ for i, r in zip(idx, res):
155
+ out[i] = r
156
+ for i, r in enumerate(out):
157
+ if r is None:
158
+ out[i] = _orig_split(sqls[i], None, strip_semicolon)
159
+ return out
160
+
161
+
162
+ def patch():
163
+ """Make sqlparse use the Rust lexer (parse/format/...) and splitter (split)."""
164
+ _lexer.Lexer.get_tokens = _fast_get_tokens
165
+ sqlparse.split = split
166
+
167
+
168
+ def unpatch():
169
+ _lexer.Lexer.get_tokens = _orig_get_tokens
170
+ sqlparse.split = _orig_split
171
+
172
+
173
+ def is_patched() -> bool:
174
+ return _lexer.Lexer.get_tokens is _fast_get_tokens
sqlparse_rs/_core.pyd ADDED
Binary file
sqlparse_rs/_core.pyi ADDED
@@ -0,0 +1,9 @@
1
+ from typing import Any, Callable
2
+
3
+ UNIDATA_VERSION: str
4
+
5
+ class Core:
6
+ def __init__(self, types: list[Any], flags: list[int], keywords: list[tuple[str, int]], is_keyword: Callable[[str], Any]) -> None: ...
7
+ def tokenize(self, text: str) -> list[tuple[Any, str]]: ...
8
+ def split(self, text: str, strip_semicolon: bool) -> list[str] | None: ...
9
+ def split_many(self, texts: list[str], strip_semicolon: bool) -> list[list[str] | None]: ...
sqlparse_rs/py.typed ADDED
File without changes
@@ -0,0 +1,76 @@
1
+ Metadata-Version: 2.4
2
+ Name: sqlparse-rs
3
+ Version: 0.1.0
4
+ Classifier: License :: OSI Approved :: BSD License
5
+ Classifier: Programming Language :: Rust
6
+ Classifier: Programming Language :: Python :: 3
7
+ Requires-Dist: sqlparse>=0.6.1,<0.7
8
+ Requires-Dist: pytest ; extra == 'test'
9
+ Provides-Extra: test
10
+ License-File: LICENSE
11
+ Summary: Rust-accelerated lexer and statement splitter for sqlparse
12
+ Keywords: sql,parser,sqlparse,rust
13
+ License: BSD-3-Clause
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
16
+ Project-URL: Repository, https://github.com/markocerkez/sqlparse-rs
17
+ Project-URL: Upstream, https://github.com/andialbrecht/sqlparse
18
+
19
+ # sqlparse-rs
20
+
21
+ Rust-accelerated lexer and statement splitter for [sqlparse](https://github.com/andialbrecht/sqlparse).
22
+ Output is identical to the original; anything the Rust core does not handle is passed to the
23
+ original implementation.
24
+
25
+ ```python
26
+ import sqlparse, sqlparse_rs
27
+ sqlparse_rs.patch() # sqlparse.split / parse / format now use the Rust lexer
28
+ sqlparse.split(script) # ~50-70x faster
29
+ sqlparse_rs.split_many(scripts) # parallel, GIL released
30
+ sqlparse_rs.unpatch()
31
+ ```
32
+
33
+ ## Speed
34
+
35
+ sqlparse 0.6.1, Python 3.13, 2 cores, 467 KB of generated queries plus sqlparse's own sample files
36
+ (`bench/bench.py`):
37
+
38
+ | operation | original | Rust | speedup |
39
+ |---|---:|---:|---:|
40
+ | `lexer.tokenize` (467 KB script) | 702 ms | 39 ms | 18x |
41
+ | `split` (467 KB script) | 1038 ms | 15 ms | 69x |
42
+ | `split` each of 1500 queries | 1118 ms | 22 ms | 50x |
43
+ | `split_many` (6000 queries, parallel) | 4240 ms | 50 ms | 86x |
44
+ | `parse` x500 | 1122 ms | 848 ms | 1.3x |
45
+ | `format(reindent)` x500 | 1557 ms | 1144 ms | 1.4x |
46
+
47
+ `parse` and `format` gain less because most of their time is spent in sqlparse's grouping pass
48
+ and token-object construction, which stay in Python. Porting grouping is the obvious next step.
49
+
50
+ ## What is ported
51
+
52
+ * The whole `SQL_REGEX` rule list, as hand-written matchers that reproduce the backtracking order
53
+ of the original patterns (including quirks such as `12abc` lexing as `1` + `2abc`).
54
+ * Dollar-quoted literals and multiline comments (`find_delimited_spans`).
55
+ * Keyword lookup, built from the live `Lexer` dictionaries.
56
+ * `StatementSplitter` (BEGIN/END, CASE, IF, LOOP, DECLARE blocks, GO, ...) for `split()`.
57
+
58
+ ## Fallbacks (results stay identical)
59
+
60
+ Bytes input, lone surrogates, customised lexers (`set_SQL_REGEX`), non-ASCII words that need
61
+ Python's `str.upper()`, and non-ASCII text when Python's Unicode database differs from the one the
62
+ character tables were generated from (`tools/gen_tables.py`). Keywords added via `add_keywords` are
63
+ picked up automatically.
64
+
65
+ ## Testing
66
+
67
+ * `tests/diff_test.py`: compares token streams (same token-type objects, same values) and
68
+ `split()` with and without `strip_semicolon` against the original on sample files and fuzzed
69
+ input; about 2M cases passed against sqlparse 0.6.1.
70
+ * sqlparse's own test suite passes unchanged with `sqlparse_rs.patch()` applied.
71
+ * `tests/test_basic.py`: unit tests.
72
+
73
+ ## License
74
+
75
+ BSD 3-Clause, same as sqlparse; see `LICENSE`.
76
+
@@ -0,0 +1,9 @@
1
+ sqlparse_rs/__init__.py,sha256=xFrL02uh4eiHAoDb8DhHvw9sVE1uNS1EKWak8HqD-v4,5820
2
+ sqlparse_rs/_core.pyd,sha256=tjlBFhGoV0lyUktx800NK38cvQatCnRbnQtOkHjxC_k,419840
3
+ sqlparse_rs/_core.pyi,sha256=FaQjtbqqLVi6JblbKyeZJbPy_9BwEdfFOGueN9SjVwA,456
4
+ sqlparse_rs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ sqlparse_rs-0.1.0.dist-info/METADATA,sha256=9RCTOCNYSDLfLpDaMeHN0DAvVoDJfMfMHdqsmg_qZLs,3154
6
+ sqlparse_rs-0.1.0.dist-info/WHEEL,sha256=xw8F9xBWUOgm5ym2S9tihj_bLJOb723bjhA0kdANo2I,95
7
+ sqlparse_rs-0.1.0.dist-info/licenses/LICENSE,sha256=bbA_Uvtk4kSYuzFahRxQN3dgReU1-OyF_BOKT5z5gx4,1725
8
+ sqlparse_rs-0.1.0.dist-info/sboms/sqlparse-rs.cyclonedx.json,sha256=jjGo7ecle6to0hmMSTlMCcG--1aguM8Xe1I_IpR2wcY,23620
9
+ sqlparse_rs-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-abi3-win_amd64
@@ -0,0 +1,32 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, markocerkez
4
+ All rights reserved.
5
+
6
+ This project is a port of sqlparse (https://github.com/andialbrecht/sqlparse):
7
+
8
+ Copyright (c) 2016, Andi Albrecht <albrecht.andi@gmail.com>
9
+ All rights reserved.
10
+
11
+ Redistribution and use in source and binary forms, with or without modification,
12
+ are permitted provided that the following conditions are met:
13
+
14
+ * Redistributions of source code must retain the above copyright notice,
15
+ this list of conditions and the following disclaimer.
16
+ * Redistributions in binary form must reproduce the above copyright notice,
17
+ this list of conditions and the following disclaimer in the documentation
18
+ and/or other materials provided with the distribution.
19
+ * Neither the name of the authors nor the names of its contributors may be
20
+ used to endorse or promote products derived from this software without
21
+ specific prior written permission.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
27
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,785 @@
1
+ {
2
+ "bomFormat": "CycloneDX",
3
+ "specVersion": "1.5",
4
+ "version": 1,
5
+ "serialNumber": "urn:uuid:13e66e6d-ee12-4c45-83ee-655b69da170f",
6
+ "metadata": {
7
+ "timestamp": "2026-11-18T21:07:05.564537800Z",
8
+ "tools": [
9
+ {
10
+ "vendor": "CycloneDX",
11
+ "name": "cargo-cyclonedx",
12
+ "version": "0.5.9"
13
+ }
14
+ ],
15
+ "component": {
16
+ "type": "library",
17
+ "bom-ref": "path+file:///D:/a/sqlparse-rs/sqlparse-rs#0.1.0",
18
+ "name": "sqlparse-rs",
19
+ "version": "0.1.0",
20
+ "description": "Rust-accelerated lexer and statement splitter for sqlparse",
21
+ "scope": "required",
22
+ "licenses": [
23
+ {
24
+ "expression": "BSD-3-Clause"
25
+ }
26
+ ],
27
+ "purl": "pkg:cargo/sqlparse-rs@0.1.0?download_url=file://.",
28
+ "components": [
29
+ {
30
+ "type": "library",
31
+ "bom-ref": "path+file:///D:/a/sqlparse-rs/sqlparse-rs#0.1.0 bin-target-0",
32
+ "name": "_core",
33
+ "version": "0.1.0",
34
+ "purl": "pkg:cargo/sqlparse-rs@0.1.0?download_url=file://.#src/lib.rs"
35
+ }
36
+ ]
37
+ },
38
+ "properties": [
39
+ {
40
+ "name": "cdx:rustc:sbom:target:all_targets",
41
+ "value": "true"
42
+ }
43
+ ]
44
+ },
45
+ "components": [
46
+ {
47
+ "type": "library",
48
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-deque@0.8.8",
49
+ "name": "crossbeam-deque",
50
+ "version": "0.8.8",
51
+ "description": "Concurrent work-stealing deque",
52
+ "scope": "required",
53
+ "hashes": [
54
+ {
55
+ "alg": "SHA-256",
56
+ "content": "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
57
+ }
58
+ ],
59
+ "licenses": [
60
+ {
61
+ "expression": "MIT OR Apache-2.0"
62
+ }
63
+ ],
64
+ "purl": "pkg:cargo/crossbeam-deque@0.8.8",
65
+ "externalReferences": [
66
+ {
67
+ "type": "website",
68
+ "url": "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-deque"
69
+ },
70
+ {
71
+ "type": "vcs",
72
+ "url": "https://github.com/crossbeam-rs/crossbeam"
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "library",
78
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-epoch@0.9.21",
79
+ "name": "crossbeam-epoch",
80
+ "version": "0.9.21",
81
+ "description": "Epoch-based garbage collection",
82
+ "scope": "required",
83
+ "hashes": [
84
+ {
85
+ "alg": "SHA-256",
86
+ "content": "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
87
+ }
88
+ ],
89
+ "licenses": [
90
+ {
91
+ "expression": "MIT OR Apache-2.0"
92
+ }
93
+ ],
94
+ "purl": "pkg:cargo/crossbeam-epoch@0.9.21",
95
+ "externalReferences": [
96
+ {
97
+ "type": "website",
98
+ "url": "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-epoch"
99
+ },
100
+ {
101
+ "type": "vcs",
102
+ "url": "https://github.com/crossbeam-rs/crossbeam"
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "type": "library",
108
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.23",
109
+ "name": "crossbeam-utils",
110
+ "version": "0.8.23",
111
+ "description": "Utilities for concurrent programming",
112
+ "scope": "required",
113
+ "hashes": [
114
+ {
115
+ "alg": "SHA-256",
116
+ "content": "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
117
+ }
118
+ ],
119
+ "licenses": [
120
+ {
121
+ "expression": "MIT OR Apache-2.0"
122
+ }
123
+ ],
124
+ "purl": "pkg:cargo/crossbeam-utils@0.8.23",
125
+ "externalReferences": [
126
+ {
127
+ "type": "website",
128
+ "url": "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-utils"
129
+ },
130
+ {
131
+ "type": "vcs",
132
+ "url": "https://github.com/crossbeam-rs/crossbeam"
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "type": "library",
138
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#either@1.19.0",
139
+ "name": "either",
140
+ "version": "1.19.0",
141
+ "description": "The enum `Either` with variants `Left` and `Right` is a general purpose sum type with two cases. ",
142
+ "scope": "required",
143
+ "hashes": [
144
+ {
145
+ "alg": "SHA-256",
146
+ "content": "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
147
+ }
148
+ ],
149
+ "licenses": [
150
+ {
151
+ "expression": "MIT OR Apache-2.0"
152
+ }
153
+ ],
154
+ "purl": "pkg:cargo/either@1.19.0",
155
+ "externalReferences": [
156
+ {
157
+ "type": "documentation",
158
+ "url": "https://docs.rs/either/1/"
159
+ },
160
+ {
161
+ "type": "vcs",
162
+ "url": "https://github.com/rayon-rs/either"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "type": "library",
168
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
169
+ "name": "heck",
170
+ "version": "0.5.0",
171
+ "description": "heck is a case conversion library.",
172
+ "scope": "required",
173
+ "hashes": [
174
+ {
175
+ "alg": "SHA-256",
176
+ "content": "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
177
+ }
178
+ ],
179
+ "licenses": [
180
+ {
181
+ "expression": "MIT OR Apache-2.0"
182
+ }
183
+ ],
184
+ "purl": "pkg:cargo/heck@0.5.0",
185
+ "externalReferences": [
186
+ {
187
+ "type": "vcs",
188
+ "url": "https://github.com/withoutboats/heck"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "library",
194
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
195
+ "name": "libc",
196
+ "version": "0.2.191",
197
+ "description": "Raw FFI bindings to platform libraries like libc.",
198
+ "scope": "required",
199
+ "hashes": [
200
+ {
201
+ "alg": "SHA-256",
202
+ "content": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
203
+ }
204
+ ],
205
+ "licenses": [
206
+ {
207
+ "expression": "MIT OR Apache-2.0"
208
+ }
209
+ ],
210
+ "purl": "pkg:cargo/libc@0.2.191",
211
+ "externalReferences": [
212
+ {
213
+ "type": "vcs",
214
+ "url": "https://github.com/rust-lang/libc"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "type": "library",
220
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
221
+ "author": "Aleksey Kladov <aleksey.kladov@gmail.com>",
222
+ "name": "once_cell",
223
+ "version": "1.21.4",
224
+ "description": "Single assignment cells and lazy values.",
225
+ "scope": "required",
226
+ "hashes": [
227
+ {
228
+ "alg": "SHA-256",
229
+ "content": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
230
+ }
231
+ ],
232
+ "licenses": [
233
+ {
234
+ "expression": "MIT OR Apache-2.0"
235
+ }
236
+ ],
237
+ "purl": "pkg:cargo/once_cell@1.21.4",
238
+ "externalReferences": [
239
+ {
240
+ "type": "documentation",
241
+ "url": "https://docs.rs/once_cell"
242
+ },
243
+ {
244
+ "type": "vcs",
245
+ "url": "https://github.com/matklad/once_cell"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "type": "library",
251
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
252
+ "author": "David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>",
253
+ "name": "proc-macro2",
254
+ "version": "1.0.107",
255
+ "description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.",
256
+ "scope": "required",
257
+ "hashes": [
258
+ {
259
+ "alg": "SHA-256",
260
+ "content": "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
261
+ }
262
+ ],
263
+ "licenses": [
264
+ {
265
+ "expression": "MIT OR Apache-2.0"
266
+ }
267
+ ],
268
+ "purl": "pkg:cargo/proc-macro2@1.0.107",
269
+ "externalReferences": [
270
+ {
271
+ "type": "documentation",
272
+ "url": "https://docs.rs/proc-macro2"
273
+ },
274
+ {
275
+ "type": "vcs",
276
+ "url": "https://github.com/dtolnay/proc-macro2"
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "type": "library",
282
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
283
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
284
+ "name": "pyo3-build-config",
285
+ "version": "0.30.1",
286
+ "description": "Build configuration for the PyO3 ecosystem",
287
+ "scope": "excluded",
288
+ "hashes": [
289
+ {
290
+ "alg": "SHA-256",
291
+ "content": "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
292
+ }
293
+ ],
294
+ "licenses": [
295
+ {
296
+ "expression": "MIT OR Apache-2.0"
297
+ }
298
+ ],
299
+ "purl": "pkg:cargo/pyo3-build-config@0.30.1",
300
+ "externalReferences": [
301
+ {
302
+ "type": "website",
303
+ "url": "https://pyo3.rs/"
304
+ },
305
+ {
306
+ "type": "vcs",
307
+ "url": "https://github.com/pyo3/pyo3"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "type": "library",
313
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
314
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
315
+ "name": "pyo3-ffi",
316
+ "version": "0.30.1",
317
+ "description": "Python-API bindings for the PyO3 ecosystem",
318
+ "scope": "required",
319
+ "hashes": [
320
+ {
321
+ "alg": "SHA-256",
322
+ "content": "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
323
+ }
324
+ ],
325
+ "licenses": [
326
+ {
327
+ "expression": "MIT OR Apache-2.0"
328
+ }
329
+ ],
330
+ "purl": "pkg:cargo/pyo3-ffi@0.30.1",
331
+ "externalReferences": [
332
+ {
333
+ "type": "website",
334
+ "url": "https://pyo3.rs/"
335
+ },
336
+ {
337
+ "type": "other",
338
+ "url": "python"
339
+ },
340
+ {
341
+ "type": "vcs",
342
+ "url": "https://github.com/pyo3/pyo3"
343
+ }
344
+ ]
345
+ },
346
+ {
347
+ "type": "library",
348
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
349
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
350
+ "name": "pyo3-macros-backend",
351
+ "version": "0.30.1",
352
+ "description": "Code generation for PyO3 package",
353
+ "scope": "required",
354
+ "hashes": [
355
+ {
356
+ "alg": "SHA-256",
357
+ "content": "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
358
+ }
359
+ ],
360
+ "licenses": [
361
+ {
362
+ "expression": "MIT OR Apache-2.0"
363
+ }
364
+ ],
365
+ "purl": "pkg:cargo/pyo3-macros-backend@0.30.1",
366
+ "externalReferences": [
367
+ {
368
+ "type": "website",
369
+ "url": "https://pyo3.rs/"
370
+ },
371
+ {
372
+ "type": "vcs",
373
+ "url": "https://github.com/pyo3/pyo3"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "type": "library",
379
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
380
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
381
+ "name": "pyo3-macros",
382
+ "version": "0.30.1",
383
+ "description": "Proc macros for PyO3 package",
384
+ "scope": "required",
385
+ "hashes": [
386
+ {
387
+ "alg": "SHA-256",
388
+ "content": "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
389
+ }
390
+ ],
391
+ "licenses": [
392
+ {
393
+ "expression": "MIT OR Apache-2.0"
394
+ }
395
+ ],
396
+ "purl": "pkg:cargo/pyo3-macros@0.30.1",
397
+ "externalReferences": [
398
+ {
399
+ "type": "website",
400
+ "url": "https://pyo3.rs/"
401
+ },
402
+ {
403
+ "type": "vcs",
404
+ "url": "https://github.com/pyo3/pyo3"
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "type": "library",
410
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
411
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
412
+ "name": "pyo3",
413
+ "version": "0.30.1",
414
+ "description": "Bindings to Python interpreter",
415
+ "scope": "required",
416
+ "hashes": [
417
+ {
418
+ "alg": "SHA-256",
419
+ "content": "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
420
+ }
421
+ ],
422
+ "licenses": [
423
+ {
424
+ "expression": "MIT OR Apache-2.0"
425
+ }
426
+ ],
427
+ "purl": "pkg:cargo/pyo3@0.30.1",
428
+ "externalReferences": [
429
+ {
430
+ "type": "documentation",
431
+ "url": "https://docs.rs/crate/pyo3/"
432
+ },
433
+ {
434
+ "type": "website",
435
+ "url": "https://pyo3.rs/"
436
+ },
437
+ {
438
+ "type": "other",
439
+ "url": "pyo3-python"
440
+ },
441
+ {
442
+ "type": "vcs",
443
+ "url": "https://github.com/pyo3/pyo3"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "type": "library",
449
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
450
+ "author": "David Tolnay <dtolnay@gmail.com>",
451
+ "name": "quote",
452
+ "version": "1.0.47",
453
+ "description": "Quasi-quoting macro quote!(...)",
454
+ "scope": "required",
455
+ "hashes": [
456
+ {
457
+ "alg": "SHA-256",
458
+ "content": "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
459
+ }
460
+ ],
461
+ "licenses": [
462
+ {
463
+ "expression": "MIT OR Apache-2.0"
464
+ }
465
+ ],
466
+ "purl": "pkg:cargo/quote@1.0.47",
467
+ "externalReferences": [
468
+ {
469
+ "type": "documentation",
470
+ "url": "https://docs.rs/quote/"
471
+ },
472
+ {
473
+ "type": "vcs",
474
+ "url": "https://github.com/dtolnay/quote"
475
+ }
476
+ ]
477
+ },
478
+ {
479
+ "type": "library",
480
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rayon-core@1.13.0",
481
+ "name": "rayon-core",
482
+ "version": "1.13.0",
483
+ "description": "Core APIs for Rayon",
484
+ "scope": "required",
485
+ "hashes": [
486
+ {
487
+ "alg": "SHA-256",
488
+ "content": "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
489
+ }
490
+ ],
491
+ "licenses": [
492
+ {
493
+ "expression": "MIT OR Apache-2.0"
494
+ }
495
+ ],
496
+ "purl": "pkg:cargo/rayon-core@1.13.0",
497
+ "externalReferences": [
498
+ {
499
+ "type": "documentation",
500
+ "url": "https://docs.rs/rayon-core/"
501
+ },
502
+ {
503
+ "type": "other",
504
+ "url": "rayon-core"
505
+ },
506
+ {
507
+ "type": "vcs",
508
+ "url": "https://github.com/rayon-rs/rayon"
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ "type": "library",
514
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rayon@1.12.0",
515
+ "name": "rayon",
516
+ "version": "1.12.0",
517
+ "description": "Simple work-stealing parallelism for Rust",
518
+ "scope": "required",
519
+ "hashes": [
520
+ {
521
+ "alg": "SHA-256",
522
+ "content": "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
523
+ }
524
+ ],
525
+ "licenses": [
526
+ {
527
+ "expression": "MIT OR Apache-2.0"
528
+ }
529
+ ],
530
+ "purl": "pkg:cargo/rayon@1.12.0",
531
+ "externalReferences": [
532
+ {
533
+ "type": "documentation",
534
+ "url": "https://docs.rs/rayon/"
535
+ },
536
+ {
537
+ "type": "vcs",
538
+ "url": "https://github.com/rayon-rs/rayon"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "type": "library",
544
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3",
545
+ "author": "The Rust Project Developers",
546
+ "name": "rustc-hash",
547
+ "version": "2.1.3",
548
+ "description": "A speedy, non-cryptographic hashing algorithm used by rustc",
549
+ "scope": "required",
550
+ "hashes": [
551
+ {
552
+ "alg": "SHA-256",
553
+ "content": "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
554
+ }
555
+ ],
556
+ "licenses": [
557
+ {
558
+ "expression": "Apache-2.0 OR MIT"
559
+ }
560
+ ],
561
+ "purl": "pkg:cargo/rustc-hash@2.1.3",
562
+ "externalReferences": [
563
+ {
564
+ "type": "vcs",
565
+ "url": "https://github.com/rust-lang/rustc-hash"
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "type": "library",
571
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
572
+ "author": "David Tolnay <dtolnay@gmail.com>",
573
+ "name": "syn",
574
+ "version": "3.0.10",
575
+ "description": "Parser for Rust source code",
576
+ "scope": "required",
577
+ "hashes": [
578
+ {
579
+ "alg": "SHA-256",
580
+ "content": "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
581
+ }
582
+ ],
583
+ "licenses": [
584
+ {
585
+ "expression": "MIT OR Apache-2.0"
586
+ }
587
+ ],
588
+ "purl": "pkg:cargo/syn@3.0.10",
589
+ "externalReferences": [
590
+ {
591
+ "type": "documentation",
592
+ "url": "https://docs.rs/syn"
593
+ },
594
+ {
595
+ "type": "vcs",
596
+ "url": "https://github.com/dtolnay/syn"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "type": "library",
602
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6",
603
+ "author": "Dan Gohman <sunfish@mozilla.com>",
604
+ "name": "target-lexicon",
605
+ "version": "0.13.6",
606
+ "description": "LLVM target triple types",
607
+ "scope": "excluded",
608
+ "hashes": [
609
+ {
610
+ "alg": "SHA-256",
611
+ "content": "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
612
+ }
613
+ ],
614
+ "licenses": [
615
+ {
616
+ "expression": "Apache-2.0 WITH LLVM-exception"
617
+ }
618
+ ],
619
+ "purl": "pkg:cargo/target-lexicon@0.13.6",
620
+ "externalReferences": [
621
+ {
622
+ "type": "documentation",
623
+ "url": "https://docs.rs/target-lexicon/"
624
+ },
625
+ {
626
+ "type": "vcs",
627
+ "url": "https://github.com/bytecodealliance/target-lexicon"
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "type": "library",
633
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27",
634
+ "author": "David Tolnay <dtolnay@gmail.com>",
635
+ "name": "unicode-ident",
636
+ "version": "1.0.27",
637
+ "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31",
638
+ "scope": "required",
639
+ "hashes": [
640
+ {
641
+ "alg": "SHA-256",
642
+ "content": "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
643
+ }
644
+ ],
645
+ "licenses": [
646
+ {
647
+ "expression": "(MIT OR Apache-2.0) AND Unicode-3.0"
648
+ }
649
+ ],
650
+ "purl": "pkg:cargo/unicode-ident@1.0.27",
651
+ "externalReferences": [
652
+ {
653
+ "type": "documentation",
654
+ "url": "https://docs.rs/unicode-ident"
655
+ },
656
+ {
657
+ "type": "vcs",
658
+ "url": "https://github.com/dtolnay/unicode-ident"
659
+ }
660
+ ]
661
+ }
662
+ ],
663
+ "dependencies": [
664
+ {
665
+ "ref": "path+file:///D:/a/sqlparse-rs/sqlparse-rs#0.1.0",
666
+ "dependsOn": [
667
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
668
+ "registry+https://github.com/rust-lang/crates.io-index#rayon@1.12.0",
669
+ "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3"
670
+ ]
671
+ },
672
+ {
673
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-deque@0.8.8",
674
+ "dependsOn": [
675
+ "registry+https://github.com/rust-lang/crates.io-index#crossbeam-epoch@0.9.21",
676
+ "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.23"
677
+ ]
678
+ },
679
+ {
680
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-epoch@0.9.21",
681
+ "dependsOn": [
682
+ "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.23"
683
+ ]
684
+ },
685
+ {
686
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.23"
687
+ },
688
+ {
689
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#either@1.19.0"
690
+ },
691
+ {
692
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0"
693
+ },
694
+ {
695
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191"
696
+ },
697
+ {
698
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4"
699
+ },
700
+ {
701
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
702
+ "dependsOn": [
703
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
704
+ ]
705
+ },
706
+ {
707
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
708
+ "dependsOn": [
709
+ "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
710
+ ]
711
+ },
712
+ {
713
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
714
+ "dependsOn": [
715
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
716
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1"
717
+ ]
718
+ },
719
+ {
720
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
721
+ "dependsOn": [
722
+ "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
723
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
724
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
725
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
726
+ ]
727
+ },
728
+ {
729
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
730
+ "dependsOn": [
731
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
732
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
733
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
734
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
735
+ ]
736
+ },
737
+ {
738
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
739
+ "dependsOn": [
740
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
741
+ "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
742
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
743
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
744
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1"
745
+ ]
746
+ },
747
+ {
748
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
749
+ "dependsOn": [
750
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107"
751
+ ]
752
+ },
753
+ {
754
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#rayon-core@1.13.0",
755
+ "dependsOn": [
756
+ "registry+https://github.com/rust-lang/crates.io-index#crossbeam-deque@0.8.8",
757
+ "registry+https://github.com/rust-lang/crates.io-index#crossbeam-utils@0.8.23"
758
+ ]
759
+ },
760
+ {
761
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#rayon@1.12.0",
762
+ "dependsOn": [
763
+ "registry+https://github.com/rust-lang/crates.io-index#either@1.19.0",
764
+ "registry+https://github.com/rust-lang/crates.io-index#rayon-core@1.13.0"
765
+ ]
766
+ },
767
+ {
768
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3"
769
+ },
770
+ {
771
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
772
+ "dependsOn": [
773
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
774
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
775
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
776
+ ]
777
+ },
778
+ {
779
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
780
+ },
781
+ {
782
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
783
+ }
784
+ ]
785
+ }