|
|
| Author |
Message |
< Erlyweb mailing list ~ how to have an erlang app just use erlyweb ORM and introspec |
| Guest |
Posted: Wed Nov 07, 2007 8:06 pm |
|
|
|
Guest
|
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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Thu Nov 08, 2007 6:38 am |
|
|
|
Guest
|
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 <codewalkerjoe@gmail.com> 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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|