Skip to content

Instantly share code, notes, and snippets.

@zcaudate
Created July 29, 2014 00:06
Show Gist options
  • Save zcaudate/b2deb00c8de89a63dda0 to your computer and use it in GitHub Desktop.
Save zcaudate/b2deb00c8de89a63dda0 to your computer and use it in GitHub Desktop.
(def db (connect host port
{:schema {"app" ^{:strategy_class "NetworkTopologyStrategy"
:strategy_options {"dc1" 3, "dc2" : 2}}
{"Users" {"name" ^{:index_type :key
:index_name "user_name_idx"}
[:utf-8]
"age" [:long]}}}})))
@zcaudate
Copy link
Author

then do:

(init-schema db)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment