{"size": 232, "ext": "js", "max_stars_repo_path": "server/db/users.js", "max_stars_repo_name": "Anton-Sales/Battle-Characters", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/db/users.js", "max_issues_repo_name": "Anton-Sales/Battle-Characters", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/db/users.js", "max_forks_repo_name": "Anton-Sales/Battle-Characters", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.8888888889, "max_line_length": 44, "alphanum_fraction": 0.6163793103}
const conn = require('./connection')


function getUsers() {
    return conn('users') // select all users
}

function addUser(user) {
    return conn('users')
        .insert(user)
}



module.exports = {
    getUsers,
    addUser
}