create-table column-definitions error

9 views
Skip to first unread message

nr...@georgetown.edu

unread,
Feb 23, 2016, 1:39:11 PM2/23/16
to Cassaforte, a Clojure client for Apache Cassandra
I'm having a problem getting this library to work. This is Clojure 1.8 and Cassaforte 2.0.0.  The code below:

(let [session (client/connect ["localhost"])]
   
(create-table session "test-table"
                 
(column-definitions {:uuid :varchar
                                       
:name :varchar
                                       
:class :int
                                       
:subclass :int
                                       
:primary-key [:uuid]})))

Gives the error:

Unable to resolve symbol: column-definitions in this context

This is the way table creation is done in the documentation, but that's fairly old. Has something changed recently? Anyone else run into this? Other functions in the library seem to work fine, it's just the create-table that I can't get working.


Alex P

unread,
Feb 23, 2016, 1:45:26 PM2/23/16
to Cassaforte, a Clojure client for Apache Cassandra
If I remember correctly, `column-definition` was sitting in a different namespace, since it was aliased to `hayt`. 

I'd suggest to use Cassaforte 3.0.0-RC1 which I just released. Most likely people were scared of using alpha version, but latest alpha was used in production for quite some time by now, and the only reason we haven't cut a release was our attempts to make it more and more backwards-compatible. 

You can grab a link to RC here: https://clojars.org/clojurewerkz/cassaforte
Reply all
Reply to author
Forward
0 new messages