import { BaseModel } from "https://deno.land/x/dso@v1.0.0/src/model.ts";
Model base class
Constructors
new
BaseModel(connection?: Connection)Properties
Methods
private
convertModel(data: { [key: string]: any; }): ModelFields<this> | undefinedConvert data object to model
private
convertObject(model: ModelFields<this>): { [key: string]: any; }Convert model object to db object
private
optionsToQuery(options: QueryOptions)findAll(options: Where | QueryOptions): Promise<ModelFields<this>[]>
find all records by given conditions