Building without boss_db

64 views
Skip to first unread message

Martin Torhage

unread,
Sep 30, 2014, 1:23:16 PM9/30/14
to chica...@googlegroups.com
Are there any plans to support building and running boss without boss_db? I solved a few build errors but I have no idea if I'm close to succeed or doomed to fail.

Thanks,
Martin

Martin Torhage

unread,
Sep 30, 2014, 2:55:00 PM9/30/14
to chica...@googlegroups.com
I made some further progress. Make it build is easy (just a few small changes required) but then there are a few references to boss_news which is part of boss_db. I will probably just comment that code out in my own fork. I'll post the complete how-to here if I succeeds.

can2nac

unread,
Oct 1, 2014, 10:38:04 AM10/1/14
to chica...@googlegroups.com
why do you need this?

mar...@campanja.com

unread,
Oct 6, 2014, 9:17:29 AM10/6/14
to chica...@googlegroups.com
boss_db has many dependencies that would be nice to get rid of.

I found out that boss_compiler is part of boss_db and not part of boss, so I gave up on this. If I just comment out the dependencies in boss_db's rebar.config that I don't need (ddb, epgsql, medici, mongodb, mysql, riakc, tiny_pq, uuid), then boss_db will pull in only a few more dependencies than boss.

Should boss_compiler be moved to boss?

Caiyun Deng

unread,
Oct 21, 2014, 1:57:31 AM10/21/14
to chica...@googlegroups.com
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 ...?
Reply all
Reply to author
Forward
0 new messages