Constructors
constructor
Type parameters
ID: string | number = string | number
Parameters
Methods
Protected addParameter
- addParameter(name: string, value: any): Criteria<ID>
compileParameters
- compileParameters(): string
create
- create(attributes: any): Promise<IEntry<ID>>
Parameters
Returns Promise<IEntry<ID>>
find
- find(id: string | number): Promise<IEntry<ID>>
Parameters
Returns Promise<IEntry<ID>>
newInstance
- newInstance(attributes: any): IEntry<ID>
orWhere
Type parameters
K: string | number | symbol
Parameters
Type parameters
K: string | number | symbol
Parameters
orderBy
Type parameters
K: string | number | symbol
Parameters
paginate
Parameters
per_page: number = 100
page: number = 1
save
- save(entry: Entry<string | number>): Promise<boolean>
Parameters
entry: Entry<string | number>
Returns Promise<boolean>
setParameters
- setParameters(parameters: any): Criteria<ID>
standardizeParameters
- standardizeParameters(): {}[]
where
Type parameters
K: string | number | symbol
Parameters
Type parameters
K: string | number | symbol
Parameters
Type parameters
K: string | number | symbol
Parameters
Create a new instance.