in reply to Help with mojolicious
Then run using 'perl t.pl'. If you get an error message about dependencies, install SQL::Translator. I found that in the DBIx::Class::Optional::Dependencies documentation. search on 'deploy' and it's about halfway down. You end up with a database file moblo.db that looks like this:use lib '.'; use Moblo::Schema; my $schema = Moblo::Schema->connect('dbi:SQLite:moblo.db'); $schema->deploy();
sqlite> .schema CREATE TABLE posts ( id INTEGER PRIMARY KEY NOT NULL, author text NOT NULL, title text NOT NULL, content text NOT NULL, date_published datetime NOT NULL );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help wiht mojolicious
by Anonymous Monk on Mar 17, 2015 at 06:37 UTC | |
by trippledubs (Deacon) on Mar 17, 2015 at 13:57 UTC | |
|
Re^2: Help wiht mojolicious
by Anonymous Monk on Mar 17, 2015 at 07:26 UTC | |
by ww (Archbishop) on Mar 17, 2015 at 12:36 UTC | |
by caseycole589 (Initiate) on Mar 17, 2015 at 23:13 UTC | |
by Anonymous Monk on Mar 17, 2015 at 23:44 UTC |