Try to pass the absolute path to "simple.erl" to code_gen(). Does that work?
On Mon, Jun 9, 2008 at 12:20 PM, db <[EMAIL PROTECTED]> wrote:
>
> Mysql database is running and has a schema simple with table simple.
> Started erlydb like here:
>
> erlydb:start(mysql, [{hostname, "localhost"}, {username, "simple"},
> {password, "12345"}, {database, "simple"}, {pool_size, 10}]).
>
> Not sure why I don't get the mysql table abstraction file(simple.erl)
> when I execute the following. Also there aren't any error
> messages/logs to look into:
>
> 3> erlydb:code_gen(["simple.erl"], mysql).
> mysql_conn:426: fetch <<"show tables">> (id <0.81.0>)
> mysql_conn:426: fetch <<"describe simple">> (id <0.81.0>)
> debug:erlydb:355:
>
> --- To skip foreign key checks, compile with the {skip_fk_checks, true} option
>
> --
> rk
>
> That which we persist in doing becomes easier for us to do; not that
> the nature of the thing itself is changed, but that our power to do is
> increased.
> -Ralph Waldo Emerson
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---