📜  flask sqlalchemy 数组列 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:39.932000             🧑  作者: Mango

代码示例1
from sqlalchemy.dialects.postgresql import ARRAY

class MyTable:
    __tablename__ = 'mytable'

    id = Column(Integer, primary_key=True)
    text_array = Column(ARRAY(Unicode))

    def __init__(self, text_array):
        self.text_array = text_array