0

In Catalyst development, there are so many modulers. When I run the command as follows, I get the error

No tables found, did you forget to specify db_schema

script/addressbook_create.pl model AddressDB DBIC::Schema AddressBook::Schema::AddressDB create=static dbi:SQLite:/tmp/database

I am reading the book--Catalyst 5.8 the perl MVC framework

My questions:

  • How to solve this problem?

  • What can I get some helper from perldoc or something else? The doc is much more, and dependencies about modulers is so difficult. What's the key?

Community
  • 1
  • 1
Thai Heng
  • 152
  • 1
  • 11

1 Answers1

1

The second reference to AddressDB in your create command there is probably putting the files in a subdirectory below where they should be, ie lib/AddressBook/Schema/AddressBook/Result/People.pm. Have a look at your directory structure and compare it to p141 of the book.

I'd suggest you clean that up, and try:

script/addressbook_create.pl model AddressDB DBIC::Schema AddressBook::Schema \
  create=static dbi:SQLite:/tmp/database
RET
  • 9,100
  • 1
  • 28
  • 33