[Bast-commits] r8427 - DBIx-Class/0.08/branches/dbicadmin_refactor/lib/DBIx/Class

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Tue Jan 26 13:05:53 GMT 2010


Author: caelum
Date: 2010-01-26 13:05:53 +0000 (Tue, 26 Jan 2010)
New Revision: 8427

Modified:
   DBIx-Class/0.08/branches/dbicadmin_refactor/lib/DBIx/Class/Admin.pm
Log:
prefer JSON::DWIW for barekey support

Modified: DBIx-Class/0.08/branches/dbicadmin_refactor/lib/DBIx/Class/Admin.pm
===================================================================
--- DBIx-Class/0.08/branches/dbicadmin_refactor/lib/DBIx/Class/Admin.pm	2010-01-26 09:10:11 UTC (rev 8426)
+++ DBIx-Class/0.08/branches/dbicadmin_refactor/lib/DBIx/Class/Admin.pm	2010-01-26 13:05:53 UTC (rev 8427)
@@ -30,10 +30,9 @@
 use MooseX::Types::JSON qw(JSON);
 use MooseX::Types::Path::Class qw(Dir File);
 use Try::Tiny;
-use JSON::Any;
+use JSON::Any qw(DWIW XS JSON);
 use namespace::autoclean;
 
-
 =head1 NAME
 
 DBIx::Class::Admin - Administration object for schemas
@@ -48,7 +47,7 @@
 
   $ dbicadmin --schema=MyApp::Schema --class=Employee \
     --connect='["dbi:SQLite:my.db", "", ""]' \
-    --op=update --set='{"name":"New_Employee"}'
+    --op=update --set='{ "name": "New_Employee" }'
 
   use DBIx::Class::Admin;
 
@@ -89,6 +88,8 @@
 
 L<JSON::Any>
 
+(L<JSON::DWIW> preferred for barekey support)
+
 L<namespace::autoclean>
 
 L<Getopt::Long::Descriptive>




More information about the Bast-commits mailing list