Revision history for DBIx-Class-Fixtures
+- Fix t/var/configs/*.json to use valid JSON syntax
+
1.001002
- Allow passing schema object to ->populate
- Check that fixture population dir was created
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'Track',
- ids: ['9']
+ "sets": [{
+ "class": "Track",
+ "ids": ["9"]
}],
- datetime_relative : "2007-10-30 00:00:00"
+ datetime_relative : "2007-10-30 "00":"00":00"
}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'Artist',
- ids: ['1'],
- fetch: [{
- rel: cds,
- quantity: all
+ "sets": [{
+ "class": "Artist",
+ "ids": ["1"],
+ "fetch": [{
+ "rel": "cds",
+ "quantity": "all"
}]
}, {
- class: 'Artist',
- ids: ['2'],
- fetch: [{
- rel: cds,
- cond: { year: {'>': 2002} }
+ "class": "Artist",
+ "ids": ["2"],
+ "fetch": [{
+ "rel": "cds",
+ "cond": { "year": {">": 2002} }
}]
}]
-}
\ No newline at end of file
+}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'Producer',
- quantity: 1
+ "sets": [{
+ "class": "Producer",
+ "quantity": 1
}],
- includes: [{
- file: 'simple.json'
+ "includes": [{
+ "file": "simple.json"
}]
}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'CD',
- quantity: 3
+ "sets": [{
+ "class": "CD",
+ "quantity": 3
}]
}
\ No newline at end of file
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'CD',
- ids: ['5']
+ "sets": [{
+ "class": "CD",
+ "ids": ["5"]
}, {
- class: 'Artist',
- ids: ['1'],
- fetch: [{
- rel: cds,
- quantity: all
+ "class": "Artist",
+ "ids": ["1"],
+ "fetch": [{
+ "rel": "cds",
+ "quantity": "all"
}]
}],
- rules: {
- 'CD': {
- cond: [{ 'tags.tag': 'Cheesy' }],
- join: ['tags'],
- fetch: [{
- rel: tracks,
- cond: { position: 2 }
+ "rules": {
+ "CD": {
+ "cond": [{ "tags.tag": "Cheesy" }],
+ "join": ["tags"],
+ "fetch": [{
+ "rel": "tracks",
+ "cond": { "position": 2 }
}]
}
}
-}
\ No newline at end of file
+}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'User',
- cond: { photo_count: { '<': 5 } },
- quantity: 3,
- datetime_relative: today,
- fetch: [{
- rel: comments,
- cond: { comments: { '!=': 'faks' }},
- quantity: 2
+ "sets": [{
+ "class": "User",
+ "cond": { "photo_count": { "<": 5 } },
+ "quantity": 3,
+ "datetime_relative": today,
+ "fetch": [{
+ "rel": comments,
+ "cond": { "comments": { "!=": "faks" }},
+ "quantity": 2
}]
}, {
- class: 'User',
- cond: { photo_count: { '>=': 5 } },
- quantity: 3
+ "class": "User",
+ "cond": { "photo_count": { ">=": 5 } },
+ "quantity": 3
}, {
- class: 'Video',
- quantity: 3
+ "class": "Video",
+ "quantity": 3
}, {
- class: 'FeaturedVideo',
- quantity: 3
+ "class": "FeaturedVideo",
+ "quantity": 3
}],
- rules: {
- 'User': {
- cond: { video_count: { '>=': 5 } }
+ "rules": {
+ "User": {
+ "cond": { "video_count": { ">=": 5 } }
},
- 'Video': {
- fetch: [{
- rel: user_videos,
- cond: { me.fk_user_id: '\= video.fk_owner_id' },
- join: 'video'
+ "Video": {
+ "fetch": [{
+ "rel": user_videos,
+ "cond": { me."fk_user_id": "\= video.fk_owner_id" },
+ "join": "video"
}]
}
}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'Artist',
- cond: { me.name: '\= "We Are Goth"' },
- quantity: all,
- fetch: [{
- rel: 'cds',
- cond: { 'me.title': '\LIKE "%with us"' }
+ "sets": [{
+ "class": "Artist",
+ "cond": { "me.name": "\\= \"We Are Goth\"" },
+ "quantity": "all",
+ "fetch": [{
+ "rel": "cds",
+ "cond": { "me.title": "\\LIKE \"%with us\"" }
}]
}]
-}
\ No newline at end of file
+}
{
- might_have: {
- fetch: 0
+ "might_have": {
+ "fetch": 0
},
- has_many: {
- fetch: 0
+ "has_many": {
+ "fetch": 0
},
- sets: [{
- class: 'Artist',
- quantity: 1
+ "sets": [{
+ "class": "Artist",
+ "quantity": 1
}]
}
\ No newline at end of file