1
我想寫一個由Cassandra驅動的數據訪問層的測試。 所以我用嵌入式卡桑德拉與Astyanax和卡桑德拉單位,但我找不到加載包含這樣的事情到嵌入式實例的腳本的方式:嵌入式Cassandra:如何應用腳本?
create column family user_profiles
with key_validation_class = UTF8Type
and comparator = UTF8Type
and column_metadata = [
{column_name: first_name, validation_class: UTF8Type},
{column_name: last_name, validation_class: UTF8Type},
{column_name: email, validation_class: UTF8Type},
{column_name: year_of_birth, validation_class: IntegerType}
]
有沒有辦法做到這一點?如果我在腳本中切換到CQL3,解決方案是否可以正常工作?