Skip to content

Commit

Permalink
Generates an uid for every driver instance (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Mar 21, 2013
1 parent 347b65f commit 4591743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ORM.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var util = require("util");
var events = require("events");
var path = require("path");
var hat = require("hat");
var Query = require("sql-query");

var Model = require("./Model").Model;
Expand Down Expand Up @@ -103,6 +104,7 @@ function ORM(driver, settings) {
this.validators = Validators;
this.settings = settings;
this.driver = driver;
this.driver.uid = hat();
this.tools = {};
this.models = {};

Expand Down

0 comments on commit 4591743

Please sign in to comment.