Last active
March 6, 2024 14:23
-
-
Save HenriqueSilverio/e06e011f8a8c7c4755ce817d580e5151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Repository { | |
/** | |
* Create | |
*/ | |
static async create(values) {} | |
static async createMany(records) {} | |
/** | |
* Read | |
*/ | |
static async find(id, options) {} | |
static async findOne(options) {} | |
static async findMany(options) {} | |
/** | |
* Update | |
*/ | |
static async update(id, values) {} | |
static async updateMany(where, values) {} | |
/** | |
* Delete | |
*/ | |
static async delete(id) {} | |
static async deleteMany(where) {} | |
/** | |
* Summarizing | |
*/ | |
static async count(where) {} | |
} | |
module.exports = Repository |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment