ProcruSQL 0.0.16__tar.gz → 0.0.17__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.
- {procrusql-0.0.16 → procrusql-0.0.17}/PKG-INFO +4 -3
- {procrusql-0.0.16 → procrusql-0.0.17}/setup.cfg +3 -2
- {procrusql-0.0.16 → procrusql-0.0.17}/src/ProcruSQL.egg-info/PKG-INFO +4 -3
- {procrusql-0.0.16 → procrusql-0.0.17}/src/procrusql/parser.py +6 -1
- {procrusql-0.0.16 → procrusql-0.0.17}/LICENSE +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/README.md +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/pyproject.toml +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/src/ProcruSQL.egg-info/SOURCES.txt +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/src/ProcruSQL.egg-info/dependency_links.txt +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/src/ProcruSQL.egg-info/entry_points.txt +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/src/ProcruSQL.egg-info/top_level.txt +0 -0
- {procrusql-0.0.16 → procrusql-0.0.17}/src/procrusql/__init__.py +0 -0
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ProcruSQL
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.17
|
|
4
4
|
Summary: Make a database fit its description
|
|
5
5
|
Home-page: https://git.hjp.at:3000/hjp/procrusql
|
|
6
6
|
Author: Peter J. Holzer
|
|
7
7
|
Author-email: hjp@hjp.at
|
|
8
|
+
License: MIT
|
|
8
9
|
Project-URL: Bug Tracker, https://git.hjp.at:3000/hjp/procrusql/issues
|
|
9
10
|
Project-URL: Repository, https://git.hjp.at:3000/hjp/procrusql
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Requires-Python: >=3.8
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
+
Dynamic: license-file
|
|
16
17
|
|
|
17
18
|
ProcruSQL
|
|
18
19
|
=========
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = ProcruSQL
|
|
3
|
-
version = 0.0.
|
|
3
|
+
version = 0.0.17
|
|
4
4
|
author = Peter J. Holzer
|
|
5
5
|
author_email = hjp@hjp.at
|
|
6
6
|
description = Make a database fit its description
|
|
@@ -12,8 +12,9 @@ project_urls =
|
|
|
12
12
|
Repository = https://git.hjp.at:3000/hjp/procrusql
|
|
13
13
|
classifiers =
|
|
14
14
|
Programming Language :: Python :: 3
|
|
15
|
-
License :: OSI Approved :: MIT License
|
|
16
15
|
Operating System :: OS Independent
|
|
16
|
+
license = MIT
|
|
17
|
+
license_files = LICENSE
|
|
17
18
|
|
|
18
19
|
[options]
|
|
19
20
|
package_dir =
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ProcruSQL
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.17
|
|
4
4
|
Summary: Make a database fit its description
|
|
5
5
|
Home-page: https://git.hjp.at:3000/hjp/procrusql
|
|
6
6
|
Author: Peter J. Holzer
|
|
7
7
|
Author-email: hjp@hjp.at
|
|
8
|
+
License: MIT
|
|
8
9
|
Project-URL: Bug Tracker, https://git.hjp.at:3000/hjp/procrusql/issues
|
|
9
10
|
Project-URL: Repository, https://git.hjp.at:3000/hjp/procrusql
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Requires-Python: >=3.8
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
+
Dynamic: license-file
|
|
16
17
|
|
|
17
18
|
ProcruSQL
|
|
18
19
|
=========
|
|
@@ -355,11 +355,16 @@ def parse_column_definition(ps):
|
|
|
355
355
|
"json", "jsonb",
|
|
356
356
|
"uuid",
|
|
357
357
|
r"integer\[\]", r"int\[\]", r"bigint\[\]",
|
|
358
|
+
r"text\[\]",
|
|
358
359
|
"bytea",
|
|
359
360
|
),
|
|
360
361
|
key=lambda x: -len(x) # longest match first
|
|
361
362
|
)
|
|
362
|
-
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
|
|
363
|
+
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b( on delete cascade)?))*"
|
|
364
|
+
# XXX - I think we should separate constraints from columns
|
|
365
|
+
# Either completely (separate declarations in the source), or by producing
|
|
366
|
+
# two rules (HaveColumn, HaveForeignKey) from one declaration (if that is
|
|
367
|
+
# possible).
|
|
363
368
|
m = ps2.match(pattern)
|
|
364
369
|
if not m:
|
|
365
370
|
ps.record_child_failure(ps2, "expected column definition")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|