sqlty 0.1.0__cp315-cp315-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.
- sqlty/__init__.py +99 -0
- sqlty/__main__.py +5 -0
- sqlty/_breaking.py +191 -0
- sqlty/_check.py +880 -0
- sqlty/_cli.py +1219 -0
- sqlty/_config.py +666 -0
- sqlty/_core.cp315-win_amd64.pyd +0 -0
- sqlty/_core.pyi +108 -0
- sqlty/_decode.py +62 -0
- sqlty/_drivers.py +274 -0
- sqlty/_gitignore.py +58 -0
- sqlty/_helpers.py +613 -0
- sqlty/_json_shape.py +299 -0
- sqlty/_json_types.py +225 -0
- sqlty/_lint.py +350 -0
- sqlty/_params.py +177 -0
- sqlty/_psycopg.py +269 -0
- sqlty/_source.py +654 -0
- sqlty/_type_extractor/__init__.py +51 -0
- sqlty/_type_extractor/ast_fields.py +823 -0
- sqlty/_type_extractor/compat.py +252 -0
- sqlty/_type_extractor/extract.py +179 -0
- sqlty/_type_extractor/generic.py +95 -0
- sqlty/_type_extractor/info.py +161 -0
- sqlty/_type_extractor/sandbox.py +385 -0
- sqlty/_type_extractor/subtype.py +156 -0
- sqlty/_widening.py +89 -0
- sqlty/core.py +566 -0
- sqlty/drivers/psycopg.py +104 -0
- sqlty/magic.py +126 -0
- sqlty/py.typed +0 -0
- sqlty/rules/ambiguous-column.md +48 -0
- sqlty/rules/column-count-mismatch.md +30 -0
- sqlty/rules/column-name-mismatch.md +34 -0
- sqlty/rules/column-type-mismatch.md +75 -0
- sqlty/rules/fstring-skipped.md +23 -0
- sqlty/rules/inline-sql-comment.md +27 -0
- sqlty/rules/insert-missing-column.md +58 -0
- sqlty/rules/json-shape-mismatch.md +96 -0
- sqlty/rules/literal-mismatch.md +83 -0
- sqlty/rules/mysql-sql-marker.md +32 -0
- sqlty/rules/nullable-mismatch.md +76 -0
- sqlty/rules/param-count-mismatch.md +66 -0
- sqlty/rules/param-type-mismatch.md +73 -0
- sqlty/rules/redundant-literal.md +68 -0
- sqlty/rules/redundant-optional.md +100 -0
- sqlty/rules/select-star-no-schema.md +24 -0
- sqlty/rules/select-star.md +77 -0
- sqlty/rules/stale-rewrite.md +33 -0
- sqlty/rules/stale-type.md +50 -0
- sqlty/rules/tstring-skipped.md +68 -0
- sqlty/rules/typeddict-inheritance.md +35 -0
- sqlty/rules/typeddict-key-mismatch.md +38 -0
- sqlty/rules/unchecked-query.md +34 -0
- sqlty/rules/ungrouped-column.md +67 -0
- sqlty/rules/unknown-column.md +68 -0
- sqlty/rules/unknown-function.md +49 -0
- sqlty/rules/unknown-table.md +47 -0
- sqlty/rules/unknown-type.md +74 -0
- sqlty/rules/unparsed-query.md +46 -0
- sqlty/rules/unsupported-syntax.md +69 -0
- sqlty/rules/untyped-query.md +39 -0
- sqlty/rules/unused-ignore.md +36 -0
- sqlty/skill/SKILL.md +110 -0
- sqlty-0.1.0.dist-info/METADATA +210 -0
- sqlty-0.1.0.dist-info/RECORD +71 -0
- sqlty-0.1.0.dist-info/WHEEL +4 -0
- sqlty-0.1.0.dist-info/entry_points.txt +2 -0
- sqlty-0.1.0.dist-info/licenses/LICENSE +21 -0
- sqlty-0.1.0.dist-info/sboms/sqlty-core.cyclonedx.json +1891 -0
- sqlty_magic.pth +1 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sqlty
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
11
|
+
Classifier: Programming Language :: Rust
|
|
12
|
+
Classifier: Programming Language :: SQL
|
|
13
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Classifier: Topic :: Database
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Dist: pathspec>=0.12.1
|
|
18
|
+
Requires-Dist: typing-extensions>=4.15.0 ; python_full_version < '3.15'
|
|
19
|
+
Requires-Dist: psycopg>=3.2.12 ; extra == 'psycopg'
|
|
20
|
+
Provides-Extra: psycopg
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Summary: Type-safe SQL queries for Python
|
|
23
|
+
Keywords: sql,type-hints,mypy,type-safety,static-analysis,code-generation
|
|
24
|
+
Author-email: Jiri Kuncar <jiri.kuncar@gmail.com>
|
|
25
|
+
License-Expression: MIT
|
|
26
|
+
Requires-Python: >=3.14
|
|
27
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
28
|
+
Project-URL: Changelog, https://github.com/jirikuncar/sqlty/releases
|
|
29
|
+
Project-URL: Documentation, https://jirikuncar.github.io/sqlty/
|
|
30
|
+
Project-URL: Homepage, https://github.com/jirikuncar/sqlty
|
|
31
|
+
Project-URL: Issues, https://github.com/jirikuncar/sqlty/issues
|
|
32
|
+
Project-URL: Repository, https://github.com/jirikuncar/sqlty
|
|
33
|
+
|
|
34
|
+
# SQLTy
|
|
35
|
+
|
|
36
|
+
[](https://pypi.org/project/sqlty/)
|
|
37
|
+
[](https://www.python.org/downloads/)
|
|
38
|
+
[](https://github.com/jirikuncar/sqlty/actions/workflows/tests.yml)
|
|
39
|
+
[](https://opensource.org/licenses/MIT)
|
|
40
|
+
|
|
41
|
+
Your SQL already knows its types. SQLTy tells Python.
|
|
42
|
+
|
|
43
|
+
Type-safe raw SQL without an ORM or a database connection. sqlty reads row and
|
|
44
|
+
parameter types from your SQL and schema, and checks them on every commit, so a
|
|
45
|
+
migration that changes a column is caught in review, not in production.
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/jirikuncar/sqlty/main/docs/assets/demo.gif" alt="A terminal session: sqlty rewrite adds the row type to a query, a migration makes email nullable, sqlty check --fix updates the type and mypy reports the line that would crash" width="720">
|
|
49
|
+
<br>
|
|
50
|
+
<em>A migration makes <code>email</code> nullable. sqlty and mypy find the code that would crash.</em>
|
|
51
|
+
(<a href="https://github.com/jirikuncar/sqlty/blob/main/docs/assets/demo.tape">view source</a>)
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
**Documentation: [jirikuncar.github.io/sqlty](https://jirikuncar.github.io/sqlty/)**
|
|
55
|
+
|
|
56
|
+
**Fits if** you write SQL as string literals on Python 3.14+, against
|
|
57
|
+
PostgreSQL, SQLite or MySQL, with a schema dump or SQL migrations in the
|
|
58
|
+
repository. Rows are typed end to end with psycopg 3; with other drivers sqlty
|
|
59
|
+
checks the query and its parameters, and you annotate what the cursor returns
|
|
60
|
+
([Drivers](https://jirikuncar.github.io/sqlty/guide/drivers-and-orms/)).
|
|
61
|
+
|
|
62
|
+
> **Beta.** APIs and configuration may change before 1.0. Feedback welcome in
|
|
63
|
+
> [GitHub Issues](https://github.com/jirikuncar/sqlty/issues).
|
|
64
|
+
|
|
65
|
+
## How it works
|
|
66
|
+
|
|
67
|
+
Drivers return rows of `Any`, so nothing ties a query's columns to the code
|
|
68
|
+
that reads them. Start a query with `--sql` and a newline, and
|
|
69
|
+
`sqlty rewrite .` adds the row type inferred from your `CREATE TABLE`
|
|
70
|
+
statements:
|
|
71
|
+
|
|
72
|
+
```toml
|
|
73
|
+
# pyproject.toml
|
|
74
|
+
[tool.sqlty]
|
|
75
|
+
schema = "schema.sql"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`schema.sql`:
|
|
79
|
+
|
|
80
|
+
```sql
|
|
81
|
+
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT NOT NULL, email VARCHAR(255) NOT NULL);
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
query = "--sql\nSELECT id, name, email FROM users"
|
|
86
|
+
# rewritten: query = SQL[tuple[int, str, str]]("--sql\nSELECT id, name, email FROM users")
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`SQL[T]` is a `str` subclass, so the query still runs anywhere a string does,
|
|
90
|
+
and mypy, pyright and ty see `T`. Without a schema, casts such as `id::INTEGER`
|
|
91
|
+
type the columns; a query with neither stays as it is. With a space instead of
|
|
92
|
+
the newline, `"--sql SELECT ..."` is a SQL comment, and `sqlty check` warns.
|
|
93
|
+
|
|
94
|
+
## What it catches
|
|
95
|
+
|
|
96
|
+
### A migration changes a column
|
|
97
|
+
|
|
98
|
+
```toml
|
|
99
|
+
[tool.sqlty]
|
|
100
|
+
schema = "schema.sql"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
A migration dropped `NOT NULL` from `email`.
|
|
104
|
+
|
|
105
|
+
`schema.sql`:
|
|
106
|
+
|
|
107
|
+
```sql
|
|
108
|
+
CREATE TABLE users (id INTEGER PRIMARY KEY, email TEXT);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
from sqlty import SQL
|
|
113
|
+
|
|
114
|
+
# error: [stale-type] "SQL[tuple[int, str]] should be SQL[tuple[int, str | None]]"
|
|
115
|
+
query = SQL[tuple[int, str]]("--sql\nSELECT id, email FROM users")
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`sqlty check --fix .` updates the type, and your type checker finds every
|
|
119
|
+
caller that now needs a `None` check. `stale-type` is a warning by default; set
|
|
120
|
+
`stale-type = "error"` under `[tool.sqlty.rules]` to fail CI on it
|
|
121
|
+
([CI](https://jirikuncar.github.io/sqlty/recipes/ci/)). For rolling deploys,
|
|
122
|
+
`sqlty breaking --against origin/main` exits 1 when old code breaks on the new
|
|
123
|
+
schema or new code on the old one
|
|
124
|
+
([Breaking schema changes](https://jirikuncar.github.io/sqlty/guide/breaking-changes/)).
|
|
125
|
+
|
|
126
|
+
### A row type that doesn't match its query
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
from typing import TypedDict
|
|
130
|
+
from sqlty import SQL
|
|
131
|
+
|
|
132
|
+
class User(TypedDict):
|
|
133
|
+
id: str
|
|
134
|
+
name: str
|
|
135
|
+
|
|
136
|
+
# error: [column-type-mismatch] "User.id is str but query column 'id' infers int"
|
|
137
|
+
query = SQL[User]("--sql\nSELECT id::INTEGER, name::TEXT FROM users")
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`TypedDict`, `NamedTuple`, dataclasses and Pydantic models are all checked
|
|
141
|
+
([Row types](https://jirikuncar.github.io/sqlty/guide/row-types/)).
|
|
142
|
+
|
|
143
|
+
### Wrong parameters, misspelled columns
|
|
144
|
+
|
|
145
|
+
```toml
|
|
146
|
+
[tool.sqlty]
|
|
147
|
+
dialect = "sqlite"
|
|
148
|
+
schema = "schema.sql"
|
|
149
|
+
|
|
150
|
+
[tool.sqlty.rules]
|
|
151
|
+
unknown-column = "warn"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
`schema.sql`:
|
|
155
|
+
|
|
156
|
+
```sql
|
|
157
|
+
CREATE TABLE users (id INTEGER PRIMARY KEY, email TEXT);
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
import sqlite3
|
|
162
|
+
from sqlty import SQL
|
|
163
|
+
|
|
164
|
+
conn = sqlite3.connect("app.db")
|
|
165
|
+
|
|
166
|
+
# error: [param-count-mismatch] "query has 1 parameter, the call passes 2"
|
|
167
|
+
conn.execute(SQL[tuple[str | None]]("--sql\nSELECT email FROM users WHERE id = ?"), (1, 2))
|
|
168
|
+
|
|
169
|
+
# error: [unknown-column] "column `emial` does not exist in `users`"
|
|
170
|
+
conn.execute("--sql\nSELECT emial FROM users")
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
`?`, `$1`, `%s` and `:name` placeholders are checked on sqlite3, psycopg and
|
|
174
|
+
asyncpg calls ([Parameters](https://jirikuncar.github.io/sqlty/guide/parameters/)).
|
|
175
|
+
These are the mistakes coding agents make: every problem is one
|
|
176
|
+
`file:line: [rule] message` line and a non-zero exit code they can act on, and
|
|
177
|
+
the [sqlty skill](https://jirikuncar.github.io/sqlty/recipes/agents/) teaches
|
|
178
|
+
them the conventions.
|
|
179
|
+
|
|
180
|
+
## Get started
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
pip install "sqlty[psycopg]" # or: uv add sqlty; the extra adds the psycopg helpers
|
|
184
|
+
printf '%s\n' 'q = "--sql\nSELECT id::INTEGER, name::TEXT FROM users"' > queries.py
|
|
185
|
+
sqlty rewrite -v . # q = SQL[tuple[int, str]]("--sql\n...")
|
|
186
|
+
sqlty check . # report drift and mismatches
|
|
187
|
+
sqlty strip . # undo: back to plain strings
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
`rewrite` and `strip` only touch the wrapper, never the SQL, so you can adopt
|
|
191
|
+
sqlty one module at a time and back out. New project:
|
|
192
|
+
[Quickstart](https://jirikuncar.github.io/sqlty/quickstart/). Existing codebase:
|
|
193
|
+
[Migration](https://jirikuncar.github.io/sqlty/recipes/migration/), starting
|
|
194
|
+
with `pg_dump --schema-only app > schema.sql`.
|
|
195
|
+
|
|
196
|
+
Not a fit for ORMs, SQL built at runtime, or runtime validation;
|
|
197
|
+
[Why SQLTy?](https://jirikuncar.github.io/sqlty/motivation/) compares it with
|
|
198
|
+
sqlc, sqlx, PgTyped and others.
|
|
199
|
+
|
|
200
|
+
## About
|
|
201
|
+
|
|
202
|
+
The engine is Rust ([sqlparser-rs](https://github.com/apache/datafusion-sqlparser-rs)
|
|
203
|
+
via [PyO3](https://pyo3.rs)), with wheels for Linux, macOS and Windows. SQLTy is
|
|
204
|
+
developed with AI coding agents, mainly Claude Code; every change is reviewed by
|
|
205
|
+
a maintainer (see the
|
|
206
|
+
[AI-assisted contributions](https://github.com/jirikuncar/sqlty/blob/main/CONTRIBUTING.md#ai-assisted-contributions)
|
|
207
|
+
policy). [Contributing](https://github.com/jirikuncar/sqlty/blob/main/CONTRIBUTING.md) ·
|
|
208
|
+
[Credits](https://jirikuncar.github.io/sqlty/credits/) ·
|
|
209
|
+
MIT [License](https://github.com/jirikuncar/sqlty/blob/main/LICENSE).
|
|
210
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
sqlty/__init__.py,sha256=6hNPzsMVv7tlvJWkACCCJw1QDDkG48lcdzS6Cxz5UrY,3282
|
|
2
|
+
sqlty/__main__.py,sha256=Dqfplt602elQxSiaQSpN4mU49HflXtJbDFLzLWMntkE,98
|
|
3
|
+
sqlty/_breaking.py,sha256=OjirM1sWqItFHkJv-20BKg9bJRuu5Z1OVwr4y9M_BJ4,7303
|
|
4
|
+
sqlty/_check.py,sha256=UEvCBxJ8DDVkyKG85xQH3E9gQPiJQuSGBtqDPzoeQuE,35150
|
|
5
|
+
sqlty/_cli.py,sha256=_MC-EZhTMAPdInL9hPchNH1muCfKyGzS7RqKeI05UQI,48208
|
|
6
|
+
sqlty/_config.py,sha256=kYCqOmc-Y8lw_0OspvrpSh_4RjJDrvnxohnkUDFwHxw,25203
|
|
7
|
+
sqlty/_core.cp315-win_amd64.pyd,sha256=fWlXUBj2G5i_LGTB3H-q5O_-HHTIsVy3aOOyuosVWPI,11203584
|
|
8
|
+
sqlty/_core.pyi,sha256=_tyjl4G2K3b_EDnMYY58Ozbp1d8qEFkJ63Kr04d7qUg,3543
|
|
9
|
+
sqlty/_decode.py,sha256=LCRF53sbpbEazEpLXdBWYbL5iyl3SWIpuS6wmDjV3Jw,2502
|
|
10
|
+
sqlty/_drivers.py,sha256=zRfWjgjaPX5v8RlA8U0TZBns_21DhFUy4TUDCurjTpA,11554
|
|
11
|
+
sqlty/_gitignore.py,sha256=jtgzETJxe55_o8WgUCW-dOF8Zx1p9srTmyhV_vR7S9o,2132
|
|
12
|
+
sqlty/_helpers.py,sha256=S9UnxP1bUxRJeQwFlk9A6UOo7bDsajsx4r3kcrplu4I,26174
|
|
13
|
+
sqlty/_json_shape.py,sha256=fq4O43pjZeHyX4cde8RiQF-ZIUmqFkJi7iWwQGHLUC0,11633
|
|
14
|
+
sqlty/_json_types.py,sha256=dyu-GEUEXIBnJa06-2TbQjjOJRRhrNb-tno-8T75Dcc,9385
|
|
15
|
+
sqlty/_lint.py,sha256=h8v1MKiRTmLlxQViiVQ50pqWgSpEwLxLXUFyzZfTjQw,12952
|
|
16
|
+
sqlty/_params.py,sha256=bH023TKoCC91Jnx5jXOdiNeVLO0D6NWGZt2FiqbFiXs,7330
|
|
17
|
+
sqlty/_psycopg.py,sha256=TovA91NayFHZLzzEbIs7mSN2w_IIug_Fnu2FdtfCSaI,10460
|
|
18
|
+
sqlty/_source.py,sha256=X_8Gj_87s7xOc4glYpn4QaRzmyYSlRk4uwAEk6L9aN8,29422
|
|
19
|
+
sqlty/_type_extractor/__init__.py,sha256=DQW0cNGQrKOEkqmw1am_U-IcHyYK2VdqUhtX8m7XpPE,1946
|
|
20
|
+
sqlty/_type_extractor/ast_fields.py,sha256=bsxHdAfn9dedn3Gh92k4j0SbbwhTYCBio8Opjz4veBU,32714
|
|
21
|
+
sqlty/_type_extractor/compat.py,sha256=0M-ZmX1VQgRJqqVtln2cw08-OfatYw_CXL261JLU8Jw,9680
|
|
22
|
+
sqlty/_type_extractor/extract.py,sha256=m5AsRXTb3_4s8a0NEvErb_refcA3U9ppVb3qA2gBd9U,7633
|
|
23
|
+
sqlty/_type_extractor/generic.py,sha256=uDkYvAivysy27sqfH1eHFRC7B9fWyX63U72Y6wyMAAE,4097
|
|
24
|
+
sqlty/_type_extractor/info.py,sha256=cNthhTbC46QUVK-U0J7kGf_0FvBAm8rbxCJguoH5V-I,6181
|
|
25
|
+
sqlty/_type_extractor/sandbox.py,sha256=3Q2cgihkRne3L8HFC-GN4-7efxjxznBWPSQ8EC0iw90,14792
|
|
26
|
+
sqlty/_type_extractor/subtype.py,sha256=pl6UOivGlNKqlEUIJC9-1IUCxQdFrkOp8bWs-g8r7GU,5004
|
|
27
|
+
sqlty/_widening.py,sha256=c2hUcTiTH-ff6EaSso9vnEm9rkWW1q7ah_AKjLa6B1c,3235
|
|
28
|
+
sqlty/core.py,sha256=HnsNeDCRrvCQePEh9cpxwydqemSsoB4OXKQZbC735sQ,22103
|
|
29
|
+
sqlty/drivers/psycopg.py,sha256=QLoFXGq-a35XRdizuNXNRkAJPjsofXaOrlTXXd36nPY,3942
|
|
30
|
+
sqlty/magic.py,sha256=hAz_knL4Su4UHpc9LktejCfeuptTB_mCpf3f8nsWVDI,3728
|
|
31
|
+
sqlty/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
+
sqlty/rules/ambiguous-column.md,sha256=fIHTLJj80YmdDHhVWbDyWrj-jUYaIEAL8p4Xzzhbp3M,1283
|
|
33
|
+
sqlty/rules/column-count-mismatch.md,sha256=CnWfCtiVfzSzeR-YwiDnTLJI6SIC-YjgoidPcbgbJO8,739
|
|
34
|
+
sqlty/rules/column-name-mismatch.md,sha256=8I7hKpch_OwdEvFpw9v4hJbvrWr7bovwk0LdkSiOs0c,851
|
|
35
|
+
sqlty/rules/column-type-mismatch.md,sha256=od402a9p_HEPfR0zlYx1-734AXD3hhhnUJ7orZR9-8I,1862
|
|
36
|
+
sqlty/rules/fstring-skipped.md,sha256=YBo5vL_LCtCbx0iXR86rSv0LTiAxkYkH1eNUflWaZIo,601
|
|
37
|
+
sqlty/rules/inline-sql-comment.md,sha256=cg3ixBwMyrTQCan4IHER9Nr2ySUEN_LvIUkzwG5ds5A,920
|
|
38
|
+
sqlty/rules/insert-missing-column.md,sha256=QaTDIO4zPDFuBgNp10KSAe9oJ3XScbwmONVZPim59QQ,1483
|
|
39
|
+
sqlty/rules/json-shape-mismatch.md,sha256=5MAqN9C5dEZOPr3L9c2r9mnwS0azuonnR3ONgrJBqkk,2904
|
|
40
|
+
sqlty/rules/literal-mismatch.md,sha256=X_aj44rFmk6LfVFmqoal-znIyFwVxbdxszMHXWh05vs,2388
|
|
41
|
+
sqlty/rules/mysql-sql-marker.md,sha256=Wc1IG1vIoFXSJ4oTugFdX8yTF5OR0aHXBWt7Z0DEFkM,886
|
|
42
|
+
sqlty/rules/nullable-mismatch.md,sha256=HUsmPCopyT7o9_9wSPegaeYKDNGL8bTIAZt-gc69exU,1924
|
|
43
|
+
sqlty/rules/param-count-mismatch.md,sha256=GnVsA6eclv1C_vdnsp1Gc_XcIGjdsLLt0O7RDTgH4Yg,2316
|
|
44
|
+
sqlty/rules/param-type-mismatch.md,sha256=_cKjVKNfg4qmvSoREdaGJMXo7nVCqLRBR6P2yHmtzl4,2839
|
|
45
|
+
sqlty/rules/redundant-literal.md,sha256=QXqsdQg-MMKX1x8DmNAWcOmWKZjE_heLtYCVUkbZOw0,1646
|
|
46
|
+
sqlty/rules/redundant-optional.md,sha256=VSAk5vCFntmDEzUoxev6pZ40sEd4gOTe21IPmNtOAZ4,2508
|
|
47
|
+
sqlty/rules/select-star-no-schema.md,sha256=UA04wrir2tlNu2UHYxKpSiQf4RxMdCIIubSM4trlHK0,609
|
|
48
|
+
sqlty/rules/select-star.md,sha256=u1Ki5i1ba37-InR6C7lmKEIxKC7ulKxZ-G4TxPVAiCQ,2702
|
|
49
|
+
sqlty/rules/stale-rewrite.md,sha256=z2zN8z3NcD0XIkR-zuHFAYNnoCFe3wKK_DjhxUQ_KuA,779
|
|
50
|
+
sqlty/rules/stale-type.md,sha256=-1yGHLf2LBee0lkV0rqeE8Mcykd8fdMcEprkvGYX93o,1368
|
|
51
|
+
sqlty/rules/tstring-skipped.md,sha256=1LqMU4LaBQDTJfz3gLYRhGt-K71uJHR-ZDx87bH4Szk,2212
|
|
52
|
+
sqlty/rules/typeddict-inheritance.md,sha256=Y0IHJZ3kRewbSo2RSEJGzvvUaJucZi5ZcUfzEhhwudg,808
|
|
53
|
+
sqlty/rules/typeddict-key-mismatch.md,sha256=swTr2fTVyBDK3dhygjBO7vffIrfvHtQwTzhylP6_qX8,1248
|
|
54
|
+
sqlty/rules/unchecked-query.md,sha256=L2qhy-Febu_8uadTMlNIhOetxjR8Z2aB7kzLIjKWEb4,1246
|
|
55
|
+
sqlty/rules/ungrouped-column.md,sha256=iro1ihyp744IqQrXobg4GzUG7hCA9MBagwj8HXW0byI,1978
|
|
56
|
+
sqlty/rules/unknown-column.md,sha256=ve9xdVH6Jcncfc5TFLpOa02FOykMv4660hKHe7EyYhM,2209
|
|
57
|
+
sqlty/rules/unknown-function.md,sha256=vpkmJ9zQfr_y8npx_3qcBXjJkcm3OyEiCuNymF3FRYo,1369
|
|
58
|
+
sqlty/rules/unknown-table.md,sha256=OsLn2tD7Kwa5cNjCVs7vV2jn3Ofn6ECIcSll4P_hXM4,1582
|
|
59
|
+
sqlty/rules/unknown-type.md,sha256=6xhVUjjO0VFKZF_hFMzQd1eVxAK-mrHMzXr77N7Bro0,2070
|
|
60
|
+
sqlty/rules/unparsed-query.md,sha256=Scx0M_xlOO7Pegj_kuoFeGSNSvHvk8qrv9_rFYBjhZE,1362
|
|
61
|
+
sqlty/rules/unsupported-syntax.md,sha256=KwWyLDkHTNfuPBY7worBiK1w3swqDT7Qe0oyUs_WpUI,2286
|
|
62
|
+
sqlty/rules/untyped-query.md,sha256=jWHpNT9wMWAXk77oBruij8E24qPjmxxa5bC_R9zLeUs,1093
|
|
63
|
+
sqlty/rules/unused-ignore.md,sha256=q2K1Nk8ogvi8rlCV9qNz6gtS_JS77JU6eLNVNV5UjgQ,969
|
|
64
|
+
sqlty/skill/SKILL.md,sha256=Q3MzjqCDT3EA-lB3Alu3zh5fFHcuWQtelIIqEyGmpaU,4884
|
|
65
|
+
sqlty-0.1.0.dist-info/METADATA,sha256=Vsd-FNsyZRg7WsPbJEbFlnPuZJaoFgozBsa9Y08dcW0,8307
|
|
66
|
+
sqlty-0.1.0.dist-info/WHEEL,sha256=1_h6kx0k2_JFDbRzyfVOsGEcPlSNf1uBTnmW3MNufiU,97
|
|
67
|
+
sqlty-0.1.0.dist-info/entry_points.txt,sha256=5FDXj0ZNfZ8wqm32SnNIpYJVxejaBvPc4LdeRxa5qPw,40
|
|
68
|
+
sqlty-0.1.0.dist-info/licenses/LICENSE,sha256=qvAOudLOFlmfeTIq4HQ5tY2D4gkO4dpkdE_pF-7kRmI,1089
|
|
69
|
+
sqlty-0.1.0.dist-info/sboms/sqlty-core.cyclonedx.json,sha256=yD9VC3RH2ARF473d2U6he5xhyajiuP67pIadCrHx0cI,58749
|
|
70
|
+
sqlty_magic.pth,sha256=lyePhOQvgBQXZdLcaJN-vDnp-fDxj-ZwLSN_jhyYmec,188
|
|
71
|
+
sqlty-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jiri Kuncar
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|