Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-16 Thread Adam Witney



kakim...@moomba-water-fest:~/projects/myApp/script$ ./myApp_create.pl
model myAppDB DBIC::Schema myApp::Schema create=static
components=TimeStamp
dbi:Pg:dbname=myApp:Username=test_user:Password=password11
 exists /home/kakimoto/projects/myApp/script/../lib/myApp/Model
 exists /home/kakimoto/projects/myApp/script/../t
 DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection  
failed:
Can't connect to data source 'components=TimeStamp' because I can't  
work

out what driver to use (it doesn't seem to contain a 'dbi:driver:'
prefix and the DBI_DRIVER env var is not set) at
/usr/local/share/perl/5.8.8/DBIx/Class/Storage/DBI.pm line 839


If the above error is still causing problems, I had issues getting the  
format of the connection string right also, but in the end i found  
that this format worked:


script/myapp_create.pl model DB DBIC::Schema MyApp::Schema  
create=static components=TimeStamp 'dbi:Pg:dbname=myApp' user password


HTH

adam

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-15 Thread David Schmidt
I ran into the sae problem today.

check if you have at least version 0.23 with the following command

perl -MCatalyst::Model::DBIC::Schema -e \
'print $Catalyst::Model::DBIC::Schema::VERSION\n'

if not follow these instructions
http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod#Convert_to_DBIC_%22load_namespaces%22

On Tue, Mar 10, 2009 at 12:32 PM,  kakim...@tpg.com.au wrote:
 Actually scrap that.
 I am noticing that no 'Schema' subdirectory has been created hence no
 model files were even made.

  I switched the command back to what's in the tute. Here is how it looks
 like:


 kakim...@moomba-water-fest:~/projects/myApp/script$ ./myApp_create.pl
 model myAppDB DBIC::Schema myApp::Schema create=static
 components=TimeStamp
 dbi:Pg:dbname=myApp:Username=test_user:Password=password11
  exists /home/kakimoto/projects/myApp/script/../lib/myApp/Model
  exists /home/kakimoto/projects/myApp/script/../t
  DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed:
 Can't connect to data source 'components=TimeStamp' because I can't work
 out what driver to use (it doesn't seem to contain a 'dbi:driver:'
 prefix and the DBI_DRIVER env var is not set) at
 /usr/local/share/perl/5.8.8/DBIx/Class/Storage/DBI.pm line 839



 Guys, any ideas?



 Thanks





 Quoting kakim...@tpg.com.au:

 hi everyone,

  I just followed the tute in

 http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
 to regenerate my schema (model) files to use DBIx::Class::TimeStamp.

 I refered to the section Update DBIC to Automatically Handle the
 Datetime Columns.

 I ran my command following this order,
 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
         create=static components=TimeStamp dbi:SQLite:myapp.db

 and it fails. I have the latest version of catalyst and all related
 DBIX
 modules installed in my machine.



 Running the command above with 'components=TimeStamp' before
 'create=static'  worked fine
 ( ie.

 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
       components=TimeStamp  create=static  dbi:SQLite:myapp.db 
 ).



 I would suggest for the command in the tutorial to be updated.


 thanks

 K. akimoto

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/







 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/




-- 
David Schmidt   |   http://www.fm5.at

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-15 Thread hkclark
Please let me know if anyone has problems with this in the current
version of the tutorial (v5.7020):

http://search.cpan.org/perldoc?Catalyst::Manual::Tutorial

The default behavior of Catalyst::Model::DBIC::Schema changed
recently.  To avoid incompatibilities, the tutorial now has you
manually upgrade to at least v0.23 in A Static Database Model With
DBIx::Class of MoreCatalystBasics.pod and go straight to
load_namespaces (vs. first doing load_classes and migrating over).  I
believe everything should be working as long as people make sure they
have the right version of Catalyst::Model::DBIC::Schema, but let me
know if people run into issues.

Thanks!
Kennedy

On Sun, Mar 15, 2009 at 10:51 AM, David Schmidt davew...@gmx.at wrote:
 I ran into the sae problem today.

 check if you have at least version 0.23 with the following command

 perl -MCatalyst::Model::DBIC::Schema -e \
        'print $Catalyst::Model::DBIC::Schema::VERSION\n'

 if not follow these instructions
 http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod#Convert_to_DBIC_%22load_namespaces%22

 On Tue, Mar 10, 2009 at 12:32 PM,  kakim...@tpg.com.au wrote:
 Actually scrap that.
 I am noticing that no 'Schema' subdirectory has been created hence no
 model files were even made.

  I switched the command back to what's in the tute. Here is how it looks
 like:


 kakim...@moomba-water-fest:~/projects/myApp/script$ ./myApp_create.pl
 model myAppDB DBIC::Schema myApp::Schema create=static
 components=TimeStamp
 dbi:Pg:dbname=myApp:Username=test_user:Password=password11
  exists /home/kakimoto/projects/myApp/script/../lib/myApp/Model
  exists /home/kakimoto/projects/myApp/script/../t
  DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed:
 Can't connect to data source 'components=TimeStamp' because I can't work
 out what driver to use (it doesn't seem to contain a 'dbi:driver:'
 prefix and the DBI_DRIVER env var is not set) at
 /usr/local/share/perl/5.8.8/DBIx/Class/Storage/DBI.pm line 839



 Guys, any ideas?



 Thanks





 Quoting kakim...@tpg.com.au:

 hi everyone,

  I just followed the tute in

 http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
 to regenerate my schema (model) files to use DBIx::Class::TimeStamp.

 I refered to the section Update DBIC to Automatically Handle the
 Datetime Columns.

 I ran my command following this order,
 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
         create=static components=TimeStamp dbi:SQLite:myapp.db

 and it fails. I have the latest version of catalyst and all related
 DBIX
 modules installed in my machine.



 Running the command above with 'components=TimeStamp' before
 'create=static'  worked fine
 ( ie.

 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
       components=TimeStamp  create=static  dbi:SQLite:myapp.db 
 ).



 I would suggest for the command in the tutorial to be updated.


 thanks

 K. akimoto

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/







 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/




 --
 David Schmidt   |   http://www.fm5.at

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-10 Thread kakimoto
hi everyone,

 I just followed the tute in 
http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
to regenerate my schema (model) files to use DBIx::Class::TimeStamp.

I refered to the section Update DBIC to Automatically Handle the
Datetime Columns.

I ran my command following this order, 
script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
create=static components=TimeStamp dbi:SQLite:myapp.db 

and it fails. I have the latest version of catalyst and all related DBIX
modules installed in my machine.



Running the command above with 'components=TimeStamp' before
'create=static'  worked fine
( ie.

script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
  components=TimeStamp  create=static  dbi:SQLite:myapp.db 
).



I would suggest for the command in the tutorial to be updated.


thanks 

K. akimoto

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] command in Catalyst tute part 4 for generating schema files (static creation) using DBIx::Class::TimeStamp needs to be updated

2009-03-10 Thread kakimoto
Actually scrap that.
I am noticing that no 'Schema' subdirectory has been created hence no
model files were even made.

 I switched the command back to what's in the tute. Here is how it looks
like:


kakim...@moomba-water-fest:~/projects/myApp/script$ ./myApp_create.pl
model myAppDB DBIC::Schema myApp::Schema create=static
components=TimeStamp  
dbi:Pg:dbname=myApp:Username=test_user:Password=password11
 exists /home/kakimoto/projects/myApp/script/../lib/myApp/Model
  exists /home/kakimoto/projects/myApp/script/../t
  DBIx::Class::Schema::Loader::make_schema_at(): DBI Connection failed:
Can't connect to data source 'components=TimeStamp' because I can't work
out what driver to use (it doesn't seem to contain a 'dbi:driver:'
prefix and the DBI_DRIVER env var is not set) at
/usr/local/share/perl/5.8.8/DBIx/Class/Storage/DBI.pm line 839



Guys, any ideas?



Thanks





Quoting kakim...@tpg.com.au:

 hi everyone,
 
  I just followed the tute in 

http://search.cpan.org/~hkclark/Catalyst-Manual-5.7018/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod
 to regenerate my schema (model) files to use DBIx::Class::TimeStamp.
 
 I refered to the section Update DBIC to Automatically Handle the
 Datetime Columns.
 
 I ran my command following this order, 
 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
 create=static components=TimeStamp dbi:SQLite:myapp.db 
 
 and it fails. I have the latest version of catalyst and all related
 DBIX
 modules installed in my machine.
 
 
 
 Running the command above with 'components=TimeStamp' before
 'create=static'  worked fine
 ( ie.
 
 script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \
   components=TimeStamp  create=static  dbi:SQLite:myapp.db 
 ).
 
 
 
 I would suggest for the command in the tutorial to be updated.
 
 
 thanks 
 
 K. akimoto
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/
 
 
 




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/