-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add libraries for DB #8
Conversation
@@ -3,6 +3,35 @@ var crypto = require('crypto'); | |||
var mongoose = require('mongoose'); | |||
var Schema = mongoose.Schema; | |||
|
|||
var knex = require('knex')({ | |||
client: 'pq', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pg
host : '127.0.0.1', | ||
user : 'postgres', | ||
password : 'postgres', | ||
database : 'myapp_test' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beam_development
} | ||
}); | ||
|
||
knex.schema.withSchema('public').createTable('users', function (table) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were running with node-db-migrate
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I was only looking at knex, have not looked at that one yet... I'll check it out tonight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure if it's here, it'll generate the query everytime this file is loaded in.
Adding documentation + some DB libraries for now.
Will be setting up config for db-migrate + adding the migrations from #5
CC @IceChen1