Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MandarineRepository

import { MandarineRepository } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/orm-core/repository/mandarineRepository.ts";
abstract

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>);
}

§Type Parameters

§Constructors

§
new MandarineRepository(TCreator: {
new (): T;
}
)
[src]

§Properties

§Methods

§
countAll()
[src]
§
deleteAll()
[src]
§
findAll()
[src]
§
save(model: Partial<T>)
[src]