preql_queries.py 文件源码

python
阅读 14 收藏 0 点赞 0 评论 0

项目:SynthDB 作者: shawnrushefsky 项目源码 文件源码
def fields(self, g_id, dbid, head, conn):
    obj_type = json.loads(head['params'])['type']
    if obj_type in acceptable_types:
        fields = auto_reql(r.db(dbid).table(obj_type).map(lambda n: n.keys()).reduce(
            lambda x, y: r.expr(x + y).distinct()), conn)
        return json.dumps(fields)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号