Comparing version 0.9.3 to 0.9.4
@@ -279,3 +279,3 @@ !function(){ | ||
if (this[db.databaseName]) next(new Error('Failed to load ORM for database «'+db.databaseName+'», the name is reserved for the orm.').setName('ORMException')); | ||
else if (true || definition.schemaExists()) { | ||
else if (definition.schemaExists()) { | ||
// build the model definitions from the raw definitions | ||
@@ -282,0 +282,0 @@ Object.keys(definition).forEach(function(modelName) { |
{ | ||
"name" : "ee-orm" | ||
, "description" : "ORM for postgres and mysql. Loads and saves referenced entites, executes complex queries, supports joins, transactions, complex database clusters, connection pooling and much more. No conventions." | ||
, "version" : "0.9.3" | ||
, "version" : "0.9.4" | ||
, "homepage" : "https://github.com/eventEmitter/ee-orm" | ||
@@ -28,3 +28,3 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "ee-mysql-connection" : "^0.3.1" | ||
, "ee-postgres-connection" : "^0.5.1" | ||
, "ee-postgres-connection" : "^0.5.2" | ||
, "es6-promise" : "2.0.x" | ||
@@ -31,0 +31,0 @@ } |
54
test.js
@@ -23,56 +23,2 @@ | ||
db.venue.setMappingAccessorName('venue_image', 'image'); | ||
db.event(['*']) | ||
.getVenue(['*']) | ||
.getImage(['*']) | ||
.find() | ||
.then(function(events) { | ||
log(events, events.length); | ||
for (var i = 0, l= events.length; i< l; i++) { | ||
log.highlight(i, events[i]) | ||
} | ||
log.error('----'); | ||
events.slice().forEach(function(evt, index) { | ||
log.warn(index, evt, evt.venue, !!evt.venue); | ||
if (evt.venue && evt.venue.image) { | ||
log.warn('yes'); | ||
var images = evt.venue.image.slice(); | ||
log.wtf('wat?', images); | ||
images.forEach(function(img){ | ||
log(img, img.venue, img.venues); | ||
}); | ||
} | ||
}); | ||
}) | ||
.catch(log); | ||
//db.event(['*']).find(log); | ||
/*var evt = db.event(['*']) | ||
, ed = evt.getEventData(['*']); | ||
//ed.setLocale('de'); | ||
// get some data | ||
ed.getImage(['id']); | ||
ed.getCategory(['*']).fetchImage(['id']); | ||
ed.getVenueFloor(['*']).fetchImage(['*']).getVenue(['*']).fetchImage(['id']); | ||
ed.getTag(['*']); | ||
// filter for events that are sold | ||
ed.getArticle().getCondition_tenant().getCondition({identifier: 'datatrans'}); | ||
// filter for events that are curerntly sold and are free | ||
ed.getArticle().fetchArticleConfig(['*'], { | ||
amount : ORM.gt(0) | ||
, price : 0 | ||
}); | ||
evt.find(log);*/ | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285978
5450