It shouldn't be a problem. Just pass the right connection params to
erlydb:start(), create a module for the tables you want to use and put
these modules in src/components, and call erlyweb:compile() to
generate the DB abstraction functions. Then, you can use the generated
functions either from the shell or from your application code. The
only limitation you might run into is in handling relations: if the
schema doesn't follow ErlyWeb's foreign key naming conventions, the
relational features may not work.

Yariv

On Nov 7, 2007 12:06 PM, nintendo <[EMAIL PROTECTED]> wrote:
>
> I have database created by another php orm.  I was wondering if
> elryweb ORM can introspect the db and create the models in erlang.
> Then have my "about to be implemented erlang app" just use the Erlyweb
> ORM to update the database, so I don't have to worry about sql stuff.
>
> Is this feasible? If so, any pointers.  I am new to erlang and
> functional programming.
>
> thanks,
> joe
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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