[Dbix-class] using as normal perl module
Hernan Lopes
hernanlopes at gmail.com
Fri Jul 29 00:18:04 GMT 2011
just create the models with dbicdump and then use your models ie:
1. dump schema
dbicdump -o dump_directory=3D./lib \
-o debug=3D1 \
DBSchema \
'dbi:Pg:dbname=3Dtwitts' \
hernan \
lopes
2. use them in your app
use lib ( "./lib" );
use DBSchema;
my $schema =3D DBSchema->connect('dbi:Pg:dbname=3Dtwitts', 'hernan', 'lopes=
');
On Thu, Jul 28, 2011 at 6:52 PM, Rajeev Prasad <rp.neuli at yahoo.com> wrote:
> Hello,
>
> all the examples i see are of using the module in a webapp (built with
> catalyst). I am only trying to use it in my cgi perl programe, but finding
> very less documentation. can someone please refer a URL or small script
> which stores and retrieves data from a table using this module plz.
>
> thx.
>
> Rajeev
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20110728/862=
d4e60/attachment.htm
More information about the DBIx-Class
mailing list