Sunday, 15 September 2013

perl - Mojolicious Deploying database schema -


I am currently working on creating a Mosaic web app for a project. In the tutorial, he talks about making a database schema about using it in a script.

  My $ Schema = Mobo :: Schema-> Connect ('DBI: SQLite: Mobo DBB'); $ Schema- & gt; Posted ();  

And I tried to run perl -e '...' , putting it in different files and what I can think of , But not with success

On GitHub

I have lost a lot in getting this thing to make schema so that any help would be appreciated. It is not clear why the author has written only a part of the deployment script, maybe he thought it was It was clear that you use the MOBLO :: schema . Maybe he was right.

This program works fine. This is what you call, call deploy.pl and enter it in the moblo / lib directory.

  Strictly use; Use warnings; Use the Mbo :: Schema; My $ schema = mblo :: schema- & gt; Connect ('DBI: SQLite: moblo.db'); $ Schema- & gt; Posted ();  

No comments:

Post a Comment