Remove the oracle dependency

This commit is contained in:
Raymond Feng 2013-06-24 09:07:29 -07:00
parent 2669ed1c23
commit 130b596786
2 changed files with 0 additions and 35 deletions

View File

@ -1,32 +0,0 @@
var asteroid = require('../../');
var app = asteroid();
app.use(asteroid.rest());
var dataSource = app.dataSource('db',
{ adapter: require('asteroid-connector-oracle'),
host: '166.78.158.45',
database: 'XE',
username: 'strongloop',
password: 'str0ng100pjs',
debug: true
});
var Color = dataSource.define('color', {
'name': String
});
dataSource.autoupdate(function (err, data) {
Color.create({name: 'red'});
Color.create({name: 'green'});
Color.create({name: 'blue'});
Color.all(function () {
console.log(arguments);
});
});
app.listen(3000);
console.log('a list of colors is available at http://localhost:300/colors');

View File

@ -17,8 +17,5 @@
"mocha": "latest",
"sl-task-emitter": "0.0.x",
"supertest": "latest"
},
"optionalDependencies": {
"asteroid-connector-oracle": "git+ssh://git@github.com:strongloop/asteroid-connector-oracle.git"
}
}