I created a module simple.erl in following folder
/home/db/project1/src/simple.erl and added the following content:

-module(simple).
%-export([table/0]).
%table()-> simple.

Then on erl shell I started the following:

erlydb:start(mysql, [{hostname, "localhost"}, {username, "simple"},
{password, "simple"}, {database, "simple"}, {pool_size, 10}]).

erlydb:code_gen(["/home/db/project1/src/simple.erl"],{mysql,
[{allow_unsafe_statements, true}]}, [debug_info]).

After erlydb:code_gen, I don't see anything written to simple.erl.
Content of simple.erl is still:

-module(simple).
%-export([table/0]).
%table()-> simple.



On Jun 25, 2:53 am, "Yariv Sadan" <[EMAIL PROTECTED]> wrote:
> It seems like your module name doesn't match the table name. If you
> want the table name to be different from the module name, you need to
> add the following line to the module:
>
> table() -> TableName.
>
> Yariv
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to