1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.04k stars 241 forks source link

WARNING: JugglingDB adapter "mongoose" is not installed, #355

Closed cometbalan closed 10 years ago

cometbalan commented 10 years ago

I am trying to use database.json in my compoundjs project to configure ORM with Mongodb.

But the system shows below error when i started the server


WARNING: JugglingDB adapter "mongoose" is not installed, so your models would not work, to fix run:

npm install jugglingdb-mongoose 

/home/balan/temp/compoundjs/todo-list-app/node_modules/jugglingdb/lib/railway.js:63

if (!schema.adapter) throw new Error('Adapter is not defined');

anatoliychakkaev commented 10 years ago

Driver name is mongodb not mongoose

On Tue, Jan 7, 2014 at 7:41 AM, cometbalan notifications@github.com wrote:

I am trying to use database.json in my compoundjs project to configure ORM with Mongodb.

But the system shows below error when i started the server

WARNING: JugglingDB adapter "mongoose" is not installed, so your models would not work, to fix run: npm install jugglingdb-mongoose /home/balan/temp/compoundjs/todo-list-app/node_modules/jugglingdb/lib/railway.js:63

if (!schema.adapter) throw new Error('Adapter is not defined');


Reply to this email directly or view it on GitHub: https://github.com/1602/jugglingdb/issues/355

cometbalan commented 10 years ago

Got it. Thanks, its working fine now.

NOTE : I just changed the driver name from "mongoose" to "mongodb" in config/database.json