First Check
Commit to Help
Example Code
fromsqlmodelimportField, Session, SQLModel, create_engine, select, ARRAY, Integer, String, FLOATfromgeoalchemy2importGeometryfromtypingimportOptionalfromdatetimeimportdatetimefromurllib.parseimportquote_plusfromtypingimportList, Optional, Setfromsqlalchemy.sql.schemaimportColumnclassSite_Metrics(SQLModel, table=True):
site_metric_id: Optional[int] =Field(default=None, primary_key=True)
site_id: intmetric_id: intcreated_at: datetimeupdated_at: datetimen_value: floata_value: Optional[List] =Field(default_factory=list, sa_column=Column(ARRAY(Geometry('POINT'))))
deleted_at: datetimeDescription
I have point[] type in SQLModel but by far without luck. I tried many things but this variation is the closest I have got. Is there any other way to do this? Thanks
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.8.0
Additional Context
No response
First Check
Commit to Help
Example Code
Description
I have
point[]type in SQLModel but by far without luck. I tried many things but this variation is the closest I have got. Is there any other way to do this? ThanksOperating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.8.0
Additional Context
No response