db.py 文件源码

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

项目:shifter 作者: rgamba 项目源码 文件源码
def get_current_schema(config):
    try:
        cqlsh = run_cqlsh(config, command="DESCRIBE " + config['keyspace'])
        out = run(cqlsh, hide='stdout')
    except Exception as e:
        click.secho("Unable to get the current DB schema: {}".format(e), fg='red')
        sys.exit()
    return out.stdout
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号