我創造了這個表cqsql --cql3外殼:如何在表中插入一個主鍵爲複合的新行?
CREATE TABLE Stats (
gsd blob,
period int,
tid blob,
sum int,
uniques blob,
PRIMARY KEY(gid, period, tid)
);
我使用clj-hector包裝庫。
我創建的羣集和密鑰空間對象:
(def clstr (h/cluster "Test Cluster" "localhost"))
(def ksp (h/keyspace clstr "mks"))
如何插入新行考慮以前的結構?如果你不熟悉clj-hector,Hector的代碼肯定會起作用,我將把它變成Clojure。