@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 +1 -1
- package/python/table_client.py +4 -7
package/package.json
CHANGED
package/python/table_client.py
CHANGED
|
@@ -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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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:
|