Skip to content
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

Merged
merged 17 commits into from
Nov 12, 2016
Merged

Add libraries for DB #8

merged 17 commits into from
Nov 12, 2016

Conversation

Deon
Copy link
Member

@Deon Deon commented Nov 10, 2016

Adding documentation + some DB libraries for now.

Will be setting up config for db-migrate + adding the migrations from #5

CC @IceChen1

@Deon Deon changed the title Add libraries for DB [WIP] Add libraries for DB Nov 10, 2016
@@ -3,6 +3,35 @@ var crypto = require('crypto');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var knex = require('knex')({
client: 'pq',
Copy link
Member Author

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'
Copy link
Member Author

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) {
Copy link
Member Author

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?

Copy link
Contributor

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

Copy link
Member Author

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.

@Deon Deon changed the title [WIP] Add libraries for DB Add libraries for DB Nov 12, 2016
@Deon Deon merged commit c8a492e into master Nov 12, 2016
@Deon Deon deleted the db branch November 12, 2016 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants