Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ee-orm

Package Overview
Dependencies
Maintainers
2
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-orm - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

2

lib/ORM.js

@@ -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 @@ }

@@ -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);*/
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc