[Bast-commits] r4132 - in
DBIx-Class-Fixtures/1.001/branches/includes: . lib/DBIx/Class
captainL at dev.catalyst.perl.org
captainL at dev.catalyst.perl.org
Wed Mar 5 14:56:07 GMT 2008
Author: captainL
Date: 2008-03-05 14:56:07 +0000 (Wed, 05 Mar 2008)
New Revision: 4132
Modified:
DBIx-Class-Fixtures/1.001/branches/includes/Changes
DBIx-Class-Fixtures/1.001/branches/includes/MANIFEST
DBIx-Class-Fixtures/1.001/branches/includes/lib/DBIx/Class/Fixtures.pm
Log:
updated docs, changes and manifest
Modified: DBIx-Class-Fixtures/1.001/branches/includes/Changes
===================================================================
--- DBIx-Class-Fixtures/1.001/branches/includes/Changes 2008-03-05 14:47:38 UTC (rev 4131)
+++ DBIx-Class-Fixtures/1.001/branches/includes/Changes 2008-03-05 14:56:07 UTC (rev 4132)
@@ -1,5 +1,8 @@
Revision history for DBIx-Class-Fixtures
+1.001000
+- Added includes functionality
+
1.000001
- Added missing deps
Modified: DBIx-Class-Fixtures/1.001/branches/includes/MANIFEST
===================================================================
--- DBIx-Class-Fixtures/1.001/branches/includes/MANIFEST 2008-03-05 14:47:38 UTC (rev 4131)
+++ DBIx-Class-Fixtures/1.001/branches/includes/MANIFEST 2008-03-05 14:56:07 UTC (rev 4132)
@@ -26,6 +26,7 @@
t/05-dump-rules.t
t/06-dump-date.t
t/07-dump-all.t
+t/07-dump-includes.t
t/12-populate-basic.t
t/13populate-two-dbs.t
t/lib/DBICTest.pm
@@ -49,3 +50,4 @@
t/var/configs/rules.json
t/var/configs/sample.json
t/var/configs/simple.json
+t/var/configs/includes.json
Modified: DBIx-Class-Fixtures/1.001/branches/includes/lib/DBIx/Class/Fixtures.pm
===================================================================
--- DBIx-Class-Fixtures/1.001/branches/includes/lib/DBIx/Class/Fixtures.pm 2008-03-05 14:47:38 UTC (rev 4131)
+++ DBIx-Class-Fixtures/1.001/branches/includes/lib/DBIx/Class/Fixtures.pm 2008-03-05 14:56:07 UTC (rev 4132)
@@ -150,6 +150,23 @@
L</RULE ATTRIBUTES>
+=head2 includes
+
+To prevent repetition between configs you can include other configs. For example:
+
+ {
+ sets: [{
+ class: 'Producer',
+ ids: ['5']
+ }],
+ includes: [{
+ file: 'base.json'
+ }]
+ }
+
+Includes must be an arrayref of hashrefs where the hashrefs have key 'file' which is the name of another config
+file in the same directory. The original config is merged with its includes using Hash::Merge.
+
=head2 datetime_relative
Only available for MySQL and PostgreSQL at the moment, must be a value that DateTime::Format::*
More information about the Bast-commits
mailing list