for using DBIx, I am not sure what i need to do and what i can do (so new i am 
to this).



i have found this page, it is a wonderful resource to me (thanks to author), it 
has demystified quite a few things about how to start. It is saying very 
clearly that:

"To use DBIC you first need to setup your Schema - 
the logical model of the database tables, views and relationships....."


so i tried:

i have this mysql database with few tables in it:

according to author, after i run this script i should have a directory 
structure in my current (or specified) folder, for all my tables and database. 
When i run the following code, I get no error, but no output either. can anyone 
help plz?


#!/usr/bin/perl

use strict;
use warnings;

use DBIx::Class::Schema::Loader qw/make_schema_at/;

make_schema_at(
    'mytestdb::Schema',
    {debug => 0, dump_directory => '../db/',
    generate_pod => 0,},
    ['dbi:mysql:robodb:localhost:3306', 'root', 'sqlpassowrd']',
);



i want to create that directory structure one dir above (from where my script 
is), hence i want to use ../db/   (../db/ does not exist yet.)


thank you.
Rajeev



________________________________
From: Al Newkirk <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Saturday, July 30, 2011 9:00 AM
Subject: Subject: [Dbix-class] Re: using as normal perl module To


It seems like you want bypass defining schema, etc.
Yes, we have a way to do that... See the Schema::Loader
_______________________________________________
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/[email protected]
_______________________________________________
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/[email protected]

Reply via email to