Skip to content

Commit 6852335

Browse files
committed
fixes
1 parent 1924f06 commit 6852335

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ sql = "SELECT * FROM data WHERE result = (x = 1)"
147147

148148
## Supported SQL Constructs
149149

150-
- **Logical Operators**: AND, OR, NOT
151-
- **Comparison Operators**: =, <>, <, >, <=, >=, LIKE, IN, IS NULL, etc.
152-
- **Complex Expressions**: CASE statements, subqueries, function calls
150+
- **Logical Operators**: `AND`, `OR`, `NOT`
151+
- **Comparison Operators**: `=`, `<>`, `<`, `>`, `<=`, `>=`, `LIKE`, `IN`, `IS NULL`, etc.
152+
- **Complex Expressions**: `CASE` statements, subqueries, function calls
153153
- **Nested Logic**: Parentheses and nested boolean expressions
154154
- **Multiple Dialects**: DuckDB, PostgreSQL, MySQL, SQLite, and more via SQLGlot
155155

pyproject.toml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[project]
22
name = "query-farm-sql-manipulation"
3-
version = "0.1.0"
4-
description = "Add your description here"
3+
version = "0.1.3"
4+
description = "A Python library for intelligent SQL predicate manipulation using SQLGlot. This library provides tools to safely remove specific predicates from `SQL WHERE` clauses and filter SQL statements based on column availability."
55
authors = [
66
{ name = "Rusty Conover", email = "rusty@query.farm" }
77
]
88
dependencies = [
99
"sqlglot>=26.33.0",
1010
]
1111
readme = "README.md"
12-
requires-python = ">= 3.12"
12+
requires-python = ">= 3.11"
1313
keywords = ["sql", "predicates", "predicate parsing", "sql parsing"]
1414
classifiers = [
1515
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Topic :: Database",
1818
"Topic :: Database :: Database Engines/Servers",
19-
"Programming Language :: Python :: 3.12"
19+
"Programming Language :: Python :: 3.11"
2020
]
2121

2222
[project.urls]
@@ -28,20 +28,16 @@ Issues = "https://github.com/query-farm/python-sql-manipulation/issues"
2828
requires = ["hatchling==1.26.3", "hatch-vcs"]
2929
build-backend = "hatchling.build"
3030

31-
32-
dev-dependencies = [
33-
"pytest>=8.3.2",
34-
"pytest-mypy>=0.10.3",
35-
"pytest-env>=1.1.3",
36-
"pytest-cov>=5.0.0",
37-
"ruff>=0.6.2",
38-
]
39-
4031
[tool.rye]
32+
managed = true
4133
dev-dependencies = [
4234
"pytest>=8.4.1",
4335
"mypy>=1.16.1",
4436
"lxml>=6.0.0",
37+
"pytest-mypy>=0.10.3",
38+
"pytest-env>=1.1.3",
39+
"pytest-cov>=5.0.0",
40+
"ruff>=0.6.2",
4541
]
4642

4743
[tool.rye.include]

requirements-dev.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
# universal: false
1111

1212
-e file:.
13+
coverage==7.9.2
14+
# via pytest-cov
15+
filelock==3.18.0
16+
# via pytest-mypy
1317
iniconfig==2.1.0
1418
# via pytest
1519
lxml==6.0.0
1620
mypy==1.16.1
21+
# via pytest-mypy
1722
mypy-extensions==1.1.0
1823
# via mypy
1924
packaging==25.0
@@ -22,9 +27,17 @@ pathspec==0.12.1
2227
# via mypy
2328
pluggy==1.6.0
2429
# via pytest
30+
# via pytest-cov
2531
pygments==2.19.2
2632
# via pytest
2733
pytest==8.4.1
34+
# via pytest-cov
35+
# via pytest-env
36+
# via pytest-mypy
37+
pytest-cov==6.2.1
38+
pytest-env==1.1.5
39+
pytest-mypy==1.0.1
40+
ruff==0.12.2
2841
sqlglot==26.33.0
2942
# via query-farm-sql-manipulation
3043
typing-extensions==4.14.1

0 commit comments

Comments
 (0)