我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用sqlalchemy.types.Text()。
def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.create_table('results', sa.Column('id', sa.Integer(), nullable=False), sa.Column('url', sa.String(), nullable=True), sa.Column('result_all', postgresql.JSON(astext_type=Text()), nullable=True), sa.Column('result_no_stop_words', postgresql.JSON(astext_type=Text()), nullable=True), sa.PrimaryKeyConstraint('id') ) ### end Alembic commands ###