import { IAdapter } from '../adapter'; export default class InMemoryAdapter implements IAdapter { private db; get(id: string | number): PromiseLike; /** * insert a record */ insert(record: T): PromiseLike; /** * get number of matches for the query */ count(query: Function, options?: any): PromiseLike; /** * find out all the matched records */ find(query: any, option?: any): PromiseLike; /** * find the first matched record */ findOne(query: any, option?: any): PromiseLike; /** * update all the matched records */ update(query: any, operations: any, options?: any): PromiseLike; /** * remove all the matched records */ remove(query: any, options?: any): PromiseLike; }