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
评论列表
文章目录