'use strict';

var SQliteORM = require('services/sqlite_adapter');

var Container = function() {
  SQliteORM.call(this, 'containers');
  this.schemaAttrs = ['id', 'container_name'];
};

Container.prototype = Object.create(SQliteORM.prototype);

Container.prototype.find = function(attrs) {
  attrs = attrs || {};
  if(this.validateAttrs.call(this, attrs)) {
    var selection = this.prepareSelection(attrs);
    this.execute('SELECT * FROM ' + this.tableName + ' ' + selection).then(function(container) {
      console.log(container);
      return container;
    }).catch(function(err) {
      console.log(err);
    });
  }
};

module.exports = Container;

@@ -18,19 +18,23 @@
 r SQlite
-ORM
+Adapter
  = requi
@@ -102,19 +102,23 @@
   SQlite
-ORM
+Adapter
 .call(th
@@ -233,11 +233,15 @@
 lite
-ORM
+Adapter
 .pro

Change to SQliteAdapter