mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 17:45:30 +00:00
feat(ingest): mysql - add decimal128 custom type (#4624)
This commit is contained in:
parent
9e30a9cc81
commit
df514cfd6e
@ -14,16 +14,19 @@ GEOMETRY = make_sqlalchemy_type("GEOMETRY")
|
|||||||
POINT = make_sqlalchemy_type("POINT")
|
POINT = make_sqlalchemy_type("POINT")
|
||||||
LINESTRING = make_sqlalchemy_type("LINESTRING")
|
LINESTRING = make_sqlalchemy_type("LINESTRING")
|
||||||
POLYGON = make_sqlalchemy_type("POLYGON")
|
POLYGON = make_sqlalchemy_type("POLYGON")
|
||||||
|
DECIMAL128 = make_sqlalchemy_type("DECIMAL128")
|
||||||
|
|
||||||
register_custom_type(GEOMETRY)
|
register_custom_type(GEOMETRY)
|
||||||
register_custom_type(POINT)
|
register_custom_type(POINT)
|
||||||
register_custom_type(LINESTRING)
|
register_custom_type(LINESTRING)
|
||||||
register_custom_type(POLYGON)
|
register_custom_type(POLYGON)
|
||||||
|
register_custom_type(DECIMAL128)
|
||||||
|
|
||||||
base.ischema_names["geometry"] = GEOMETRY
|
base.ischema_names["geometry"] = GEOMETRY
|
||||||
base.ischema_names["point"] = POINT
|
base.ischema_names["point"] = POINT
|
||||||
base.ischema_names["linestring"] = LINESTRING
|
base.ischema_names["linestring"] = LINESTRING
|
||||||
base.ischema_names["polygon"] = POLYGON
|
base.ischema_names["polygon"] = POLYGON
|
||||||
|
base.ischema_names["decimal128"] = DECIMAL128
|
||||||
|
|
||||||
|
|
||||||
class MySQLConfig(BasicSQLAlchemyConfig):
|
class MySQLConfig(BasicSQLAlchemyConfig):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user