Skip to content

Instantly share code, notes, and snippets.

@hoebat
Created July 29, 2014 00:06
Show Gist options
  • Select an option

  • Save hoebat/b2deb00c8de89a63dda0 to your computer and use it in GitHub Desktop.

Select an option

Save hoebat/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]}}}})))
@hoebat
Copy link
Copy Markdown
Author

hoebat commented Jul 29, 2014

then do:

(init-schema db)

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