pyobvector 0.2.14__py3-none-any.whl → 0.2.15__py3-none-any.whl
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.
- pyobvector/schema/reflection.py +13 -12
- {pyobvector-0.2.14.dist-info → pyobvector-0.2.15.dist-info}/METADATA +1 -1
- {pyobvector-0.2.14.dist-info → pyobvector-0.2.15.dist-info}/RECORD +5 -5
- {pyobvector-0.2.14.dist-info → pyobvector-0.2.15.dist-info}/LICENSE +0 -0
- {pyobvector-0.2.14.dist-info → pyobvector-0.2.15.dist-info}/WHEEL +0 -0
pyobvector/schema/reflection.py
CHANGED
|
@@ -49,10 +49,12 @@ class OceanBaseTableDefinitionParser(MySQLTableDefinitionParser):
|
|
|
49
49
|
# r"(?:(?P<type>\S+) )?KEY"
|
|
50
50
|
r"(?: +{iq}(?P<name>(?:{esc_fq}|[^{fq}])+){fq})?"
|
|
51
51
|
r"(?: +USING +(?P<using_pre>\S+))?"
|
|
52
|
-
r" +\((?P<columns
|
|
52
|
+
r" +\((?P<columns>[^)]+)\)"
|
|
53
53
|
r"(?: +USING +(?P<using_post>\S+))?"
|
|
54
|
-
r"(?: +
|
|
54
|
+
r"(?: +WITH +\((?P<vector_params>[^)]+)\))?"
|
|
55
55
|
r"(?: +WITH PARSER +(?P<parser>\S+))?"
|
|
56
|
+
r"(?: +PARSER_PROPERTIES=\((?P<parser_properties>[^)]+)\))?"
|
|
57
|
+
r"(?: +(KEY_)?BLOCK_SIZE *[ =]? *(?P<keyblock>\S+) *(LOCAL)?)?"
|
|
56
58
|
r"(?: +COMMENT +(?P<comment>(\x27\x27|\x27([^\x27])*?\x27)+))?"
|
|
57
59
|
r"(?: +/\*(?P<version_sql>.+)\*/ *)?"
|
|
58
60
|
r",?$".format(iq=quotes["iq"], esc_fq=quotes["esc_fq"], fq=quotes["fq"])
|
|
@@ -137,16 +139,15 @@ class OceanBaseTableDefinitionParser(MySQLTableDefinitionParser):
|
|
|
137
139
|
if ret:
|
|
138
140
|
tp, spec = ret
|
|
139
141
|
|
|
140
|
-
if tp is None:
|
|
141
|
-
return ret
|
|
142
|
-
if tp == "partition":
|
|
143
|
-
# do not handle partition
|
|
142
|
+
if tp is None or tp == "partition" or not isinstance(spec, dict):
|
|
144
143
|
return ret
|
|
144
|
+
|
|
145
145
|
if tp == "fk_constraint":
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
spec
|
|
146
|
+
table = spec.get("table", [])
|
|
147
|
+
if isinstance(table, list) and len(table) == 2 and table[0] == self.default_schema:
|
|
148
|
+
spec["table"] = table[1:]
|
|
149
|
+
|
|
150
|
+
for action in ["onupdate", "ondelete"]:
|
|
151
|
+
if (spec.get(action) or "").lower() == "restrict":
|
|
152
|
+
spec[action] = None
|
|
152
153
|
return ret
|
|
@@ -22,7 +22,7 @@ pyobvector/schema/geo_srid_point.py,sha256=RwEoCgGTmXDc0le1B2E3mZudtqiFdMf2M0Va1
|
|
|
22
22
|
pyobvector/schema/gis_func.py,sha256=u7bqaB5qIylW8GvRdglLQL2H1SheQZNnAqgZrOGyrks,3118
|
|
23
23
|
pyobvector/schema/match_against_func.py,sha256=ExTQJvAXHaZwBo1Sjy6IlnF1nF6D9xGUsF4f7zaP8Q0,1336
|
|
24
24
|
pyobvector/schema/ob_table.py,sha256=wlb6Oo9LG-sr8XnG_wbX1Qi5CgnS0XUzNL5qTdsncoY,392
|
|
25
|
-
pyobvector/schema/reflection.py,sha256=
|
|
25
|
+
pyobvector/schema/reflection.py,sha256=ae8BYlbOWddyU6ly_bOcudsB1CKcD_OcUpAvLVgOW7o,5890
|
|
26
26
|
pyobvector/schema/replace_stmt.py,sha256=FtGLXHz6DwzD0FOZPn1EZgXdbHZu-K9HIHS02rZqYrE,560
|
|
27
27
|
pyobvector/schema/vec_dist_func.py,sha256=4GAWSrhFNDYooBpbBg604wDrByPrewp46Y4VeoDxV7Y,2986
|
|
28
28
|
pyobvector/schema/vector.py,sha256=dFKfPcTOto0jNxVjhvDmJM7Q4wwp6Z-HcZ3K6oZxUMc,1120
|
|
@@ -30,7 +30,7 @@ pyobvector/schema/vector_index.py,sha256=aNtrEBUclc4s6QuqCZpu3Hj3OdjyhbWgtLiJzo6
|
|
|
30
30
|
pyobvector/util/__init__.py,sha256=D9EgRDlcMSDhY3uI__vnCl45Or75dOXMWSval5P5fqs,251
|
|
31
31
|
pyobvector/util/ob_version.py,sha256=ZIySam8q_MCiwctAiAHPB4GdAzGQiXEo1wVkc9IOTDU,1539
|
|
32
32
|
pyobvector/util/vector.py,sha256=xyM-NuOyd78K7P3kinqyWvLIzEbf9c-4TKn_QVF7qgw,2265
|
|
33
|
-
pyobvector-0.2.
|
|
34
|
-
pyobvector-0.2.
|
|
35
|
-
pyobvector-0.2.
|
|
36
|
-
pyobvector-0.2.
|
|
33
|
+
pyobvector-0.2.15.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
34
|
+
pyobvector-0.2.15.dist-info/METADATA,sha256=msAPB_jEYpVDpBtf3Dvj0-4mmy9OwfXpfP1kODTE38A,6659
|
|
35
|
+
pyobvector-0.2.15.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
36
|
+
pyobvector-0.2.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|