MandarineRepository
import { MandarineRepository } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
Repositories must extend to this class. This class makes interaction beetween the database layer & mandarine engine possible. This class is generic where T equals your model. This class has a parameter in its constructor, which should be your model's instance.
abstract class MandarineRepository<T> { }
constructor(TCreator: {
new (): T;
});private modeler: RepositoryModeler;
public countAll();
public deleteAll();
public findAll();
public getModeler(): RepositoryModeler;
public save(model: Partial<T>);