@ai-devtools/dbspec-linux-x64 1.5.7 → 1.5.9

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbspec
3
- Version: 1.5.7
3
+ Version: 1.5.9
4
4
  Summary: DBSpec: CLI/TUI for database design (Excel as DSL)
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -88,6 +88,7 @@ src/migrations/autogenerate_enums.py
88
88
  src/migrations/autogenerate_pk.py
89
89
  src/migrations/autogenerate_renames.py
90
90
  src/migrations/collation_catalog.py
91
+ src/migrations/collation_rendering.py
91
92
  src/migrations/collations.py
92
93
  src/migrations/commands.py
93
94
  src/migrations/defaults.py
@@ -126,6 +127,7 @@ src/resources/__init__.py
126
127
  src/resources/sqlalchemy_templates/README.md
127
128
  src/resources/sqlalchemy_templates/__init__.py
128
129
  src/resources/sqlalchemy_templates/base.py.j2
130
+ src/resources/sqlalchemy_templates/collation_helper.py.j2
129
131
  src/resources/sqlalchemy_templates/domain_init.py.j2
130
132
  src/resources/sqlalchemy_templates/model.py.j2
131
133
  src/resources/sqlalchemy_templates/package_init.py.j2
@@ -253,14 +255,17 @@ src/utils/postgres_types.py
253
255
  src/utils/progress.py
254
256
  src/utils/reference_sheets.py
255
257
  src/utils/sheets.py
258
+ src/utils/sqlalchemy_collations.py
256
259
  src/utils/type_casting.py
257
260
  src/xlsx/__init__.py
258
261
  src/xlsx/formatting.py
259
262
  src/xlsx/reader.py
260
263
  src/xlsx/reader_common.py
261
264
  src/xlsx/reader_extraction.py
265
+ src/xlsx/reader_formatting.py
262
266
  src/xlsx/reader_layout.py
263
267
  src/xlsx/reader_recovery.py
268
+ src/xlsx/reference_ranges.py
264
269
  src/xlsx/reference_titles.py
265
270
  src/xlsx/style_utils.py
266
271
  src/xlsx/writer.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dbspec"
7
- version = "1.5.7"
7
+ version = "1.5.9"
8
8
  description = "DBSpec: CLI/TUI for database design (Excel as DSL)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -0,0 +1,16 @@
1
+ import sqlalchemy as sa
2
+
3
+
4
+ def _dbspec_collation_kwargs(name: str, schema: str | None = None) -> dict[str, str]:
5
+ """Keep schema qualification compatible with SQLAlchemy 2.0 and 2.1."""
6
+ if hasattr(sa.String(), "collation_schema"):
7
+ result = {"collation": sa.sql.quoted_name(name, quote=True)}
8
+ if schema is not None:
9
+ result["collation_schema"] = sa.sql.quoted_name(schema, quote=True)
10
+ return result
11
+ escaped_name = name.replace('"', '""')
12
+ if schema is not None:
13
+ escaped_schema = schema.replace('"', '""')
14
+ escaped_name = f'{escaped_schema}"."{escaped_name}'
15
+ return {"collation": escaped_name}
16
+
package/bin/dbspec/dbspec CHANGED
Binary file
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "version": "1.5.7"
27
+ "version": "1.5.9"
28
28
  }