从cassandra获取所有数据

时间:2019-04-03 08:13:08

标签: python cassandra

我正在尝试使用python GET方法从我的cassandra数据库中获取所有数据,但似乎无法获取所有值。

我尝试了几种解决方案,没有任何结果。当我调用该方法时,我只从该cassandra表中获得第一行,我想要该表中的所有内容。

这是到目前为止的代码:

有什么想法吗?

@api.route('/getAllApps')
class getAllApps(Resource):
    @api.marshal_list_with(model)
    def get(self):
        return ar.getAllApplications()


 def getAllApplications(*args):
        for data in AddApplication.objects().limit(None):
             return data


0 个答案:

没有答案
相关问题