Skip to content

Instantly share code, notes, and snippets.

@HenriqueSilverio
Last active March 6, 2024 14:23
Show Gist options
  • Save HenriqueSilverio/e06e011f8a8c7c4755ce817d580e5151 to your computer and use it in GitHub Desktop.
Save HenriqueSilverio/e06e011f8a8c7c4755ce817d580e5151 to your computer and use it in GitHub Desktop.
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