Comparing version 0.8.1 to 0.8.2
{ | ||
"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. No conventions." | ||
, "version" : "0.8.1" | ||
, "version" : "0.8.2" | ||
, "homepage" : "https://github.com/eventEmitter/ee-orm" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -6,7 +6,8 @@ # ee-orm | ||
Built in features for: | ||
. supports postgres & mysql | ||
- supports postgres & mysql | ||
- easy & fast loading of referenced entities | ||
- generates on the fly models from the tables in the database | ||
- on the fly generated models (from the table definitions in the database) | ||
- transactions | ||
- complex queries | ||
- subqueries in filters & selects | ||
- complex queries (select, order, group, join, and, or, in, like, .....) | ||
- complex joins | ||
@@ -28,8 +29,32 @@ - connection pooling | ||
The ORM is tested and in use on several high traffic websites. | ||
The ORM is tested and in use on several big websites. Extensive docs & paid support are coming soon. | ||
Extensive docs & paid support will be there soon. | ||
An example on a query loagin events an multiple subentites, using selects, filters, limits and promises: | ||
```` | ||
var ORM = require('ee-orm'); | ||
// generate the models from the db | ||
new ORM(connectionConfig).on('load', function(err, orm) { | ||
// get 10 events, their images, their tags, their categories, their venues, | ||
// the venues images, the venues types | ||
orm.event({id: ORM.lt(2000)}, ['*']) | ||
.fetchImage(['url']) | ||
.fetchTag(['name']) | ||
.fetchCategory(['name']) | ||
.getVenue(['*']) | ||
.fetchImage(['url']) | ||
.fetchVenueType(['name']) | ||
.limit(10) | ||
.find() | ||
.then(function(events) { | ||
log(events); | ||
}).catch(function(err) { | ||
log.error('something went wrong :('); | ||
}); | ||
}); | ||
```` | ||
## installation | ||
@@ -36,0 +61,0 @@ |
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
266180
465