Hi! I want to remove boss_db too. Because when i want to save something to
mysql, I should
get_db_id(Id) ->
[_ModuleName, DbIdStr] = string:tokens(Id, "-"),
erlang:list_to_integer(DbIdStr).
And when i select the data from mysql, I should
get_boss_id(Id) when is_integer(Id) ->
lists:concat(["account-", Id]).
There is also a situation, When i change a_table to 10 sharding: a_table_1,
a_table_2, a_table_3....
Should i create ten models like a_table_1.erl, a_table_2.erl, a_table_3.erl
...?
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/d2d71c54-c071-4a4d-8cda-4df727d025ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.