On 9/26/05, Warren Toomey <[EMAIL PROTECTED]> wrote:
> Hi all, I've just installed Maypole on Apache2/mod_perl/postgresql7, and got
> BeerDB working. I want to try Maypole out on my own database, so I have
> borrowed and altered BeerDB.pm:
> ...
> I'm getting an error from Class/DBI/Loader/Generic.pm:
> (table) bogusdata has no primary key. This is correct: there is no PK.
>
> I know I have a steep learning curve, but is there a way for now to
> get Maypole to only load/parse certain tables in the database? I thought
> that display_tables([qw[series program]]) would do this.

The easy solution to this is to load the classes manually rather than
use Class::DBI::Loader, I believe this mentioned in the manual and
with hints/tips on the wiki.

If you have any problems ask the list as we obviously need to document
it better if you can't work it out. I know I've found the
documentation insufficient on handling classes manually and plan to
get a load of work done on how to use it with existing class::dbi
modules nice and easily.

> Eventually, as I learn more, I will deal with the tables without primary
> keys. There is a way to use tables without primary keys, right?!

Yes.. subclass your own model for your needs :)

That is probably more work than you'd like so let me know what kind of
data structure you have and the goals you have for it and I'll see if
we can make it easier in the next release or the one after.

Cheers,

A.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to