@an5/adapters 0.1.3 → 0.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@an5/adapters",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Standalone language adapters for AN5 ORM - TypeScript, Python, .NET query execution.",
5
5
  "license": "MIT",
6
6
  "main": "typescript/index.js",
@@ -30,13 +30,10 @@ class AdapterTableClient:
30
30
  def _fields(self) -> List[Dict]:
31
31
  fields = model_fields.get(self._model, [])
32
32
  if isinstance(fields, dict):
33
- normalized = []
34
- for name, value in fields.items():
35
- if isinstance(value, dict):
36
- normalized.append({"name": name, **value})
37
- else:
38
- normalized.append({"name": name, "type": value})
39
- return normalized
33
+ raise TypeError(
34
+ "AN5 Python metadata is out of date. Regenerate with @an5/orm >= 1.0.4 "
35
+ "so MODEL_FIELDS uses a list of field objects."
36
+ )
40
37
  return fields
41
38
 
42
39
  def _pagination(self, take: Optional[int], skip: int, order_sql: str) -> str: