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.8.1 to 0.8.2

2

package.json
{
"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 @@

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