python类JSONType()的实例源码

snapshot.py 文件源码 项目:athena 作者: slint 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
def _data_table(self):
        return sa.Table(
            'data', sa.MetaData(),
            sa.Column('pid', sa.String(255), nullable=False),
            sa.Column('json', JSONType(), nullable=False))
d24877c22ab0_add_attributes_to_resource_type.py 文件源码 项目:gnocchi 作者: gnocchixyz 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def upgrade():
    op.add_column("resource_type",
                  sa.Column('attributes', sa_utils.JSONType(),))
json.py 文件源码 项目:deb-python-sqlalchemy-utils 作者: openstack 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def __init__(self, *args, **kwargs):
        if json is None:
            raise ImproperlyConfigured(
                'JSONType needs anyjson package installed.'
            )
        super(JSONType, self).__init__(*args, **kwargs)


问题


面经


文章

微信
公众号

扫码关注公众号