Remove the oracle dependency
This commit is contained in:
parent
2669ed1c23
commit
130b596786
|
@ -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');
|
|
|
@ -17,8 +17,5 @@
|
||||||
"mocha": "latest",
|
"mocha": "latest",
|
||||||
"sl-task-emitter": "0.0.x",
|
"sl-task-emitter": "0.0.x",
|
||||||
"supertest": "latest"
|
"supertest": "latest"
|
||||||
},
|
|
||||||
"optionalDependencies": {
|
|
||||||
"asteroid-connector-oracle": "git+ssh://git@github.com:strongloop/asteroid-connector-oracle.git"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue