in reply to Re^2: Quick way to set up columns with Class::DBI ?
in thread Quick way to set up columns with Class::DBI ?
My objective is to create some generic routines that will simply generate web forms that will allow me to BREAD several disparate databases of mine. Does Rose sound good for this?
It sure does :) Take a look at Rose::HTML::Objects as well for the form generation. It's pretty easy to auto-generate both things: the RDBO classes from the database (with the Loader/auto_initialize) and then auto-generate the HTML forms using something like what's described in this mailing list post. (Hop on the mailing lists for Rose::DB::Object and Rose::HTML::Objects if you have any questions.)
(Whoops, link corrected.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Quick way to set up columns with Class::DBI ?
by jfrm (Monk) on Aug 19, 2006 at 07:06 UTC | |
Yes I already saw that it has a thriving and responsive community. I will start worshipping at the temple of the Rose. It has to be better than Class::DBI for starters because that refuses to install!<br | [reply] |
|
Re^4: Quick way to set up columns with Class::DBI ?
by jfrm (Monk) on Aug 21, 2006 at 12:13 UTC | |
First off, I tried PPM but Rose isn't in the AS repository (I'm beginning to see that I should regard this as a very bad omen because whenever a package isn't there, only rarely can i manage to install it via any other method....) Then I tried CPAN which fails because Datetime doesn't install due to a win32 buglet in the infinite tests. I did eventually get over this hurdle - the bug seems to be well known and apparently ignorable so I installed Datetime manually and then went back and tried to CPAN Rose again (I wasn't entirely sure if this was the right approach but it did seem to get further so I think it must have been). But then CPAN/Rose first told me that I needed to set environment variables allow connection to the DB in order to complete the tests but also said that if they weren't set the tests would be ignored. Unfortunately the tests didn't seem to work. Here is the output: --snip-- and so it goes on... --snip-- I'm not sure if it failed due to lack of env. variables in which case instructions seemed to mislead me or otherwise. Anyway, then I was rather cheesed off and discovered that PPM installed DBIx instantly and without a murmur. So I think I'll try to pray at the DBIx temple and see if that leads me to enlightenment for now... | [reply] [d/l] [select] |
by siracusa (Friar) on Aug 21, 2006 at 12:39 UTC | |
You do not have to set any environment variables. They are all optional. The Rose:: modules are all pure-perl and do nothing fancy on test or install. As for your test failures, this line: "Can't locate Rose/DB.pm in @INC ..." Indicates to me that Rose::DB is not installed. Rose::DB is a prerequisite for Rose::DB::Object. The CPAN shell should have detected that and offered to install Rose::DB for you before attempting to install Rose::DB::Object. The fact that this did not (apparently) happen makes me suspicious that other prerequisites may have been missed as well. I'm not sure how this could happen, since the modules specify their prerequisites in the standard, CPAN-supported way. (Look in the "Makefile.PL" of each module to see its list of prerequisites.) Most big CPAN modules have prerequisites, and sometimes those prerequisites can be painful to install, especially if they have an XS component, and especially on Win32. And, of course, those prerequisites may have prerequisites, and so on. Among ORMs, some prerequisites are common. For example, DateTime is used by many ORMs to abstract dates. Installing other ORMs may be a bit easier now that you've already done some of the work, but each ORM will have its own unique prerequisites as well. If the module-dependency mechanism is not working correctly on your system, you may have problems installing any non-trivial CPAN modules. But remember that you can always install prerequisites manually, if necessary. | [reply] |
by jfrm (Monk) on Aug 21, 2006 at 13:29 UTC | |
(also I struggle to see the remotest reason why I might need anything to do with a TTY for my application but there you are...)
| [reply] [d/l] |
by cees (Curate) on Aug 21, 2006 at 14:22 UTC | |
by jfrm (Monk) on Aug 21, 2006 at 15:03 UTC | |
by siracusa (Friar) on Aug 21, 2006 at 14:29 UTC | |
by jfrm (Monk) on Aug 21, 2006 at 17:08 UTC | |
| |