interface StorageAdapter {
    batchSave<T>(modelConstructor, items): Promise<[T, OpType][]>;
    clear(): Promise<void>;
    delete<T>(modelOrModelConstructor, condition?): Promise<[T[], T[]]>;
    query<T>(modelConstructor, predicate?, pagination?): Promise<T[]>;
    queryOne<T>(modelConstructor, firstOrLast): Promise<undefined | T>;
    save<T>(model, condition?): Promise<[T, INSERT | UPDATE][]>;
    setUp(schema, namespaceResolver, modelInstanceCreator, getModelConstructorByModelName, appId?): Promise<void>;
}

Hierarchy (view full)

Methods

  • Returns Promise<void>