Skip to content

config.js to support other jdb adapters  #3

@pasindud

Description

@pasindud

Hi

I think it would be great if we could have something like this

config.js file - https://github.com/gojarvis/Jane/blob/master/config/config.js

dbtype : 'mysql' || 'couch' || 'redis' || 'mongodb',
database : 'my_testdb',
dbusername : 'username',
dbpassword : 'password'

article.js or other files using db connect

schema = new Schema( config.dbtype , {
url: config.db,   // for mongo and othere db's with url's
    database: config.database ,   // for mysql and other db's with databases
    username:config.username   
}),

I tried in the local 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions