server.py 文件源码

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

项目:SynthDB 作者: shawnrushefsky 项目源码 文件源码
def update(self):
        if not secure or check_key():
            with open(os.path.join(path, 'preql_queries.pickle')) as pq:
                self.queries = pickle.load(pq)
            with open(os.path.join(path, "synthdb_internal.pickle")) as sdb:
                funcs = pickle.load(sdb)
                node_topo_funcs.update(funcs['node_topo_funcs'])
                link_topo_funcs.update(funcs['link_topo_funcs'])
                graph_format.update(funcs['graph_format'])
                removers.update(funcs['removers'])
                graph_tool_functions.update(funcs['graph_tool_functions'])
                graph_generator_functions.update(funcs['graph_generator_functions'])
                walkers.update(funcs['walkers'])
                topo_formats.update(funcs['topo_formats'])
            return json.dumps("Functions updated.")
        else:
            wrong_key()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号