That was what I thought. I got an error, and I didn't do much research on it. No problem though, I'm thinking the DBIx schema loaders, and Rose::DB are better choices, I'm experimenting with them now..
ecarroll@AMD64:~/code/perl/alzabo$ perl -MData::Dumper -MAlzabo::Creat
+e::Schema -e'$_= Alzabo::Create::Schema->reverse_engineer(name => q/d
+ealermade/,rdbms=> q/PostgreSQL/, user=> q/ecarroll/, password=>q/pas
+sword/); print Dumper $_;'
Table users already exists in schema
Trace begun at /usr/local/share/perl/5.8.7/Alzabo/Create/Table.pm line
+ 65
Alzabo::Create::Table::set_name(undef, undef) called at /usr/local/sha
+re/perl/5.8.7/Alzabo/Create/Table.pm line 39
Alzabo::Create::Table::new(undef, 'schema', 'Alzabo::Create::Schema=HA
+SH(0x6012d0)', 'name', 'users') called at /usr/local/share/perl/5.8.7
+/Alzabo/Create/Schema.pm line 139
Alzabo::Create::Schema::make_table('Alzabo::Create::Schema=HASH(0x6012
+d0)', 'name', 'users') called at /usr/local/share/perl/5.8.7/Alzabo/R
+DBMSRules/PostgreSQL.pm line 843
Alzabo::RDBMSRules::PostgreSQL::reverse_engineer('Alzabo::RDBMSRules::
+PostgreSQL=HASH(0xd39b10)', 'Alzabo::Create::Schema=HASH(0x6012d0)')
+called at /usr/local/share/perl/5.8.7/Alzabo/Create/Schema.pm line 85
Alzabo::Create::Schema::reverse_engineer('Alzabo::Create::Schema', 'na
+me', 'dealermade', 'rdbms', 'PostgreSQL', 'user', 'ecarroll', 'passwo
+rd', 'password') called at -e line 1
*note password is not going to stay 'password' for long
Evan Carroll www.EvanCarroll.com
|