Closed developerworks closed 8 years ago
@developerworks The PB (http://basho.github.io/riak-erlang-client/riakc_pb_socket.html) or HTTP apis do not expose functions to create bucket types. AFAIK, currently the only method is to use the riak-admin
command line tool, as described here: https://github.com/pma/riak_ecto/blob/master/examples/simple/README.md
To implement the migration callbacks in the Riak Ecto adapter, an option would be to just shell out riak-admin
directly.
As a side note, I'm currently using a bucket type per model, instead of one bucket type per Repo. Found it much easier to implement multitenancy.
I have read the api doc of
riakc_pb_socket
client library, but can not find the bucket type creation functionalities, i konw i can use the http rest api to create bucket types, i just want to create bucket types just like RDBMSCREATE DATABASE <dbname>
My be the rest api could be added into the repo. give me some ideas, thank you.