sqlscope 1.0.0__tar.gz → 1.0.1__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.
- {sqlscope-1.0.0 → sqlscope-1.0.1}/.gitignore +0 -5
- {sqlscope-1.0.0 → sqlscope-1.0.1}/LICENSE +1 -1
- {sqlscope-1.0.0 → sqlscope-1.0.1}/PKG-INFO +1 -1
- {sqlscope-1.0.0 → sqlscope-1.0.1}/pyproject.toml +1 -1
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/builder/sql.py +5 -5
- {sqlscope-1.0.0 → sqlscope-1.0.1}/.readthedocs.yaml +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/Makefile +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/README.md +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/datasets/catalogs/constraints.json +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/datasets/catalogs/miedema.json +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/datasets/sql/constraints.sql +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/datasets/sql/miedema.sql +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/docs/Makefile +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/docs/conf.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/docs/index.rst +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/docs/make.bat +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/docs/requirements.txt +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/requirements.txt +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/builder/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/builder/postgres.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/catalog.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/column.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/constraint.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/schema.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/catalog/table.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/extractors.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/query.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/set_operations/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/set_operations/binary_set_operation.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/set_operations/select.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/set_operations/set_operation.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/smt.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/tokenized_sql.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/base.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/binary_ops.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/functions.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/predicates.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/primitives.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/queries.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/types.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/unary_ops.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/query/typechecking/util.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/ast/__init__.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/ast/column.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/ast/function.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/ast/subquery.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/ast/table.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/sql.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/src/sqlscope/util/tokens.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/tests/test_extractors.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/tests/test_query.py +0 -0
- {sqlscope-1.0.0 → sqlscope-1.0.1}/tests/test_typechecking.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) [
|
|
3
|
+
Copyright (c) [2026] [Davide Ponzini]
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlscope
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: This project extracts catalog and query metadata from a SQL query.
|
|
5
5
|
Project-URL: Repository, https://github.com/DavidePonzini/sqlscope
|
|
6
6
|
Project-URL: Documentation, https://sqlscope.readthedocs.io/en/latest/index.html
|
|
@@ -202,11 +202,11 @@ def build_catalog_from_sql(sql_string: str, search_path: str = 'public') -> Cata
|
|
|
202
202
|
|
|
203
203
|
# Add Primary Key constraint to catalog
|
|
204
204
|
# NOTE: needs to be perfomed after all columns have been added, since PKs can be defined at both column and table level
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
if len(pk_col_names) > 0:
|
|
206
|
+
catalog[schema_name][table_name].add_unique_constraint(
|
|
207
|
+
columns=pk_col_names,
|
|
208
|
+
constraint_type=ConstraintType.PRIMARY_KEY
|
|
209
|
+
)
|
|
210
210
|
|
|
211
211
|
# Add Unique constraints to catalog
|
|
212
212
|
# NOTE: needs to be perfomed after all columns have been added, since Unique constraints can be defined at both column and table level
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|