First Check
Commit to Help
Example Code
from sqlmodel import Field, Session, SQLModel, create_engine, select, ARRAY, Integer, String, FLOAT
from geoalchemy2 import Geometry
from typing import Optional
from datetime import datetime
from urllib.parse import quote_plus
from typing import List, Optional, Set
from sqlalchemy.sql.schema import Column
class Site_Metrics(SQLModel, table=True):
site_metric_id: Optional[int] = Field(default=None, primary_key=True)
site_id: int
metric_id: int
created_at: datetime
updated_at: datetime
n_value: float
a_value: Optional[List] = Field(default_factory=list, sa_column=Column(ARRAY(Geometry('POINT'))))
deleted_at: datetime
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? 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