{"size": 655, "ext": "js", "max_stars_repo_path": "backend/src/models/abstractDBCollection.js", "max_stars_repo_name": "soumyamishra89/github-analyser", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "backend/src/models/abstractDBCollection.js", "max_issues_repo_name": "soumyamishra89/github-analyser", "max_issues_repo_issues_event_min_datetime": "2021-03-10T01:32:57.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T06:56:44.000Z", "max_forks_repo_path": "backend/src/models/abstractDBCollection.js", "max_forks_repo_name": "soumyamishra89/github-analyser", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 23.3928571429, "max_line_length": 73, "alphanum_fraction": 0.6167938931}
/**
 * Abstract model (collection) defines the methods for accessing the data
 */
export default class AbstractDBCollection {
    constructor(dbCollection) {
        this.dbCollection = dbCollection;
        if (this.constructor == AbstractDBCollection) {
            throw new Error("Abstract classes can't be instantiated.");
        }
    }
    
    insert() {
        throw new Error('Missing implementation');
    }

    insertOrUpdate() {
        throw new Error('Missing implementation');
    }

    findById() {
        throw new Error('Missing implementation');
    }

    removeAll() {
        throw new Error('Missing implementation');
    }
}
