我已經定義了一個自定義的卡桑德拉式和一張桌子,e.g:幻象DSL和卡桑德拉自定義字段類型
CREATE TYPE my.usertype (
id text,
firstname text,
lastname text
);
CREATE TABLE mytable (
user frozen <usertype>,
...,
PRIMARY KEY(user)
);
我如何定義在斯卡拉卡桑德拉表定義這種用戶類型?
class MyTable extends CassandraTable[X, Y] {
object user extends UserColumn(this) with PartitionKey[User]
^^^^^??? ^^^???
我怎樣才能實現對UserType
定製UserColumn
?我檢查了Phantom代碼的列實現,但任何示例和/或解釋都會很好。
謝謝您指向公關! – Bruckwald