@naturalcycles/db-lib
Version:
Lowest Common Denominator API to supported Databases
18 lines (13 loc) • 501 B
text/typescript
import { ObjectWithId } from '@naturalcycles/js-lib'
import { DBSaveBatchOperation } from '../../db.model'
import { FileDBPersistencePlugin } from './file.db.model'
export class NoopPersistencePlugin implements FileDBPersistencePlugin {
async ping(): Promise<void> {}
async getTables(): Promise<string[]> {
return []
}
async loadFile<ROW extends ObjectWithId>(_table: string): Promise<ROW[]> {
return []
}
async saveFiles(_ops: DBSaveBatchOperation<any>[]): Promise<void> {}
}