just create the models with dbicdump and then use your models ie:

1. dump schema

dbicdump -o dump_directory=./lib \
-o debug=1 \
DBSchema \
'dbi:Pg:dbname=twitts' \
hernan \
lopes


2. use them in your app

use lib ( "./lib" );
use DBSchema;
my $schema = DBSchema->connect('dbi:Pg:dbname=twitts', 'hernan', 'lopes');




On Thu, Jul 28, 2011 at 6:52 PM, Rajeev Prasad <rp.ne...@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
>
_______________________________________________
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

Reply via email to