我想在pycassa中实现这些cli命令的等效性:
CREATE COLUMN FAMILY users
WITH comparator = UTF8Type
AND key_validation_class=UTF8Type
AND column_metadata = [
{column_name: full_name, validation_class: UTF8Type}
{column_name: email, validation_class: UTF8Type}
{column_name: state, validation_class: UTF8Type}
{column_name: gender, validation_class: UTF8Type}
{column_name: birth_year, validation_class: LongType}
];
皮卡萨的等价性是什么?谢谢
2条答案
按热度按时间a1o7rhls1#
你可以试试这个。我对python客户端不太了解,但是。。。
yi0zb3m42#
回答另一个问题:key\u validation\u class='compositetype(utf8type,utf8type)'