Repository
This page summarizes the information & use of the repository component.
Last updated
This page summarizes the information & use of the repository component.
It is part of the Mandarine Data module.
It works as a bridge between your database & your application layer.
It does not accept the use of DI, but it is injectable.
Syntax:
@Repository()Example
import { Repository, MandarineRepository } from "https://deno.land/x/mandarinets/mod.ts";
@Repository()
abstract class MyRepository extends MandarineRepository<YourModel> {
constructor() {
super(YourModel);
}
}Where YourModel is the instance that represents a database table.
Last updated