__init__.py 文件源码

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

项目:python-dse-driver 作者: datastax 项目源码 文件源码
def get_default_protocol():

    if Version(CASSANDRA_VERSION) >= Version('3.10'):
        return ProtocolVersion.DSE_V1
    if Version(CASSANDRA_VERSION) >= Version('2.2'):
        return 4
    elif Version(CASSANDRA_VERSION) >= Version('2.1'):
        return 3
    elif Version(CASSANDRA_VERSION) >= Version('2.0'):
        raise Exception("Cassandra Version 2.0 not supported anymore")
    else:
        raise Exception("Running tests with an unsupported Cassandra version: {0}".format(CASSANDRA_VERSION))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号