lib/driver.js
function(o, callback) {
    
    var self = this;

    // Model::insert > Get ID > Create Model
    this.insert(o, function(err, id) {
      if (err) {
        callback.call(self, err, null);
      } else {
        self.get(id, function(err, model) {
          if (err) {
            callback.call(self, err, null);
          } else {
            callback.call(self, null, model);
          }
        });
      }
    });
  }
function(o, callback) {
    
    var self = this;

    // Model::insert > Get ID > Create Model
    this.insert(o, function(err, id) {
      if (err) {
        callback.call(self, err, null);
      } else {
        self.get(id, function(err, model) {
          if (err) {
            callback.call(self, err, null);
          } else {
            callback.call(self, null, model);
          }
        });
      }
    });
  }
function ( o , callback ) { var self = this ; // Model::insert > Get ID > Create Model this . insert ( o , function ( err , id ) { if ( err ) { callback . call ( self , err , null ) ; } else { self . get ( id , function ( err , model ) { if ( err ) { callback . call ( self , err , null ) ; } else { callback . call ( self , null , model ) ; } } ) ; } } ) ; }
Creates a new model object. Saves into the
database, then creates the model with the provided data.

Validation should be performed against the values in `o`,
throwing an Error if not satisfied.

Provides: [err, model]

@param {object} o
@param {function} callback
Creates a new model object . Saves into the database then creates the model with the provided data .